mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 21:01:01 +00:00
ddaa6ed759
To test this patch I used .. and checked the diff of the `messages.pot` file:: $ ./manage pyenv.cmd pybabel extract -F babel.cfg \ -o ./searx/translations/messages.pot searx/ $ git diff ./searx/translations/messages.pot ---- hint from @dalf: f-string are not supported [1] but there is no error [2]. [1] python-babel/babel#594 [2] python-babel/babel#715 Closes: https://github.com/searxng/searxng/issues/3412 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
97 lines
2.1 KiB
Python
97 lines
2.1 KiB
Python
# -*- 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',
|
|
'BRAND_CUSTOM_LINKS',
|
|
'WEATHER_TERMS',
|
|
'SOCIAL_MEDIA_TERMS',
|
|
]
|
|
|
|
CONSTANT_NAMES = {
|
|
# Constants defined in other modules
|
|
'NO_SUBGROUPING': webutils.NO_SUBGROUPING,
|
|
'DEFAULT_CATEGORY': engines.DEFAULT_CATEGORY,
|
|
}
|
|
|
|
CATEGORY_NAMES = {
|
|
'FILES': 'files',
|
|
'GENERAL': 'general',
|
|
'MUSIC': 'music',
|
|
'SOCIAL_MEDIA': 'social media',
|
|
'IMAGES': 'images',
|
|
'VIDEOS': 'videos',
|
|
'RADIO': 'radio',
|
|
'TV': 'tv',
|
|
'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',
|
|
'SCIENTIFIC PUBLICATIONS': 'scientific publications',
|
|
}
|
|
|
|
STYLE_NAMES = {
|
|
'AUTO': 'auto',
|
|
'LIGHT': 'light',
|
|
'DARK': 'dark',
|
|
}
|
|
|
|
BRAND_CUSTOM_LINKS = {
|
|
'UPTIME': 'Uptime',
|
|
'ABOUT': 'About',
|
|
}
|
|
|
|
WEATHER_TERMS = {
|
|
'AVERAGE TEMP.': 'Average temp.',
|
|
'CLOUD COVER': 'Cloud cover',
|
|
'CONDITION': 'Condition',
|
|
'CURRENT CONDITION': 'Current condition',
|
|
'EVENING': 'Evening',
|
|
'FEELS LIKE': 'Feels like',
|
|
'HUMIDITY': 'Humidity',
|
|
'MAX TEMP.': 'Max temp.',
|
|
'MIN TEMP.': 'Min temp.',
|
|
'MORNING': 'Morning',
|
|
'NIGHT': 'Night',
|
|
'NOON': 'Noon',
|
|
'PRESSURE': 'Pressure',
|
|
'SUNRISE': 'Sunrise',
|
|
'SUNSET': 'Sunset',
|
|
'TEMPERATURE': 'Temperature',
|
|
'UV INDEX': 'UV index',
|
|
'VISIBILITY': 'Visibility',
|
|
'WIND': 'Wind',
|
|
}
|
|
|
|
SOCIAL_MEDIA_TERMS = {
|
|
'SUBSCRIBERS': 'subscribers',
|
|
'POSTS': 'posts',
|
|
'ACTIVE USERS': 'active users',
|
|
'COMMENTS': 'comments',
|
|
'USER': 'user',
|
|
'COMMUNITY': 'community',
|
|
'POINTS': 'points',
|
|
'TITLE': 'title',
|
|
'AUTHOR': 'author',
|
|
}
|