1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Added Chinese (Simplified) localization for Qt.

This commit is contained in:
Virgil Dupras
2011-09-03 10:19:17 -04:00
parent e10e9a6976
commit bb2faa27f9
6 changed files with 788 additions and 1 deletions

View File

@@ -5,6 +5,8 @@
<file alias="qt_fr.qm">../lang/qt_fr.qm</file>
<file alias="de.qm">../lang/de.qm</file>
<file alias="qt_de.qm">../lang/qt_de.qm</file>
<file alias="zh.qm">../lang/zh.qm</file>
<file alias="qt_zh.qm">../lang/qt_zh.qm</file>
<file alias="logo_pe">../../images/dgpe_logo_32.png</file>
<file alias="logo_pe_big">../../images/dgpe_logo_128.png</file>
<file alias="logo_me">../../images/dgme_logo_32.png</file>

View File

@@ -85,6 +85,7 @@ class PreferencesDialogBase(QDialog):
self.languageComboBox.addItem(tr("English"))
self.languageComboBox.addItem(tr("French"))
self.languageComboBox.addItem(tr("German"))
self.languageComboBox.addItem(tr("Chinese (Simplified)"))
self.widgetsVLayout.addWidget(self.languageComboBox)
self.copyMoveLabel = QLabel(self)
self.copyMoveLabel.setText(tr("Copy and Move:"))
@@ -151,6 +152,7 @@ class PreferencesDialogBase(QDialog):
langindex = {
'fr': 1,
'de': 2,
'zh': 3
}.get(self.app.prefs.language, 0)
self.languageComboBox.setCurrentIndex(langindex)
self._load(prefs, setchecked)
@@ -166,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']
langs = ['en', 'fr', 'de', 'zh']
lang = langs[self.languageComboBox.currentIndex()]
oldlang = self.app.prefs.language
if oldlang not in langs: