From 1c9cc4a509841b9d6681bf1b5d45141ea9983fc8 Mon Sep 17 00:00:00 2001 From: Midou36O Date: Thu, 8 Feb 2024 16:37:43 +0000 Subject: [PATCH] Add morocco (french and arabic) as an option. --- searx/sxng_locales.py | 2 ++ searx/templates/simple/filters/languages.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/searx/sxng_locales.py b/searx/sxng_locales.py index 1ea673d7c..cb99f5199 100644 --- a/searx/sxng_locales.py +++ b/searx/sxng_locales.py @@ -9,6 +9,7 @@ This file is generated automatically by:: sxng_locales = ( ('af', 'Afrikaans', '', 'Afrikaans', '\U0001f310'), ('ar', 'العربية', '', 'Arabic', '\U0001f310'), + ('ar-MA', 'العربية', 'المغرب', 'Arabic', '\U0001f1f2\U0001F1E6'), ('ar-SA', 'العربية', 'المملكة العربية السعودية', 'Arabic', '\U0001f1f8\U0001f1e6'), ('be', 'Беларуская', '', 'Belarusian', '\U0001f310'), ('bg', 'Български', '', 'Bulgarian', '\U0001f310'), @@ -50,6 +51,7 @@ sxng_locales = ( ('fi', 'Suomi', '', 'Finnish', '\U0001f310'), ('fi-FI', 'Suomi', 'Suomi', 'Finnish', '\U0001f1eb\U0001f1ee'), ('fr', 'Français', '', 'French', '\U0001f310'), + ('fr-MA', 'Français', 'Maroc', 'Arabic', '\U0001f1f2\U0001F1E6'), ('fr-BE', 'Français', 'Belgique', 'French', '\U0001f1e7\U0001f1ea'), ('fr-CA', 'Français', 'Canada', 'French', '\U0001f1e8\U0001f1e6'), ('fr-CH', 'Français', 'Suisse', 'French', '\U0001f1e8\U0001f1ed'), diff --git a/searx/templates/simple/filters/languages.html b/searx/templates/simple/filters/languages.html index a42a304a5..77fffb3fa 100644 --- a/searx/templates/simple/filters/languages.html +++ b/searx/templates/simple/filters/languages.html @@ -9,4 +9,4 @@ {% if flag %}{{ flag }} {% endif%} {{- lang_name }} {% if country_name %} - {{ country_name }} {% endif %} [{{sxng_tag}}] {%- endfor -%} - + \ No newline at end of file