[mod] update intersphinx links and add missing CATEGORY_GROUPS
To get translations for, the missed CATEGORY_GROUPS has been added: - ai - movies - translate - wikimedia Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
1273ed7f7d
commit
8ab16bb419
@ -142,10 +142,10 @@ suppress_warnings = ['myst.domains']
|
|||||||
intersphinx_mapping = {
|
intersphinx_mapping = {
|
||||||
"python": ("https://docs.python.org/3/", None),
|
"python": ("https://docs.python.org/3/", None),
|
||||||
"babel" : ("https://babel.readthedocs.io/en/latest/", None),
|
"babel" : ("https://babel.readthedocs.io/en/latest/", None),
|
||||||
"flask": ("https://flask.palletsprojects.com/", None),
|
"flask": ("https://flask.palletsprojects.com/en/stable/", None),
|
||||||
"flask_babel": ("https://python-babel.github.io/flask-babel/", None),
|
"flask_babel": ("https://python-babel.github.io/flask-babel/", None),
|
||||||
# "werkzeug": ("https://werkzeug.palletsprojects.com/", None),
|
# "werkzeug": ("https://werkzeug.palletsprojects.com/", None),
|
||||||
"jinja": ("https://jinja.palletsprojects.com/", None),
|
"jinja": ("https://jinja.palletsprojects.com/en/stable/", None),
|
||||||
"linuxdoc" : ("https://return42.github.io/linuxdoc/", None),
|
"linuxdoc" : ("https://return42.github.io/linuxdoc/", None),
|
||||||
"sphinx" : ("https://www.sphinx-doc.org/en/master/", None),
|
"sphinx" : ("https://www.sphinx-doc.org/en/master/", None),
|
||||||
"redis": ('https://redis.readthedocs.io/en/stable/', None),
|
"redis": ('https://redis.readthedocs.io/en/stable/', None),
|
||||||
|
@ -7,72 +7,77 @@ from searx import webutils
|
|||||||
from searx import engines
|
from searx import engines
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
'CONSTANT_NAMES',
|
|
||||||
'CATEGORY_NAMES',
|
|
||||||
'CATEGORY_GROUPS',
|
|
||||||
'STYLE_NAMES',
|
|
||||||
'BRAND_CUSTOM_LINKS',
|
'BRAND_CUSTOM_LINKS',
|
||||||
'WEATHER_TERMS',
|
'CATEGORY_GROUPS',
|
||||||
|
'CATEGORY_NAMES',
|
||||||
|
'CONSTANT_NAMES',
|
||||||
'SOCIAL_MEDIA_TERMS',
|
'SOCIAL_MEDIA_TERMS',
|
||||||
|
'STYLE_NAMES',
|
||||||
|
'WEATHER_TERMS',
|
||||||
]
|
]
|
||||||
|
|
||||||
CONSTANT_NAMES = {
|
CONSTANT_NAMES = {
|
||||||
# Constants defined in other modules
|
# Constants defined in other modules
|
||||||
'NO_SUBGROUPING': webutils.NO_SUBGROUPING,
|
|
||||||
'DEFAULT_CATEGORY': engines.DEFAULT_CATEGORY,
|
'DEFAULT_CATEGORY': engines.DEFAULT_CATEGORY,
|
||||||
|
'NO_SUBGROUPING': webutils.NO_SUBGROUPING,
|
||||||
}
|
}
|
||||||
|
|
||||||
CATEGORY_NAMES = {
|
CATEGORY_NAMES = {
|
||||||
'FILES': 'files',
|
'FILES': 'files',
|
||||||
'GENERAL': 'general',
|
'GENERAL': 'general',
|
||||||
'MUSIC': 'music',
|
|
||||||
'SOCIAL_MEDIA': 'social media',
|
|
||||||
'IMAGES': 'images',
|
'IMAGES': 'images',
|
||||||
'VIDEOS': 'videos',
|
|
||||||
'RADIO': 'radio',
|
|
||||||
'TV': 'tv',
|
|
||||||
'IT': 'it',
|
'IT': 'it',
|
||||||
'NEWS': 'news',
|
|
||||||
'MAP': 'map',
|
'MAP': 'map',
|
||||||
|
'MUSIC': 'music',
|
||||||
|
'NEWS': 'news',
|
||||||
'ONIONS': 'onions',
|
'ONIONS': 'onions',
|
||||||
|
'RADIO': 'radio',
|
||||||
'SCIENCE': 'science',
|
'SCIENCE': 'science',
|
||||||
|
'SOCIAL_MEDIA': 'social media',
|
||||||
|
'TV': 'tv',
|
||||||
|
'VIDEOS': 'videos',
|
||||||
}
|
}
|
||||||
|
|
||||||
CATEGORY_GROUPS = {
|
CATEGORY_GROUPS = {
|
||||||
# non-tab categories
|
# non-tab categories
|
||||||
|
'AI': 'ai',
|
||||||
'APPS': 'apps',
|
'APPS': 'apps',
|
||||||
'DICTIONARIES': 'dictionaries',
|
'DICTIONARIES': 'dictionaries',
|
||||||
'LYRICS': 'lyrics',
|
'LYRICS': 'lyrics',
|
||||||
|
'MOVIES': 'movies',
|
||||||
'PACKAGES': 'packages',
|
'PACKAGES': 'packages',
|
||||||
'Q_A': 'q&a',
|
'Q_A': 'q&a',
|
||||||
'REPOS': 'repos',
|
'REPOS': 'repos',
|
||||||
|
'SCIENTIFIC_PUBLICATIONS': 'scientific publications',
|
||||||
'SOFTWARE_WIKIS': 'software wikis',
|
'SOFTWARE_WIKIS': 'software wikis',
|
||||||
|
'TRANSLATE': 'translate',
|
||||||
|
'WEATHER': 'weather',
|
||||||
'WEB': 'web',
|
'WEB': 'web',
|
||||||
'SCIENTIFIC PUBLICATIONS': 'scientific publications',
|
'WIKIMEDIA': 'wikimedia',
|
||||||
}
|
}
|
||||||
|
|
||||||
STYLE_NAMES = {
|
STYLE_NAMES = {
|
||||||
'AUTO': 'auto',
|
'AUTO': 'auto',
|
||||||
'LIGHT': 'light',
|
|
||||||
'DARK': 'dark',
|
|
||||||
'BLACK': 'black',
|
'BLACK': 'black',
|
||||||
|
'DARK': 'dark',
|
||||||
|
'LIGHT': 'light',
|
||||||
}
|
}
|
||||||
|
|
||||||
BRAND_CUSTOM_LINKS = {
|
BRAND_CUSTOM_LINKS = {
|
||||||
'UPTIME': 'Uptime',
|
|
||||||
'ABOUT': 'About',
|
'ABOUT': 'About',
|
||||||
|
'UPTIME': 'Uptime',
|
||||||
}
|
}
|
||||||
|
|
||||||
WEATHER_TERMS = {
|
WEATHER_TERMS = {
|
||||||
'AVERAGE TEMP.': 'Average temp.',
|
'AVERAGE_TEMP.': 'Average temp.',
|
||||||
'CLOUD COVER': 'Cloud cover',
|
'CLOUD_COVER': 'Cloud cover',
|
||||||
'CONDITION': 'Condition',
|
'CONDITION': 'Condition',
|
||||||
'CURRENT CONDITION': 'Current condition',
|
'CURRENT_CONDITION': 'Current condition',
|
||||||
'EVENING': 'Evening',
|
'EVENING': 'Evening',
|
||||||
'FEELS LIKE': 'Feels like',
|
'FEELS_LIKE': 'Feels like',
|
||||||
'HUMIDITY': 'Humidity',
|
'HUMIDITY': 'Humidity',
|
||||||
'MAX TEMP.': 'Max temp.',
|
'MAX_TEMP.': 'Max temp.',
|
||||||
'MIN TEMP.': 'Min temp.',
|
'MIN_TEMP.': 'Min temp.',
|
||||||
'MORNING': 'Morning',
|
'MORNING': 'Morning',
|
||||||
'NIGHT': 'Night',
|
'NIGHT': 'Night',
|
||||||
'NOON': 'Noon',
|
'NOON': 'Noon',
|
||||||
@ -80,22 +85,22 @@ WEATHER_TERMS = {
|
|||||||
'SUNRISE': 'Sunrise',
|
'SUNRISE': 'Sunrise',
|
||||||
'SUNSET': 'Sunset',
|
'SUNSET': 'Sunset',
|
||||||
'TEMPERATURE': 'Temperature',
|
'TEMPERATURE': 'Temperature',
|
||||||
'UV INDEX': 'UV index',
|
'UV_INDEX': 'UV index',
|
||||||
'VISIBILITY': 'Visibility',
|
'VISIBILITY': 'Visibility',
|
||||||
'WIND': 'Wind',
|
'WIND': 'Wind',
|
||||||
}
|
}
|
||||||
|
|
||||||
SOCIAL_MEDIA_TERMS = {
|
SOCIAL_MEDIA_TERMS = {
|
||||||
'SUBSCRIBERS': 'subscribers',
|
'ACTIVE_USERS': 'active users',
|
||||||
'POSTS': 'posts',
|
'AUTHOR': 'author',
|
||||||
'ACTIVE USERS': 'active users',
|
|
||||||
'COMMENTS': 'comments',
|
'COMMENTS': 'comments',
|
||||||
'USER': 'user',
|
|
||||||
'COMMUNITY': 'community',
|
'COMMUNITY': 'community',
|
||||||
'POINTS': 'points',
|
'POINTS': 'points',
|
||||||
|
'POSTS': 'posts',
|
||||||
|
'SUBSCRIBERS': 'subscribers',
|
||||||
|
'THREAD_ANSWERED': 'answered',
|
||||||
|
'THREAD_CLOSED': 'closed',
|
||||||
|
'THREAD_OPEN': 'open',
|
||||||
'TITLE': 'title',
|
'TITLE': 'title',
|
||||||
'AUTHOR': 'author',
|
'USER': 'user',
|
||||||
'THREAD OPEN': 'open',
|
|
||||||
'THREAD CLOSED': 'closed',
|
|
||||||
'THREAD ANSWERED': 'answered',
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user