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:
parent
88a613268d
commit
81d4cdde33
@ -70,7 +70,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: qt/base/app.py:147
|
#: qt/base/app.py:147
|
||||||
msgid "SelectCopyOrMoveDestinationMsg"
|
msgid "SelectCopyOrMoveDestinationMsg"
|
||||||
msgstr ""
|
msgstr "Select a directory to {} marked files to"
|
||||||
|
|
||||||
#: qt/base/app.py:159 qt/base/result_window.py:322
|
#: qt/base/app.py:159 qt/base/result_window.py:322
|
||||||
msgid "Remove duplicates"
|
msgid "Remove duplicates"
|
||||||
@ -91,7 +91,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: qt/base/app.py:210
|
#: qt/base/app.py:210
|
||||||
msgid "OperationSuccessMsg"
|
msgid "OperationSuccessMsg"
|
||||||
msgstr ""
|
msgstr "All files were processed successfully."
|
||||||
|
|
||||||
#: qt/base/app.py:211
|
#: qt/base/app.py:211
|
||||||
msgid "Operation Complete"
|
msgid "Operation Complete"
|
||||||
@ -165,7 +165,7 @@ msgstr "Nahrát nedávné výsledky"
|
|||||||
|
|
||||||
#: qt/base/directories_dialog.py:106
|
#: qt/base/directories_dialog.py:106
|
||||||
msgid "SelectFolderToScanMsg"
|
msgid "SelectFolderToScanMsg"
|
||||||
msgstr ""
|
msgstr "Select folders to scan and press \"Scan\"."
|
||||||
|
|
||||||
#: qt/base/directories_dialog.py:135
|
#: qt/base/directories_dialog.py:135
|
||||||
#: cocoa/base/en.lproj/DirectoryPanel.strings:0
|
#: 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
|
#: qt/base/extra_fairware_reminder.py:41
|
||||||
msgid "ExtraFairwarePromptMsg"
|
msgid "ExtraFairwarePromptMsg"
|
||||||
msgstr ""
|
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
|
#: qt/base/extra_fairware_reminder.py:45
|
||||||
msgid "ExtraFairwareReasonMsg"
|
msgid "ExtraFairwareReasonMsg"
|
||||||
msgstr ""
|
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
|
#: qt/base/extra_fairware_reminder.py:56
|
||||||
#: cocoa/base/en.lproj/ExtraFairwareReminder.strings:0
|
#: 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
|
#: qt/base/preferences_dialog.py:185
|
||||||
msgid "NeedsToRestartToApplyLangMsg"
|
msgid "NeedsToRestartToApplyLangMsg"
|
||||||
msgstr ""
|
msgstr "dupeGuru has to restart for language changes to take effect."
|
||||||
|
|
||||||
#: qt/base/prioritize_dialog.py:71
|
#: qt/base/prioritize_dialog.py:71
|
||||||
#: cocoa/base/en.lproj/PrioritizeDialog.strings:0
|
#: cocoa/base/en.lproj/PrioritizeDialog.strings:0
|
||||||
@ -350,6 +360,9 @@ msgstr "Problémy!"
|
|||||||
#: qt/base/problem_dialog.py:38
|
#: qt/base/problem_dialog.py:38
|
||||||
msgid "ProblemsDuringProcessingMsg"
|
msgid "ProblemsDuringProcessingMsg"
|
||||||
msgstr ""
|
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
|
#: qt/base/problem_dialog.py:52 cocoa/base/en.lproj/ProblemDialog.strings:0
|
||||||
msgid "Reveal Selected"
|
msgid "Reveal Selected"
|
||||||
@ -512,10 +525,11 @@ msgstr ""
|
|||||||
#: qt/base/result_window.py:231
|
#: qt/base/result_window.py:231
|
||||||
msgid "TypeFilterMsg"
|
msgid "TypeFilterMsg"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Type the filter you want to apply on your results. See help for details."
|
||||||
|
|
||||||
#: qt/base/result_window.py:247
|
#: qt/base/result_window.py:247
|
||||||
msgid "NothingToClearMsg"
|
msgid "NothingToClearMsg"
|
||||||
msgstr ""
|
msgstr "Nothing to clear."
|
||||||
|
|
||||||
#: qt/base/result_window.py:249
|
#: qt/base/result_window.py:249
|
||||||
msgid "ClearIgnoreListConfirmMsg"
|
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
|
#: qt/base/result_window.py:252
|
||||||
msgid "IgnoreListClearedMsg"
|
msgid "IgnoreListClearedMsg"
|
||||||
msgstr ""
|
msgstr "Ignore list cleared."
|
||||||
|
|
||||||
#: qt/base/result_window.py:261
|
#: qt/base/result_window.py:261
|
||||||
msgid "Delete duplicates"
|
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
|
#: qt/pe/result_window.py:29
|
||||||
msgid "PictureCacheClearedMsg"
|
msgid "PictureCacheClearedMsg"
|
||||||
msgstr ""
|
msgstr "Picture cache cleared."
|
||||||
|
|
||||||
#: qt/se/preferences_dialog.py:41 cocoa/se/en.lproj/Preferences.strings:0
|
#: qt/se/preferences_dialog.py:41 cocoa/se/en.lproj/Preferences.strings:0
|
||||||
msgid "Folders"
|
msgid "Folders"
|
||||||
|
@ -16,6 +16,15 @@ from qtlib.util import horizontalWrap
|
|||||||
|
|
||||||
tr = trget('ui')
|
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):
|
class PreferencesDialogBase(QDialog):
|
||||||
def __init__(self, parent, app):
|
def __init__(self, parent, app):
|
||||||
flags = Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint
|
flags = Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint
|
||||||
@ -88,10 +97,8 @@ class PreferencesDialogBase(QDialog):
|
|||||||
self.widgetsVLayout.addLayout(horizontalWrap([self.fontSizeLabel, self.fontSizeSpinBox, None]))
|
self.widgetsVLayout.addLayout(horizontalWrap([self.fontSizeLabel, self.fontSizeSpinBox, None]))
|
||||||
self.languageLabel = QLabel(tr("Language:"), self)
|
self.languageLabel = QLabel(tr("Language:"), self)
|
||||||
self.languageComboBox = QComboBox(self)
|
self.languageComboBox = QComboBox(self)
|
||||||
self.languageComboBox.addItem(tr("English"))
|
for lang in SUPPORTED_LANGUAGES:
|
||||||
self.languageComboBox.addItem(tr("French"))
|
self.languageComboBox.addItem(LANGNAMES[lang])
|
||||||
self.languageComboBox.addItem(tr("German"))
|
|
||||||
self.languageComboBox.addItem(tr("Chinese (Simplified)"))
|
|
||||||
self.widgetsVLayout.addLayout(horizontalWrap([self.languageLabel, self.languageComboBox, None]))
|
self.widgetsVLayout.addLayout(horizontalWrap([self.languageLabel, self.languageComboBox, None]))
|
||||||
self.copyMoveLabel = QLabel(self)
|
self.copyMoveLabel = QLabel(self)
|
||||||
self.copyMoveLabel.setText(tr("Copy and Move:"))
|
self.copyMoveLabel.setText(tr("Copy and Move:"))
|
||||||
@ -156,11 +163,10 @@ class PreferencesDialogBase(QDialog):
|
|||||||
self.copyMoveDestinationComboBox.setCurrentIndex(prefs.destination_type)
|
self.copyMoveDestinationComboBox.setCurrentIndex(prefs.destination_type)
|
||||||
self.customCommandEdit.setText(prefs.custom_command)
|
self.customCommandEdit.setText(prefs.custom_command)
|
||||||
self.fontSizeSpinBox.setValue(prefs.tableFontSize)
|
self.fontSizeSpinBox.setValue(prefs.tableFontSize)
|
||||||
langindex = {
|
try:
|
||||||
'fr': 1,
|
langindex = SUPPORTED_LANGUAGES.index(self.app.prefs.language)
|
||||||
'de': 2,
|
except ValueError:
|
||||||
'zh_CN': 3
|
langindex = 0
|
||||||
}.get(self.app.prefs.language, 0)
|
|
||||||
self.languageComboBox.setCurrentIndex(langindex)
|
self.languageComboBox.setCurrentIndex(langindex)
|
||||||
self._load(prefs, setchecked)
|
self._load(prefs, setchecked)
|
||||||
|
|
||||||
@ -176,10 +182,9 @@ class PreferencesDialogBase(QDialog):
|
|||||||
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())
|
||||||
prefs.tableFontSize = self.fontSizeSpinBox.value()
|
prefs.tableFontSize = self.fontSizeSpinBox.value()
|
||||||
langs = ['en', 'fr', 'de', 'zh_CN']
|
lang = SUPPORTED_LANGUAGES[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 SUPPORTED_LANGUAGES:
|
||||||
oldlang = 'en'
|
oldlang = 'en'
|
||||||
if lang != oldlang:
|
if lang != oldlang:
|
||||||
QMessageBox.information(self, "", tr("NeedsToRestartToApplyLangMsg"))
|
QMessageBox.information(self, "", tr("NeedsToRestartToApplyLangMsg"))
|
||||||
|
Loading…
Reference in New Issue
Block a user