Skip to content

Commit b1fa30f

Browse files
edi-odooAntoineVDV
authored andcommitted
[IMP] odoo_theme: stop translating language names in the switcher
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
1 parent 343decf commit b1fa30f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

conf.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,14 @@
163163
# The language names that should be shown in the language switcher, if the config option `languages`
164164
# is populated. If a language is passed to `languages` but is not listed here, it will not be shown.
165165
languages_names = {
166-
'de': 'Deutsch',
167-
'en': 'English',
168-
'es': 'Español',
169-
'fr': 'Français',
170-
'nl': 'Nederlands',
171-
'pt_BR': 'Português (BR)',
172-
'uk': 'українська',
173-
'zh_CN': '简体中文',
166+
'de': 'DE',
167+
'en': 'EN',
168+
'es': 'ES',
169+
'fr': 'FR',
170+
'nl': 'NL',
171+
'pt_BR': 'PT',
172+
'uk': 'UA',
173+
'zh_CN': 'ZH',
174174
}
175175

176176
# The specifications of redirect rules used by the redirects extension.

0 commit comments

Comments
 (0)