1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-10-31 22:05:58 +00:00

Added Czech support on the Qt side.

This commit is contained in:
Virgil Dupras 2011-11-03 10:38:31 -04:00
parent 88a613268d
commit 81d4cdde33
2 changed files with 38 additions and 19 deletions

View File

@ -70,7 +70,7 @@ msgstr ""
#: qt/base/app.py:147
msgid "SelectCopyOrMoveDestinationMsg"
msgstr ""
msgstr "Select a directory to {} marked files to"
#: qt/base/app.py:159 qt/base/result_window.py:322
msgid "Remove duplicates"
@ -91,7 +91,7 @@ msgstr ""
#: qt/base/app.py:210
msgid "OperationSuccessMsg"
msgstr ""
msgstr "All files were processed successfully."
#: qt/base/app.py:211
msgid "Operation Complete"
@ -165,7 +165,7 @@ msgstr "Nahrát nedávné výsledky"
#: qt/base/directories_dialog.py:106
msgid "SelectFolderToScanMsg"
msgstr ""
msgstr "Select folders to scan and press \"Scan\"."
#: qt/base/directories_dialog.py:135
#: cocoa/base/en.lproj/DirectoryPanel.strings:0
@ -238,10 +238,20 @@ msgstr "Je mi líto, musím na tom trvat"
#: qt/base/extra_fairware_reminder.py:41
msgid "ExtraFairwarePromptMsg"
msgstr ""
"It seems that you found a lot of duplicates. Nice! I must insist, however, that contributions are expected when there are unpaid hours on the project.\n"
"\n"
"You might think \"but I'm only going to use this once, I don't have to contribute\". The problem is that most people use dupeGuru only once in a while. If everyone thinks like that, dupeGuru development cannot be funded. It's because of this tendency inherent to dupeGuru's nature that I have to insist here.\n"
"\n"
"If you can't afford to contribute, you can ignore this reminder or send me an e-mail at hsoft@hardcoded.net so I can give you a key to remove this reminder."
#: qt/base/extra_fairware_reminder.py:45
msgid "ExtraFairwareReasonMsg"
msgstr ""
"This reminder showed up because:\n"
"\n"
"1. You are processing more than 100 duplicates\n"
"2. You have not yet contributed to dupeGuru\n"
"3. There are unpaid hours in the project"
#: qt/base/extra_fairware_reminder.py:56
#: cocoa/base/en.lproj/ExtraFairwareReminder.strings:0
@ -325,7 +335,7 @@ msgstr "Uživatelský příkaz (argumenty: %d pro duplicity, %r pro odkazy):"
#: qt/base/preferences_dialog.py:185
msgid "NeedsToRestartToApplyLangMsg"
msgstr ""
msgstr "dupeGuru has to restart for language changes to take effect."
#: qt/base/prioritize_dialog.py:71
#: cocoa/base/en.lproj/PrioritizeDialog.strings:0
@ -350,6 +360,9 @@ msgstr "Problémy!"
#: qt/base/problem_dialog.py:38
msgid "ProblemsDuringProcessingMsg"
msgstr ""
"There were problems processing some (or all) of the files. The cause of "
"these problems are described in the table below. Those files were not "
"removed from your results."
#: qt/base/problem_dialog.py:52 cocoa/base/en.lproj/ProblemDialog.strings:0
msgid "Reveal Selected"
@ -512,10 +525,11 @@ msgstr ""
#: qt/base/result_window.py:231
msgid "TypeFilterMsg"
msgstr ""
"Type the filter you want to apply on your results. See help for details."
#: qt/base/result_window.py:247
msgid "NothingToClearMsg"
msgstr ""
msgstr "Nothing to clear."
#: qt/base/result_window.py:249
msgid "ClearIgnoreListConfirmMsg"
@ -523,7 +537,7 @@ msgstr "Opravdu chcete odstranit všech %d položek ze seznamu výjimek?"
#: qt/base/result_window.py:252
msgid "IgnoreListClearedMsg"
msgstr ""
msgstr "Ignore list cleared."
#: qt/base/result_window.py:261
msgid "Delete duplicates"
@ -667,7 +681,7 @@ msgstr "Opravdu chcete odstranit veškeré uložené analýzy snímků?"
#: qt/pe/result_window.py:29
msgid "PictureCacheClearedMsg"
msgstr ""
msgstr "Picture cache cleared."
#: qt/se/preferences_dialog.py:41 cocoa/se/en.lproj/Preferences.strings:0
msgid "Folders"

View File

@ -16,6 +16,15 @@ from qtlib.util import horizontalWrap
tr = trget('ui')
SUPPORTED_LANGUAGES = ['en', 'fr', 'de', 'zh_CN', 'cs']
LANGNAMES = {
'en': tr("English"),
'fr': tr("French"),
'de': tr("German"),
'zh_CN': tr("Chinese (Simplified)"),
'cs': tr("Czech"),
}
class PreferencesDialogBase(QDialog):
def __init__(self, parent, app):
flags = Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint
@ -88,10 +97,8 @@ class PreferencesDialogBase(QDialog):
self.widgetsVLayout.addLayout(horizontalWrap([self.fontSizeLabel, self.fontSizeSpinBox, None]))
self.languageLabel = QLabel(tr("Language:"), self)
self.languageComboBox = QComboBox(self)
self.languageComboBox.addItem(tr("English"))
self.languageComboBox.addItem(tr("French"))
self.languageComboBox.addItem(tr("German"))
self.languageComboBox.addItem(tr("Chinese (Simplified)"))
for lang in SUPPORTED_LANGUAGES:
self.languageComboBox.addItem(LANGNAMES[lang])
self.widgetsVLayout.addLayout(horizontalWrap([self.languageLabel, self.languageComboBox, None]))
self.copyMoveLabel = QLabel(self)
self.copyMoveLabel.setText(tr("Copy and Move:"))
@ -156,11 +163,10 @@ class PreferencesDialogBase(QDialog):
self.copyMoveDestinationComboBox.setCurrentIndex(prefs.destination_type)
self.customCommandEdit.setText(prefs.custom_command)
self.fontSizeSpinBox.setValue(prefs.tableFontSize)
langindex = {
'fr': 1,
'de': 2,
'zh_CN': 3
}.get(self.app.prefs.language, 0)
try:
langindex = SUPPORTED_LANGUAGES.index(self.app.prefs.language)
except ValueError:
langindex = 0
self.languageComboBox.setCurrentIndex(langindex)
self._load(prefs, setchecked)
@ -176,10 +182,9 @@ class PreferencesDialogBase(QDialog):
prefs.destination_type = self.copyMoveDestinationComboBox.currentIndex()
prefs.custom_command = str(self.customCommandEdit.text())
prefs.tableFontSize = self.fontSizeSpinBox.value()
langs = ['en', 'fr', 'de', 'zh_CN']
lang = langs[self.languageComboBox.currentIndex()]
lang = SUPPORTED_LANGUAGES[self.languageComboBox.currentIndex()]
oldlang = self.app.prefs.language
if oldlang not in langs:
if oldlang not in SUPPORTED_LANGUAGES:
oldlang = 'en'
if lang != oldlang:
QMessageBox.information(self, "", tr("NeedsToRestartToApplyLangMsg"))