Changed the code for Chinese from zh to zh_CN to accomodate a possible zh_TW.

This commit is contained in:
Virgil Dupras 2011-09-06 15:04:06 -04:00
parent ee24234156
commit eeb7f84601
1 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ class PreferencesDialogBase(QDialog):
langindex = {
'fr': 1,
'de': 2,
'zh': 3
'zh_CN': 3
}.get(self.app.prefs.language, 0)
self.languageComboBox.setCurrentIndex(langindex)
self._load(prefs, setchecked)
@ -168,7 +168,7 @@ class PreferencesDialogBase(QDialog):
prefs.debug_mode = ischecked(self.debugModeBox)
prefs.destination_type = self.copyMoveDestinationComboBox.currentIndex()
prefs.custom_command = str(self.customCommandEdit.text())
langs = ['en', 'fr', 'de', 'zh']
langs = ['en', 'fr', 'de', 'zh_CN']
lang = langs[self.languageComboBox.currentIndex()]
oldlang = self.app.prefs.language
if oldlang not in langs: