searxng.msg 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # -*- mode: python -*-
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. """A SearXNG message file, see :py:obj:`searx.babel`
  4. """
  5. import typing
  6. from searx import webutils
  7. from searx import engines
  8. from searx.weather import WeatherConditionType
  9. __all__ = [
  10. 'CONSTANT_NAMES',
  11. 'CATEGORY_NAMES',
  12. 'CATEGORY_GROUPS',
  13. 'STYLE_NAMES',
  14. 'BRAND_CUSTOM_LINKS',
  15. 'WEATHER_TERMS',
  16. 'WEATHER_CONDITIONS',
  17. 'SOCIAL_MEDIA_TERMS',
  18. ]
  19. CONSTANT_NAMES = {
  20. # Constants defined in other modules
  21. 'NO_SUBGROUPING': webutils.NO_SUBGROUPING,
  22. 'DEFAULT_CATEGORY': engines.DEFAULT_CATEGORY,
  23. }
  24. CATEGORY_NAMES = {
  25. 'FILES': 'files',
  26. 'GENERAL': 'general',
  27. 'MUSIC': 'music',
  28. 'SOCIAL_MEDIA': 'social media',
  29. 'IMAGES': 'images',
  30. 'VIDEOS': 'videos',
  31. 'RADIO': 'radio',
  32. 'TV': 'tv',
  33. 'IT': 'it',
  34. 'NEWS': 'news',
  35. 'MAP': 'map',
  36. 'ONIONS': 'onions',
  37. 'SCIENCE': 'science',
  38. }
  39. CATEGORY_GROUPS = {
  40. # non-tab categories
  41. 'APPS': 'apps',
  42. 'DICTIONARIES': 'dictionaries',
  43. 'LYRICS': 'lyrics',
  44. 'PACKAGES': 'packages',
  45. 'Q_A': 'q&a',
  46. 'REPOS': 'repos',
  47. 'SOFTWARE_WIKIS': 'software wikis',
  48. 'WEB': 'web',
  49. 'SCIENTIFIC PUBLICATIONS': 'scientific publications',
  50. }
  51. STYLE_NAMES = {
  52. 'AUTO': 'auto',
  53. 'LIGHT': 'light',
  54. 'DARK': 'dark',
  55. 'BLACK': 'black',
  56. }
  57. BRAND_CUSTOM_LINKS = {
  58. 'UPTIME': 'Uptime',
  59. 'ABOUT': 'About',
  60. }
  61. WEATHER_TERMS = {
  62. 'AVERAGE TEMP.': 'Average temp.',
  63. 'CLOUD COVER': 'Cloud cover',
  64. 'CONDITION': 'Condition',
  65. 'CURRENT CONDITION': 'Current condition',
  66. 'EVENING': 'Evening',
  67. 'FEELS LIKE': 'Feels like',
  68. 'HUMIDITY': 'Humidity',
  69. 'MAX TEMP.': 'Max temp.',
  70. 'MIN TEMP.': 'Min temp.',
  71. 'MORNING': 'Morning',
  72. 'NIGHT': 'Night',
  73. 'NOON': 'Noon',
  74. 'PRESSURE': 'Pressure',
  75. 'SUNRISE': 'Sunrise',
  76. 'SUNSET': 'Sunset',
  77. 'TEMPERATURE': 'Temperature',
  78. 'UV INDEX': 'UV index',
  79. 'VISIBILITY': 'Visibility',
  80. 'WIND': 'Wind',
  81. }
  82. WEATHER_CONDITIONS = [
  83. # The capitalized string goes into to i18n/l10n (en: "Clear sky" -> de: "wolkenloser Himmel")
  84. msg.capitalize()
  85. for msg in typing.get_args(WeatherConditionType)
  86. ]
  87. SOCIAL_MEDIA_TERMS = {
  88. 'SUBSCRIBERS': 'subscribers',
  89. 'POSTS': 'posts',
  90. 'ACTIVE USERS': 'active users',
  91. 'COMMENTS': 'comments',
  92. 'USER': 'user',
  93. 'COMMUNITY': 'community',
  94. 'POINTS': 'points',
  95. 'TITLE': 'title',
  96. 'AUTHOR': 'author',
  97. 'THREAD OPEN': 'open',
  98. 'THREAD CLOSED': 'closed',
  99. 'THREAD ANSWERED': 'answered',
  100. }