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

Added german localization (by Gregor Taetzner) [Qt].

This commit is contained in:
Virgil Dupras
2011-07-13 10:21:36 -04:00
parent 2ba3584b7e
commit 34a1b5d9b5
6 changed files with 793 additions and 2 deletions

View File

@@ -3,6 +3,8 @@
<file alias="en.qm">../lang/en.qm</file>
<file alias="fr.qm">../lang/fr.qm</file>
<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="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

@@ -84,6 +84,7 @@ class PreferencesDialogBase(QDialog):
self.languageComboBox = QComboBox(self)
self.languageComboBox.addItem(tr("English"))
self.languageComboBox.addItem(tr("French"))
self.languageComboBox.addItem(tr("German"))
self.widgetsVLayout.addWidget(self.languageComboBox)
self.copyMoveLabel = QLabel(self)
self.copyMoveLabel.setText(tr("Copy and Move:"))
@@ -147,7 +148,10 @@ class PreferencesDialogBase(QDialog):
setchecked(self.debugModeBox, prefs.debug_mode)
self.copyMoveDestinationComboBox.setCurrentIndex(prefs.destination_type)
self.customCommandEdit.setText(prefs.custom_command)
langindex = {'fr': 1}.get(self.app.prefs.language, 0)
langindex = {
'fr': 1,
'de': 2,
}.get(self.app.prefs.language, 0)
self.languageComboBox.setCurrentIndex(langindex)
self._load(prefs, setchecked)
@@ -162,7 +166,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']
langs = ['en', 'fr', 'de']
lang = langs[self.languageComboBox.currentIndex()]
oldlang = self.app.prefs.language
if oldlang not in langs: