mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug causing laguage to be set to Arabic in OS X when the config dialog is run
This commit is contained in:
parent
32a66a5e28
commit
2f209da627
@ -194,7 +194,11 @@ class ConfigDialog(QDialog, Ui_Dialog):
|
||||
lang = get_lang()
|
||||
if lang is not None and language_codes.has_key(lang):
|
||||
self.language.addItem(language_codes[lang], QVariant(lang))
|
||||
items = [(l, language_codes[l]) for l in translations.keys() if l != lang]
|
||||
else:
|
||||
lang = 'en'
|
||||
self.language.addItem('English', 'en')
|
||||
items = [(l, language_codes[l]) for l in translations.keys() \
|
||||
if l != lang]
|
||||
if lang != 'en':
|
||||
items.append(('en', 'English'))
|
||||
items.sort(cmp=lambda x, y: cmp(x[1], y[1]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user