From 0cbc1228ea0c0df826a61fb386294a81980a62de Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Mon, 13 Jun 2022 16:29:25 +0200 Subject: [PATCH] [IMP] odoo_theme: stop translating language names in the switcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the language names were translated to display "Français" instead of "French". This helped the user find their language in the switcher but it was taking too much horizontal space, and that space was not constant from one language to another. This commit removes the translations of the language names and simply goes with "FR", "NL", etc. which any user can identify as their language. task-2800937 X-original-commit: b1fa30f43115db763e0a9211b61565eb5f5a41ae --- conf.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/conf.py b/conf.py index b0cfdf86d..08d828695 100644 --- a/conf.py +++ b/conf.py @@ -194,14 +194,14 @@ versions_names = { # The language names that should be shown in the language switcher, if the config option `languages` # is populated. If a language is passed to `languages` but is not listed here, it will not be shown. languages_names = { - 'de': 'Deutsch', - 'en': 'English', - 'es': 'Español', - 'fr': 'Français', - 'nl': 'Nederlands', - 'pt_BR': 'Português (BR)', - 'uk': 'українська', - 'zh_CN': '简体中文', + 'de': 'DE', + 'en': 'EN', + 'es': 'ES', + 'fr': 'FR', + 'nl': 'NL', + 'pt_BR': 'PT', + 'uk': 'UA', + 'zh_CN': 'ZH', } # The specifications of redirect rules used by the redirects extension.