summaryrefslogtreecommitdiff
path: root/searx/searxng.msg
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-02-03 16:33:58 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-03-16 09:55:53 +0100
commit784bf9ed15aa6e303e3996ef45f8f4281b032928 (patch)
tree412edb6c07152a532da82e4494813ef1f60b3b46 /searx/searxng.msg
parentb9cf3c82a18a4782a3aa543c91392c6483f5d2a4 (diff)
downloadsearxng-784bf9ed15aa6e303e3996ef45f8f4281b032928.tar.gz
searxng-784bf9ed15aa6e303e3996ef45f8f4281b032928.zip
[mod] move category and names of constants to searx/searxng.msg
Closes: https://github.com/searxng/searxng/issues/814 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
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',
+}