mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
Revert "es-ES -> es"
This reverts commit eae52de71e
.
This change broke Anki:
https://anki.tenderapp.com/discussions/ankidesktop/39589-lang_to_disk_lang-startup-error
This commit is contained in:
parent
131d37dca5
commit
25724c28b6
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,7 @@ langs = sorted(
|
||||||
("Eesti", "et_EE"),
|
("Eesti", "et_EE"),
|
||||||
("English (United States)", "en_US"),
|
("English (United States)", "en_US"),
|
||||||
("English (United Kingdom)", "en_GB"),
|
("English (United Kingdom)", "en_GB"),
|
||||||
("Español", "es"),
|
("Español", "es_ES"),
|
||||||
("Esperanto", "eo_UY"),
|
("Esperanto", "eo_UY"),
|
||||||
("Euskara", "eu_ES"),
|
("Euskara", "eu_ES"),
|
||||||
("Français", "fr_FR"),
|
("Français", "fr_FR"),
|
||||||
|
@ -76,6 +76,7 @@ compatMap = {
|
||||||
"el": "el_GR",
|
"el": "el_GR",
|
||||||
"en": "en_US",
|
"en": "en_US",
|
||||||
"eo": "eo_UY",
|
"eo": "eo_UY",
|
||||||
|
"es": "es_ES",
|
||||||
"et": "et_EE",
|
"et": "et_EE",
|
||||||
"eu": "eu_ES",
|
"eu": "eu_ES",
|
||||||
"fa": "fa_IR",
|
"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
|
# these language/region combinations are fully qualified, but with a hyphen
|
||||||
if lang in (
|
if lang in (
|
||||||
"en_GB",
|
"en_GB",
|
||||||
|
"es_ES",
|
||||||
"ga_IE",
|
"ga_IE",
|
||||||
"hy_AM",
|
"hy_AM",
|
||||||
"nb_NO",
|
"nb_NO",
|
||||||
|
|
Loading…
Reference in a new issue