1685: Tools: some strings into print statement were untranslated

This commit is contained in:
Jérôme Rapinat 2014-10-08 11:43:11 +02:00
parent d3e75650b4
commit 612a72a455
2 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ class RebuildRefMap(tool.Tool, UpdateCallback):
uistate.push_message(dbstate, _("Rebuilding reference maps...")) uistate.push_message(dbstate, _("Rebuilding reference maps..."))
else: else:
self.callback = None self.callback = None
print("Rebuilding reference maps...") print(_("Rebuilding reference maps..."))
UpdateCallback.__init__(self, self.callback) UpdateCallback.__init__(self, self.callback)
self.set_total(6) self.set_total(6)
@ -94,7 +94,7 @@ class RebuildRefMap(tool.Tool, UpdateCallback):
_('All reference maps have been rebuilt.'), _('All reference maps have been rebuilt.'),
parent=uistate.window) parent=uistate.window)
else: else:
print("All reference maps have been rebuilt.") print(_("All reference maps have been rebuilt."))
self.db.enable_signals() self.db.enable_signals()
#------------------------------------------------------------------------ #------------------------------------------------------------------------

View File

@ -69,7 +69,7 @@ class ReorderIds(tool.BatchTool):
if uistate: if uistate:
self.progress = ProgressMeter(_('Reordering Gramps IDs'),'') self.progress = ProgressMeter(_('Reordering Gramps IDs'),'')
else: else:
print("Reordering Gramps IDs...") print(_("Reordering Gramps IDs..."))
with DbTxn(_("Reorder Gramps IDs"), db, batch=True) as self.trans: with DbTxn(_("Reorder Gramps IDs"), db, batch=True) as self.trans:
db.disable_signals() db.disable_signals()
@ -169,7 +169,7 @@ class ReorderIds(tool.BatchTool):
if uistate: if uistate:
self.progress.close() self.progress.close()
else: else:
print("Done.") print(_("Done."))
db.enable_signals() db.enable_signals()
db.request_rebuild() db.request_rebuild()