From 25724c28b636679eeb336a3fdecbe4432b6162ff Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 11 Mar 2020 14:52:35 +1000 Subject: [PATCH] Revert "es-ES -> es" This reverts commit eae52de71ec9dc82320a2a192373c3d7548b41e0. This change broke Anki: https://anki.tenderapp.com/discussions/ankidesktop/39589-lang_to_disk_lang-startup-error --- pylib/anki/lang.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylib/anki/lang.py b/pylib/anki/lang.py index 2656ed95a..285a5c5fc 100644 --- a/pylib/anki/lang.py +++ b/pylib/anki/lang.py @@ -22,7 +22,7 @@ langs = sorted( ("Eesti", "et_EE"), ("English (United States)", "en_US"), ("English (United Kingdom)", "en_GB"), - ("Español", "es"), + ("Español", "es_ES"), ("Esperanto", "eo_UY"), ("Euskara", "eu_ES"), ("Français", "fr_FR"), @@ -76,6 +76,7 @@ compatMap = { "el": "el_GR", "en": "en_US", "eo": "eo_UY", + "es": "es_ES", "et": "et_EE", "eu": "eu_ES", "fa": "fa_IR", @@ -120,6 +121,7 @@ def lang_to_disk_lang(lang: str) -> str: # these language/region combinations are fully qualified, but with a hyphen if lang in ( "en_GB", + "es_ES", "ga_IE", "hy_AM", "nb_NO",