Use dict for string interpollation

review215001
issue2193
This commit is contained in:
Nicolas Évrard committed 2012-03-04 16:04:37 +01:00
1 parent 9d2cc31762
commit 88ba73608a
1 file changed
+3 -2
+3 -2
View File
@@ -361,6 +361,7 @@ class WinImport(object):
for key, val in res[1].items():
buf += ('\t%s: %s\n' % (str(key), str(val)))
common.error(_('Importation Error!'),
_('Error trying to import this record:\n' \
'%s\nError Message:\n%s\n\n%s') % (buf, res[2], res[3]))
_('Error importing record %(record)s\n'
'%(error_title)s\n\n%(traceback)s') %
{'record': buf, 'error_title': res[2], 'traceback': res[3]})
return True