mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix English being shown in prefs for fully qualified langs like zh-CN
https://anki.tenderapp.com/discussions/ankidesktop/39845-a-new-bug-has-been-found
This commit is contained in:
parent
966eb666f0
commit
c615342130
1 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,8 @@ class Preferences(QDialog):
|
|||
lang = anki.lang.currentLang
|
||||
if lang in anki.lang.compatMap:
|
||||
lang = anki.lang.compatMap[lang]
|
||||
else:
|
||||
lang = lang.replace("-", "_")
|
||||
try:
|
||||
return codes.index(lang)
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue