summaryrefslogtreecommitdiff
path: root/searx/searxng.msg
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-03-20 08:31:07 +0100
committerGitHub <noreply@github.com>2022-03-20 08:31:07 +0100
commit3201aa1b3fe855b6332ccb63644a62ce2d6312b6 (patch)
tree839d8d93643883dcc238583a41b4d0be730a7df6 /searx/searxng.msg
parentbc303099397b793bc4441e5b0db84a367ac201d7 (diff)
parent9622dbbc6b7a3999fc439ab8b800118498d2c8ba (diff)
Merge pull request #859 from return42/fix-814
[mod] add i18n infrastructure for SearXNG message files (searxng.msg)
Diffstat (limited to 'searx/searxng.msg')
-rw-r--r--searx/searxng.msg52
1 files changed, 52 insertions, 0 deletions
diff --git a/searx/searxng.msg b/searx/searxng.msg
new file mode 100644
index 000000000..3b876f96d
--- /dev/null
+++ b/searx/searxng.msg
@@ -0,0 +1,52 @@
+# -*- mode: python -*-
+# SPDX-License-Identifier: AGPL-3.0-or-later
+"""A SearXNG message file, see :py:obj:`searx.babel`
+"""
+
+from searx import webutils
+from searx import engines
+
+__all__ = [
+ 'CONSTANT_NAMES',
+ 'CATEGORY_NAMES',
+ 'CATEGORY_GROUPS',
+ 'STYLE_NAMES',
+]
+
+CONSTANT_NAMES = {
+ # Constants defined in other modules
+ 'DEFAULT_GROUP_NAME': webutils.DEFAULT_GROUP_NAME,
+ 'OTHER_CATEGORY': engines.OTHER_CATEGORY,
+}
+
+CATEGORY_NAMES = {
+ 'FILES': 'files',
+ 'GENERAL': 'general',
+ 'MUSIC': 'music',
+ 'SOCIAL_MEDIA': 'social media',
+ 'IMAGES': 'images',
+ 'VIDEOS': 'videos',
+ 'IT': 'it',
+ 'NEWS': 'news',
+ 'MAP': 'map',
+ 'ONIONS': 'onions',
+ 'SCIENCE': 'science',
+}
+
+CATEGORY_GROUPS = {
+ # non-tab categories
+ 'APPS': 'apps',
+ 'DICTIONARIES': 'dictionaries',
+ 'LYRICS': 'lyrics',
+ 'PACKAGES': 'packages',
+ 'Q_A': 'q&a',
+ 'REPOS': 'repos',
+ 'SOFTWARE_WIKIS': 'software wikis',
+ 'WEB': 'web',
+}
+
+STYLE_NAMES = {
+ 'AUTO': 'auto',
+ 'LIGHT': 'light',
+ 'DARK': 'dark',
+}