.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
sxng_locales.py
Go to the documentation of this file.
1# SPDX-License-Identifier: AGPL-3.0-or-later
2'''List of SearXNG's locale codes.
3
4.. hint::
5
6 Don't modify this file, this file is generated by::
7
8 ./manage data.traits
9'''
10
11sxng_locales = (
12 ('af', 'Afrikaans', '', 'Afrikaans', '\U0001f310'),
13 ('ar', 'العربية', '', 'Arabic', '\U0001f310'),
14 ('ar-SA', 'العربية', 'المملكة العربية السعودية', 'Arabic', '\U0001f1f8\U0001f1e6'),
15 ('be', 'Беларуская', '', 'Belarusian', '\U0001f310'),
16 ('bg', 'Български', '', 'Bulgarian', '\U0001f310'),
17 ('bg-BG', 'Български', 'България', 'Bulgarian', '\U0001f1e7\U0001f1ec'),
18 ('ca', 'Català', '', 'Catalan', '\U0001f310'),
19 ('cs', 'Čeština', '', 'Czech', '\U0001f310'),
20 ('cs-CZ', 'Čeština', 'Česko', 'Czech', '\U0001f1e8\U0001f1ff'),
21 ('cy', 'Cymraeg', '', 'Welsh', '\U0001f310'),
22 ('da', 'Dansk', '', 'Danish', '\U0001f310'),
23 ('da-DK', 'Dansk', 'Danmark', 'Danish', '\U0001f1e9\U0001f1f0'),
24 ('de', 'Deutsch', '', 'German', '\U0001f310'),
25 ('de-AT', 'Deutsch', 'Österreich', 'German', '\U0001f1e6\U0001f1f9'),
26 ('de-CH', 'Deutsch', 'Schweiz', 'German', '\U0001f1e8\U0001f1ed'),
27 ('de-DE', 'Deutsch', 'Deutschland', 'German', '\U0001f1e9\U0001f1ea'),
28 ('el', 'Ελληνικά', '', 'Greek', '\U0001f310'),
29 ('el-GR', 'Ελληνικά', 'Ελλάδα', 'Greek', '\U0001f1ec\U0001f1f7'),
30 ('en', 'English', '', 'English', '\U0001f310'),
31 ('en-AU', 'English', 'Australia', 'English', '\U0001f1e6\U0001f1fa'),
32 ('en-CA', 'English', 'Canada', 'English', '\U0001f1e8\U0001f1e6'),
33 ('en-GB', 'English', 'United Kingdom', 'English', '\U0001f1ec\U0001f1e7'),
34 ('en-IE', 'English', 'Ireland', 'English', '\U0001f1ee\U0001f1ea'),
35 ('en-IN', 'English', 'India', 'English', '\U0001f1ee\U0001f1f3'),
36 ('en-NZ', 'English', 'New Zealand', 'English', '\U0001f1f3\U0001f1ff'),
37 ('en-PH', 'English', 'Philippines', 'English', '\U0001f1f5\U0001f1ed'),
38 ('en-PK', 'English', 'Pakistan', 'English', '\U0001f1f5\U0001f1f0'),
39 ('en-SG', 'English', 'Singapore', 'English', '\U0001f1f8\U0001f1ec'),
40 ('en-US', 'English', 'United States', 'English', '\U0001f1fa\U0001f1f8'),
41 ('en-ZA', 'English', 'South Africa', 'English', '\U0001f1ff\U0001f1e6'),
42 ('es', 'Español', '', 'Spanish', '\U0001f310'),
43 ('es-AR', 'Español', 'Argentina', 'Spanish', '\U0001f1e6\U0001f1f7'),
44 ('es-CL', 'Español', 'Chile', 'Spanish', '\U0001f1e8\U0001f1f1'),
45 ('es-CO', 'Español', 'Colombia', 'Spanish', '\U0001f1e8\U0001f1f4'),
46 ('es-ES', 'Español', 'España', 'Spanish', '\U0001f1ea\U0001f1f8'),
47 ('es-MX', 'Español', 'México', 'Spanish', '\U0001f1f2\U0001f1fd'),
48 ('es-PE', 'Español', 'Perú', 'Spanish', '\U0001f1f5\U0001f1ea'),
49 ('et', 'Eesti', '', 'Estonian', '\U0001f310'),
50 ('et-EE', 'Eesti', 'Eesti', 'Estonian', '\U0001f1ea\U0001f1ea'),
51 ('fa', 'فارسی', '', 'Persian', '\U0001f310'),
52 ('fi', 'Suomi', '', 'Finnish', '\U0001f310'),
53 ('fi-FI', 'Suomi', 'Suomi', 'Finnish', '\U0001f1eb\U0001f1ee'),
54 ('fr', 'Français', '', 'French', '\U0001f310'),
55 ('fr-BE', 'Français', 'Belgique', 'French', '\U0001f1e7\U0001f1ea'),
56 ('fr-CA', 'Français', 'Canada', 'French', '\U0001f1e8\U0001f1e6'),
57 ('fr-CH', 'Français', 'Suisse', 'French', '\U0001f1e8\U0001f1ed'),
58 ('fr-FR', 'Français', 'France', 'French', '\U0001f1eb\U0001f1f7'),
59 ('ga', 'Gaeilge', '', 'Irish', '\U0001f310'),
60 ('gd', 'Gàidhlig', '', 'Scottish Gaelic', '\U0001f310'),
61 ('gl', 'Galego', '', 'Galician', '\U0001f310'),
62 ('he', 'עברית', '', 'Hebrew', '\U0001f1ee\U0001f1f1'),
63 ('hi', 'हिन्दी', '', 'Hindi', '\U0001f310'),
64 ('hr', 'Hrvatski', '', 'Croatian', '\U0001f310'),
65 ('hu', 'Magyar', '', 'Hungarian', '\U0001f310'),
66 ('hu-HU', 'Magyar', 'Magyarország', 'Hungarian', '\U0001f1ed\U0001f1fa'),
67 ('id', 'Indonesia', '', 'Indonesian', '\U0001f310'),
68 ('id-ID', 'Indonesia', 'Indonesia', 'Indonesian', '\U0001f1ee\U0001f1e9'),
69 ('it', 'Italiano', '', 'Italian', '\U0001f310'),
70 ('it-CH', 'Italiano', 'Svizzera', 'Italian', '\U0001f1e8\U0001f1ed'),
71 ('it-IT', 'Italiano', 'Italia', 'Italian', '\U0001f1ee\U0001f1f9'),
72 ('ja', '日本語', '', 'Japanese', '\U0001f310'),
73 ('ja-JP', '日本語', '日本', 'Japanese', '\U0001f1ef\U0001f1f5'),
74 ('kn', 'ಕನ್ನಡ', '', 'Kannada', '\U0001f310'),
75 ('ko', '한국어', '', 'Korean', '\U0001f310'),
76 ('ko-KR', '한국어', '대한민국', 'Korean', '\U0001f1f0\U0001f1f7'),
77 ('lt', 'Lietuvių', '', 'Lithuanian', '\U0001f310'),
78 ('lv', 'Latviešu', '', 'Latvian', '\U0001f310'),
79 ('ml', 'മലയാളം', '', 'Malayalam', '\U0001f310'),
80 ('mr', 'मराठी', '', 'Marathi', '\U0001f310'),
81 ('nb', 'Norsk Bokmål', '', 'Norwegian Bokmål', '\U0001f310'),
82 ('nb-NO', 'Norsk Bokmål', 'Norge', 'Norwegian Bokmål', '\U0001f1f3\U0001f1f4'),
83 ('nl', 'Nederlands', '', 'Dutch', '\U0001f310'),
84 ('nl-BE', 'Nederlands', 'België', 'Dutch', '\U0001f1e7\U0001f1ea'),
85 ('nl-NL', 'Nederlands', 'Nederland', 'Dutch', '\U0001f1f3\U0001f1f1'),
86 ('pl', 'Polski', '', 'Polish', '\U0001f310'),
87 ('pl-PL', 'Polski', 'Polska', 'Polish', '\U0001f1f5\U0001f1f1'),
88 ('pt', 'Português', '', 'Portuguese', '\U0001f310'),
89 ('pt-BR', 'Português', 'Brasil', 'Portuguese', '\U0001f1e7\U0001f1f7'),
90 ('pt-PT', 'Português', 'Portugal', 'Portuguese', '\U0001f1f5\U0001f1f9'),
91 ('ro', 'Română', '', 'Romanian', '\U0001f310'),
92 ('ro-RO', 'Română', 'România', 'Romanian', '\U0001f1f7\U0001f1f4'),
93 ('ru', 'Русский', '', 'Russian', '\U0001f310'),
94 ('ru-RU', 'Русский', 'Россия', 'Russian', '\U0001f1f7\U0001f1fa'),
95 ('sk', 'Slovenčina', '', 'Slovak', '\U0001f310'),
96 ('sl', 'Slovenščina', '', 'Slovenian', '\U0001f310'),
97 ('sq', 'Shqip', '', 'Albanian', '\U0001f310'),
98 ('sv', 'Svenska', '', 'Swedish', '\U0001f310'),
99 ('sv-SE', 'Svenska', 'Sverige', 'Swedish', '\U0001f1f8\U0001f1ea'),
100 ('ta', 'தமிழ்', '', 'Tamil', '\U0001f310'),
101 ('th', 'ไทย', '', 'Thai', '\U0001f310'),
102 ('th-TH', 'ไทย', 'ไทย', 'Thai', '\U0001f1f9\U0001f1ed'),
103 ('tr', 'Türkçe', '', 'Turkish', '\U0001f310'),
104 ('tr-TR', 'Türkçe', 'Türkiye', 'Turkish', '\U0001f1f9\U0001f1f7'),
105 ('uk', 'Українська', '', 'Ukrainian', '\U0001f310'),
106 ('ur', 'اردو', '', 'Urdu', '\U0001f310'),
107 ('vi', 'Tiếng Việt', '', 'Vietnamese', '\U0001f310'),
108 ('zh', '中文', '', 'Chinese', '\U0001f310'),
109 ('zh-CN', '中文', '中国', 'Chinese', '\U0001f1e8\U0001f1f3'),
110 ('zh-HK', '中文', '中國香港特別行政區', 'Chinese', '\U0001f1ed\U0001f1f0'),
111 ('zh-TW', '中文', '台灣', 'Chinese', '\U0001f1f9\U0001f1fc'),
112)
113'''
114A list of five-digit tuples:
115
1160. SearXNG's internal locale tag (a language or region tag)
1171. Name of the language (:py:obj:`babel.core.Locale.get_language_name`)
1182. For region tags the name of the region (:py:obj:`babel.core.Locale.get_territory_name`).
119 Empty string for language tags.
1203. English language name (from :py:obj:`babel.core.Locale.english_name`)
1214. Unicode flag (emoji) that fits to SearXNG's internal region tag. Languages
122 are represented by a globe (🌐)
123
124.. code:: python
125
126 ('en', 'English', '', 'English', '🌐'),
127 ('en-CA', 'English', 'Canada', 'English', '🇨🇦'),
128 ('en-US', 'English', 'United States', 'English', '🇺🇸'),
129 ..
130 ('fr', 'Français', '', 'French', '🌐'),
131 ('fr-BE', 'Français', 'Belgique', 'French', '🇧🇪'),
132 ('fr-CA', 'Français', 'Canada', 'French', '🇨🇦'),
133
134:meta hide-value:
135'''