mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 06:37:17 +00:00
De-message-ified the rest of the project.
This commit is contained in:
@@ -144,7 +144,7 @@ class DupeGuru(QObject):
|
||||
|
||||
def copy_or_move_marked(self, copy):
|
||||
opname = tr("copy") if copy else tr("move")
|
||||
title = tr("SelectCopyOrMoveDestinationMsg").format(opname)
|
||||
title = tr("Select a directory to {} marked files to").format(opname)
|
||||
flags = QFileDialog.ShowDirsOnly
|
||||
destination = str(QFileDialog.getExistingDirectory(self.resultWindow, title, '', flags))
|
||||
if not destination:
|
||||
@@ -207,7 +207,7 @@ class DupeGuru(QObject):
|
||||
if self.model.results.problems:
|
||||
self.problemDialog.show()
|
||||
else:
|
||||
msg = tr("OperationSuccessMsg")
|
||||
msg = tr("All files were processed successfully.")
|
||||
QMessageBox.information(self.resultWindow, tr("Operation Complete"), msg)
|
||||
elif jobid == JobType.Scan:
|
||||
if not self.model.results.groups:
|
||||
|
||||
@@ -103,7 +103,7 @@ class DirectoriesDialog(QMainWindow):
|
||||
self.resize(420, 338)
|
||||
self.centralwidget = QWidget(self)
|
||||
self.verticalLayout = QVBoxLayout(self.centralwidget)
|
||||
self.promptLabel = QLabel(tr("SelectFolderToScanMsg"), self.centralwidget)
|
||||
self.promptLabel = QLabel(tr("Select folders to scan and press \"Scan\"."), self.centralwidget)
|
||||
self.verticalLayout.addWidget(self.promptLabel)
|
||||
self.treeView = QTreeView(self.centralwidget)
|
||||
self.treeView.setItemDelegate(self.directoriesDelegate)
|
||||
|
||||
@@ -38,11 +38,26 @@ class ExtraFairwareReminder(QDialog):
|
||||
self.resize(380, dlg_height)
|
||||
self.verticalLayout = QVBoxLayout(self)
|
||||
self.descLabel = QLabel(self)
|
||||
self.descLabel.setText(tr("ExtraFairwarePromptMsg"))
|
||||
msg = tr("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.")
|
||||
self.descLabel.setText(msg)
|
||||
self.descLabel.setWordWrap(True)
|
||||
self.verticalLayout.addWidget(self.descLabel)
|
||||
self.reasonLabel = QLabel(self)
|
||||
self.reasonLabel.setText(tr("ExtraFairwareReasonMsg"))
|
||||
msg = tr("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")
|
||||
self.reasonLabel.setText(msg)
|
||||
self.reasonLabel.setWordWrap(True)
|
||||
font = QFont()
|
||||
font.setWeight(75)
|
||||
|
||||
@@ -188,7 +188,7 @@ class PreferencesDialogBase(QDialog):
|
||||
if oldlang not in SUPPORTED_LANGUAGES:
|
||||
oldlang = 'en'
|
||||
if lang != oldlang:
|
||||
QMessageBox.information(self, "", tr("NeedsToRestartToApplyLangMsg"))
|
||||
QMessageBox.information(self, "", tr("dupeGuru has to restart for language changes to take effect."))
|
||||
self.app.prefs.language = lang
|
||||
self._save(prefs, ischecked)
|
||||
|
||||
|
||||
@@ -35,7 +35,10 @@ class ProblemDialog(QDialog):
|
||||
self.resize(413, 323)
|
||||
self.verticalLayout = QVBoxLayout(self)
|
||||
self.label = QLabel(self)
|
||||
self.label.setText(tr("ProblemsDuringProcessingMsg"))
|
||||
msg = tr("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.")
|
||||
self.label.setText(msg)
|
||||
self.label.setWordWrap(True)
|
||||
self.verticalLayout.addWidget(self.label)
|
||||
self.tableView = QTableView(self)
|
||||
|
||||
@@ -228,7 +228,7 @@ class ResultWindow(QMainWindow):
|
||||
|
||||
def applyFilterTriggered(self):
|
||||
title = tr("Apply Filter")
|
||||
msg = tr("TypeFilterMsg")
|
||||
msg = tr("Type the filter you want to apply on your results. See help for details.")
|
||||
text = nonone(self._last_filter, '[*]')
|
||||
answer, ok = QInputDialog.getText(self, title, msg, QLineEdit.Normal, text)
|
||||
if not ok:
|
||||
@@ -244,12 +244,12 @@ class ResultWindow(QMainWindow):
|
||||
title = tr("Clear Ignore List")
|
||||
count = len(self.app.model.scanner.ignore_list)
|
||||
if not count:
|
||||
QMessageBox.information(self, title, tr("NothingToClearMsg"))
|
||||
QMessageBox.information(self, title, tr("Nothing to clear."))
|
||||
return
|
||||
msg = tr("Do you really want to remove all %d items from the ignore list?") % count
|
||||
if self.app.confirm(title, msg, QMessageBox.No):
|
||||
self.app.model.scanner.ignore_list.Clear()
|
||||
QMessageBox.information(self, title, tr("IgnoreListClearedMsg"))
|
||||
QMessageBox.information(self, title, tr("Ignore list cleared."))
|
||||
|
||||
def copyTriggered(self):
|
||||
self.app.copy_or_move_marked(True)
|
||||
|
||||
@@ -26,5 +26,5 @@ class ResultWindow(ResultWindowBase):
|
||||
msg = tr("Do you really want to remove all your cached picture analysis?")
|
||||
if self.app.confirm(title, msg, QMessageBox.No):
|
||||
self.app.scanner.clear_picture_cache()
|
||||
QMessageBox.information(self, title, tr("PictureCacheClearedMsg"))
|
||||
QMessageBox.information(self, title, tr("Picture cache cleared."))
|
||||
|
||||
Reference in New Issue
Block a user