[mod] update_languages: min_engines_per_country=7

a (language,country) tuple is included if 7 engines have it, was 10 before.

close #432
This commit is contained in:
Alexandre Flament 2021-10-26 12:10:29 +02:00
parent 9fe1ee4ed9
commit 828088fa5a
2 changed files with 13 additions and 3 deletions

View File

@ -19,13 +19,21 @@ language_codes = \
('en-CA', 'English', 'Canada', 'English'), ('en-CA', 'English', 'Canada', 'English'),
('en-GB', 'English', 'United Kingdom', 'English'), ('en-GB', 'English', 'United Kingdom', 'English'),
('en-IE', 'English', 'Ireland', 'English'), ('en-IE', 'English', 'Ireland', 'English'),
('en-IN', 'English', 'India', 'English'),
('en-MY', 'English', 'Malaysia', 'English'),
('en-NZ', 'English', 'New Zealand', 'English'), ('en-NZ', 'English', 'New Zealand', 'English'),
('en-PH', 'English', 'Philippines', 'English'),
('en-SG', 'English', 'Singapore', 'English'),
('en-US', 'English', 'United States', 'English'), ('en-US', 'English', 'United States', 'English'),
('en-ZA', 'English', 'South Africa', 'English'),
('es', 'Español', '', 'Spanish'), ('es', 'Español', '', 'Spanish'),
('es-AR', 'Español', 'Argentina', 'Spanish'), ('es-AR', 'Español', 'Argentina', 'Spanish'),
('es-CL', 'Español', 'Chile', 'Spanish'), ('es-CL', 'Español', 'Chile', 'Spanish'),
('es-CO', 'Español', 'Colombia', 'Spanish'),
('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'),
('es-PE', 'Español', 'Perú', 'Spanish'),
('es-US', 'Español', 'Estados Unidos', 'Spanish'),
('et-EE', 'Eesti', '', 'Estonian'), ('et-EE', 'Eesti', '', 'Estonian'),
('fa-IR', 'فارسی', '', 'Persian'), ('fa-IR', 'فارسی', '', 'Persian'),
('fi-FI', 'Suomi', '', 'Finnish'), ('fi-FI', 'Suomi', '', 'Finnish'),
@ -49,12 +57,14 @@ language_codes = \
('nl-BE', 'Nederlands', 'België', 'Dutch'), ('nl-BE', 'Nederlands', 'België', 'Dutch'),
('nl-NL', 'Nederlands', 'Nederland', 'Dutch'), ('nl-NL', 'Nederlands', 'Nederland', 'Dutch'),
('pl-PL', 'Polski', '', 'Polish'), ('pl-PL', 'Polski', '', 'Polish'),
('pt-PT', 'Português', '', 'Portuguese'), ('pt', 'Português', '', 'Portuguese'),
('pt-BR', 'Português', 'Brasil', 'Portuguese'),
('pt-PT', 'Português', 'Portugal', 'Portuguese'),
('ro-RO', 'Română', '', 'Romanian'), ('ro-RO', 'Română', '', 'Romanian'),
('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'), ('sr-RS', 'Српски', '', 'Serbian'),
('sv-SE', 'Svenska', '', 'Swedish'), ('sv-SE', 'Svenska', '', 'Swedish'),
('sw-TZ', 'Kiswahili', '', 'Swahili'), ('sw-TZ', 'Kiswahili', '', 'Swahili'),
('th-TH', 'ไทย', '', 'Thai'), ('th-TH', 'ไทย', '', 'Thai'),

View File

@ -111,7 +111,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 = 13 min_engines_per_lang = 13
min_engines_per_country = 10 min_engines_per_country = 7
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
engines[engine_name].supported_languages and engines[engine_name].supported_languages and