summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/languages.py14
-rwxr-xr-xsearxng_extra/update/update_languages.py2
2 files changed, 13 insertions, 3 deletions
diff --git a/searx/languages.py b/searx/languages.py
index f2d46e4f9..c44eb0b9e 100644
--- a/searx/languages.py
+++ b/searx/languages.py
@@ -19,13 +19,21 @@ language_codes = \
('en-CA', 'English', 'Canada', 'English'),
('en-GB', 'English', 'United Kingdom', 'English'),
('en-IE', 'English', 'Ireland', 'English'),
+ ('en-IN', 'English', 'India', 'English'),
+ ('en-MY', 'English', 'Malaysia', 'English'),
('en-NZ', 'English', 'New Zealand', 'English'),
+ ('en-PH', 'English', 'Philippines', 'English'),
+ ('en-SG', 'English', 'Singapore', 'English'),
('en-US', 'English', 'United States', 'English'),
+ ('en-ZA', 'English', 'South Africa', 'English'),
('es', 'Español', '', 'Spanish'),
('es-AR', 'Español', 'Argentina', 'Spanish'),
('es-CL', 'Español', 'Chile', 'Spanish'),
+ ('es-CO', 'Español', 'Colombia', 'Spanish'),
('es-ES', 'Español', 'España', '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'),
('fa-IR', 'فارسی', '', 'Persian'),
('fi-FI', 'Suomi', '', 'Finnish'),
@@ -49,12 +57,14 @@ language_codes = \
('nl-BE', 'Nederlands', 'België', 'Dutch'),
('nl-NL', 'Nederlands', 'Nederland', 'Dutch'),
('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'),
('ru-RU', 'Русский', '', 'Russian'),
('sk-SK', 'Slovenčina', '', 'Slovak'),
('sl-SI', 'Slovenščina', '', 'Slovenian'),
- ('sr-RS', 'Srpski', '', 'Serbian'),
+ ('sr-RS', 'Српски', '', 'Serbian'),
('sv-SE', 'Svenska', '', 'Swedish'),
('sw-TZ', 'Kiswahili', '', 'Swahili'),
('th-TH', 'ไทย', '', 'Thai'),
diff --git a/searxng_extra/update/update_languages.py b/searxng_extra/update/update_languages.py
index e05dced69..2d7ffc104 100755
--- a/searxng_extra/update/update_languages.py
+++ b/searxng_extra/update/update_languages.py
@@ -111,7 +111,7 @@ def join_language_lists(engines_languages):
# Filter language list so it only includes the most supported languages and countries
def filter_language_list(all_languages):
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()
if 'general' in engines[engine_name].categories and
engines[engine_name].supported_languages and