diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-02-03 16:33:58 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-03-16 09:55:53 +0100 |
commit | 784bf9ed15aa6e303e3996ef45f8f4281b032928 (patch) | |
tree | 412edb6c07152a532da82e4494813ef1f60b3b46 /searx/webapp.py | |
parent | b9cf3c82a18a4782a3aa543c91392c6483f5d2a4 (diff) | |
download | searxng-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/webapp.py')
-rwxr-xr-x | searx/webapp.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 5d3e7ebfd..defdee4e5 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -80,7 +80,6 @@ from searx.webutils import ( new_hmac, is_hmac_of, is_flask_run_cmdline, - DEFAULT_GROUP_NAME, group_engines_in_tab, ) from searx.webadapter import ( @@ -166,35 +165,6 @@ app.secret_key = settings['server']['secret_key'] babel = Babel(app) -# used when translating category names -_category_names = ( - gettext('files'), - gettext('general'), - gettext('music'), - gettext('social media'), - gettext('images'), - gettext('videos'), - gettext('it'), - gettext('news'), - gettext('map'), - gettext('onions'), - gettext('science'), - # non-tab categories - gettext('apps'), - gettext('dictionaries'), - gettext('lyrics'), - gettext('packages'), - gettext('q&a'), - gettext('repos'), - gettext('software wikis'), - gettext('web'), - gettext(DEFAULT_GROUP_NAME), - gettext(OTHER_CATEGORY), -) - -_simple_style = (gettext('auto'), gettext('light'), gettext('dark')) - -# timeout_text = gettext('timeout') parsing_error_text = gettext('parsing error') http_protocol_error_text = gettext('HTTP protocol error') |