1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

De-message-ified all messages from Cocoa's message.strings files.

This commit is contained in:
Virgil Dupras
2011-11-04 13:10:11 -04:00
parent 6b5d1e9894
commit 8aa5826080
33 changed files with 306 additions and 391 deletions

View File

@@ -138,7 +138,7 @@ class DupeGuru(QObject):
if not dupes:
return
title = tr("Add to Ignore List")
msg = tr("IgnoreConfirmMsg").format(len(dupes))
msg = tr("All selected %d matches are going to be ignored in all subsequent scans. Continue?") % len(dupes)
if self.confirm(title, msg):
self.model.add_selected_to_ignore_list(self)
@@ -157,7 +157,7 @@ class DupeGuru(QObject):
if not dupes:
return
title = tr("Remove duplicates")
msg = tr("FileRemovalConfirmMsg").format(len(dupes))
msg = tr("You are about to remove %d files from results. Continue?") % len(dupes)
if self.confirm(title, msg):
self.model.remove_selected(self)
@@ -176,7 +176,7 @@ class DupeGuru(QObject):
if cmd:
self.model.invoke_command(cmd)
else:
msg = tr("NoCustomCommandMsg")
msg = tr("You have no custom command set up. Set it up in your preferences.")
QMessageBox.warning(self.resultWindow, tr("Custom Command"), msg)
def show_details(self):
@@ -212,7 +212,7 @@ class DupeGuru(QObject):
elif jobid == JobType.Scan:
if not self.model.results.groups:
title = tr("Scan complete")
msg = tr("NoDuplicateFoundMsg")
msg = tr("No duplicates found.")
QMessageBox.information(self.resultWindow, title, msg)
else:
self.showResultsWindow()
@@ -264,7 +264,7 @@ class DupeGuru(QObject):
args = (j, ) + tuple(args)
self._progress.run(jobid, title, func, args=args)
except job.JobInProgressError:
msg = tr("TaskHangingMsg")
msg = tr("A previous action is still hanging in there. You can't start a new one yet. Wait a few seconds, then try again.")
QMessageBox.information(self.resultWindow, 'Action in progress', msg)
def get_default(self, key):

View File

@@ -173,7 +173,7 @@ class DirectoriesDialog(QMainWindow):
event.accept()
if self.app.model.results.is_modified:
title = tr("Unsaved results")
msg = tr("ReallyWantToQuitMsg")
msg = tr("You have unsaved results, do you really want to quit?")
if not self.app.confirm(title, msg):
event.ignore()
if event.isAccepted():
@@ -181,7 +181,7 @@ class DirectoriesDialog(QMainWindow):
#--- Events
def addFolderTriggered(self):
title = tr("SelectFolderToAddMsg")
title = tr("Select a folder to add to the scanning list")
flags = QFileDialog.ShowDirsOnly
dirpath = str(QFileDialog.getExistingDirectory(self, title, self.lastAddedFolder, flags))
if not dirpath:
@@ -198,7 +198,7 @@ class DirectoriesDialog(QMainWindow):
self.recentFolders.insertItem(folder)
def loadResultsTriggered(self):
title = tr("SelectResultToLoadMsg")
title = tr("Select a results file to load")
files = ';;'.join([tr("dupeGuru Results (*.dupeguru)"), tr("All Files (*.*)")])
destination = QFileDialog.getOpenFileName(self, title, '', files)
if destination:
@@ -218,7 +218,7 @@ class DirectoriesDialog(QMainWindow):
def scanButtonClicked(self):
if self.app.model.results.is_modified:
title = tr("Start a new scan")
msg = tr("ReallyWantToContinueMsg")
msg = tr("You have unsaved results, do you really want to continue?")
if not self.app.confirm(title, msg):
return
self.app.model.start_scanning()

View File

@@ -246,7 +246,7 @@ class ResultWindow(QMainWindow):
if not count:
QMessageBox.information(self, title, tr("NothingToClearMsg"))
return
msg = tr("ClearIgnoreListConfirmMsg").format(count)
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"))
@@ -259,7 +259,7 @@ class ResultWindow(QMainWindow):
if not count:
return
title = tr("Delete duplicates")
msg = tr("SendToTrashConfirmMsg").format(count)
msg = tr("You are about to send %d files to Trash. Continue?") % count
if self.app.confirm(title, msg):
self.app.model.delete_marked()
@@ -284,7 +284,7 @@ class ResultWindow(QMainWindow):
if not count:
return
title = tr("Delete and hardlink duplicates")
msg = tr("HardlinkConfirmMsg").format(count)
msg = tr("You are about to send %d files to Trash (and hardlink them afterwards). Continue?") % count
if self.app.confirm(title, msg):
self.app.model.delete_marked(replace_with_hardlinks=True)
@@ -320,7 +320,7 @@ class ResultWindow(QMainWindow):
if not count:
return
title = tr("Remove duplicates")
msg = tr("FileRemovalConfirmMsg").format(count)
msg = tr("You are about to remove %d files from results. Continue?") % count
if self.app.confirm(title, msg):
self.app.model.remove_marked()
@@ -340,7 +340,7 @@ class ResultWindow(QMainWindow):
self.app.model.reveal_selected()
def saveResultsTriggered(self):
title = tr("SelectResultToSaveMsg")
title = tr("Select a file to save your results to")
files = tr("dupeGuru Results (*.dupeguru)")
destination = QFileDialog.getSaveFileName(self, title, '', files)
if destination:

View File

@@ -23,7 +23,7 @@ class ResultWindow(ResultWindowBase):
def clearPictureCacheTriggered(self):
title = tr("Clear Picture Cache")
msg = tr("ClearPictureCacheConfirmMsg")
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"))