searxng.msg 2.2 KB

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