mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Changed the code for Chinese from zh to zh_CN to accomodate a possible zh_TW.
This commit is contained in:
parent
ee24234156
commit
eeb7f84601
@ -152,7 +152,7 @@ class PreferencesDialogBase(QDialog):
|
|||||||
langindex = {
|
langindex = {
|
||||||
'fr': 1,
|
'fr': 1,
|
||||||
'de': 2,
|
'de': 2,
|
||||||
'zh': 3
|
'zh_CN': 3
|
||||||
}.get(self.app.prefs.language, 0)
|
}.get(self.app.prefs.language, 0)
|
||||||
self.languageComboBox.setCurrentIndex(langindex)
|
self.languageComboBox.setCurrentIndex(langindex)
|
||||||
self._load(prefs, setchecked)
|
self._load(prefs, setchecked)
|
||||||
@ -168,7 +168,7 @@ class PreferencesDialogBase(QDialog):
|
|||||||
prefs.debug_mode = ischecked(self.debugModeBox)
|
prefs.debug_mode = ischecked(self.debugModeBox)
|
||||||
prefs.destination_type = self.copyMoveDestinationComboBox.currentIndex()
|
prefs.destination_type = self.copyMoveDestinationComboBox.currentIndex()
|
||||||
prefs.custom_command = str(self.customCommandEdit.text())
|
prefs.custom_command = str(self.customCommandEdit.text())
|
||||||
langs = ['en', 'fr', 'de', 'zh']
|
langs = ['en', 'fr', 'de', 'zh_CN']
|
||||||
lang = langs[self.languageComboBox.currentIndex()]
|
lang = langs[self.languageComboBox.currentIndex()]
|
||||||
oldlang = self.app.prefs.language
|
oldlang = self.app.prefs.language
|
||||||
if oldlang not in langs:
|
if oldlang not in langs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user