summaryrefslogtreecommitdiff
path: root/searx/searxng.msg
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-04-21 15:52:26 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-04-26 07:34:32 +0200
commitddaa6ed7593e07e772b9374b863b0f6eab206690 (patch)
tree01c11c3a11065f5c9d5fca4e46f1eb0830c45e1b /searx/searxng.msg
parent0a4280a13787bd3e132b2b9c4c2f7b1816aa6906 (diff)
downloadsearxng-ddaa6ed7593e07e772b9374b863b0f6eab206690.tar.gz
searxng-ddaa6ed7593e07e772b9374b863b0f6eab206690.zip
[fix] add missing localizable (gettext) messages to searxng.msg
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>
Diffstat (limited to 'searx/searxng.msg')
-rw-r--r--searx/searxng.msg38
1 files changed, 38 insertions, 0 deletions
diff --git a/searx/searxng.msg b/searx/searxng.msg
index b3d33e1f2..17c38d3ae 100644
--- a/searx/searxng.msg
+++ b/searx/searxng.msg
@@ -12,6 +12,8 @@ __all__ = [
'CATEGORY_GROUPS',
'STYLE_NAMES',
'BRAND_CUSTOM_LINKS',
+ 'WEATHER_TERMS',
+ 'SOCIAL_MEDIA_TERMS',
]
CONSTANT_NAMES = {
@@ -27,6 +29,8 @@ CATEGORY_NAMES = {
'SOCIAL_MEDIA': 'social media',
'IMAGES': 'images',
'VIDEOS': 'videos',
+ 'RADIO': 'radio',
+ 'TV': 'tv',
'IT': 'it',
'NEWS': 'news',
'MAP': 'map',
@@ -57,3 +61,37 @@ 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',
+}