Use named_arguments for translators (patch by MathieuMD)

svn: r19358
This commit is contained in:
Jérôme Rapinat
2012-04-19 13:44:56 +00:00
parent f7178ecca7
commit 0145b5ea22
7 changed files with 28 additions and 15 deletions

View File

@@ -75,7 +75,9 @@ def _errordialog(title, errormessage):
"""
Show the error. A title for the error and an errormessage
"""
print _('ERROR: %s \n %s') % (title, errormessage)
print _('ERROR: %(title)s \n %(message)s') % {
'title': title,
'message': errormessage}
sys.exit()
#-------------------------------------------------------------------------