mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 21:01:01 +00:00
[fix] get common used languages back (min_engines_per_lang = 13)
In commit 4d3f2f48d
common used languages has been droped. By reducing the
number of `min_engines_per_lang` from 15 to 13 we get theses languages back.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
4d3f2f48d2
commit
274edd523c
2 changed files with 9 additions and 2 deletions
|
@ -2,7 +2,9 @@
|
||||||
# list of language codes
|
# list of language codes
|
||||||
# this file is generated automatically by utils/fetch_languages.py
|
# this file is generated automatically by utils/fetch_languages.py
|
||||||
language_codes = \
|
language_codes = \
|
||||||
( ('ar-EG', 'العربية', '', 'Arabic'),
|
( ('af-ZA', 'Afrikaans', '', 'Afrikaans'),
|
||||||
|
('ar-EG', 'العربية', '', 'Arabic'),
|
||||||
|
('be-BY', 'Беларуская', '', 'Belarusian'),
|
||||||
('bg-BG', 'Български', '', 'Bulgarian'),
|
('bg-BG', 'Български', '', 'Bulgarian'),
|
||||||
('ca-ES', 'Català', '', 'Catalan'),
|
('ca-ES', 'Català', '', 'Catalan'),
|
||||||
('cs-CZ', 'Čeština', '', 'Czech'),
|
('cs-CZ', 'Čeština', '', 'Czech'),
|
||||||
|
@ -26,6 +28,7 @@ language_codes = \
|
||||||
('es-ES', 'Español', 'España', 'Spanish'),
|
('es-ES', 'Español', 'España', 'Spanish'),
|
||||||
('es-MX', 'Español', 'México', 'Spanish'),
|
('es-MX', 'Español', 'México', 'Spanish'),
|
||||||
('et-EE', 'Eesti', '', 'Estonian'),
|
('et-EE', 'Eesti', '', 'Estonian'),
|
||||||
|
('fa-IR', 'فارسی', '', 'Persian'),
|
||||||
('fi-FI', 'Suomi', '', 'Finnish'),
|
('fi-FI', 'Suomi', '', 'Finnish'),
|
||||||
('fr', 'Français', '', 'French'),
|
('fr', 'Français', '', 'French'),
|
||||||
('fr-BE', 'Français', 'Belgique', 'French'),
|
('fr-BE', 'Français', 'Belgique', 'French'),
|
||||||
|
@ -36,6 +39,7 @@ language_codes = \
|
||||||
('hr-HR', 'Hrvatski', '', 'Croatian'),
|
('hr-HR', 'Hrvatski', '', 'Croatian'),
|
||||||
('hu-HU', 'Magyar', '', 'Hungarian'),
|
('hu-HU', 'Magyar', '', 'Hungarian'),
|
||||||
('id-ID', 'Indonesia', '', 'Indonesian'),
|
('id-ID', 'Indonesia', '', 'Indonesian'),
|
||||||
|
('is-IS', 'Íslenska', '', 'Icelandic'),
|
||||||
('it-IT', 'Italiano', '', 'Italian'),
|
('it-IT', 'Italiano', '', 'Italian'),
|
||||||
('ja-JP', '日本語', '', 'Japanese'),
|
('ja-JP', '日本語', '', 'Japanese'),
|
||||||
('ko-KR', '한국어', '', 'Korean'),
|
('ko-KR', '한국어', '', 'Korean'),
|
||||||
|
@ -53,9 +57,12 @@ language_codes = \
|
||||||
('ru-RU', 'Русский', '', 'Russian'),
|
('ru-RU', 'Русский', '', 'Russian'),
|
||||||
('sk-SK', 'Slovenčina', '', 'Slovak'),
|
('sk-SK', 'Slovenčina', '', 'Slovak'),
|
||||||
('sl-SI', 'Slovenščina', '', 'Slovenian'),
|
('sl-SI', 'Slovenščina', '', 'Slovenian'),
|
||||||
|
('sr-RS', 'Srpski', '', 'Serbian'),
|
||||||
('sv-SE', 'Svenska', '', 'Swedish'),
|
('sv-SE', 'Svenska', '', 'Swedish'),
|
||||||
|
('sw-TZ', 'Kiswahili', '', 'Swahili'),
|
||||||
('th-TH', 'ไทย', '', 'Thai'),
|
('th-TH', 'ไทย', '', 'Thai'),
|
||||||
('tr-TR', 'Türkçe', '', 'Turkish'),
|
('tr-TR', 'Türkçe', '', 'Turkish'),
|
||||||
|
('uk-UA', 'Українська', '', 'Ukrainian'),
|
||||||
('vi-VN', 'Tiếng Việt', '', 'Vietnamese'),
|
('vi-VN', 'Tiếng Việt', '', 'Vietnamese'),
|
||||||
('zh', '中文', '', 'Chinese'),
|
('zh', '中文', '', 'Chinese'),
|
||||||
('zh-CN', '中文', '中国', 'Chinese'),
|
('zh-CN', '中文', '中国', 'Chinese'),
|
||||||
|
|
|
@ -109,7 +109,7 @@ def join_language_lists(engines_languages):
|
||||||
|
|
||||||
# Filter language list so it only includes the most supported languages and countries
|
# Filter language list so it only includes the most supported languages and countries
|
||||||
def filter_language_list(all_languages):
|
def filter_language_list(all_languages):
|
||||||
min_engines_per_lang = 15
|
min_engines_per_lang = 13
|
||||||
min_engines_per_country = 10
|
min_engines_per_country = 10
|
||||||
main_engines = [engine_name for engine_name in engines.keys()
|
main_engines = [engine_name for engine_name in engines.keys()
|
||||||
if 'general' in engines[engine_name].categories and
|
if 'general' in engines[engine_name].categories and
|
||||||
|
|
Loading…
Reference in a new issue