Improve strings for translation

This commit is contained in:
Yann Leboulanger
2017-09-20 11:16:44 +02:00
parent 540a312e14
commit 6f2442f6b8
2 changed files with 4 additions and 3 deletions

View File

@@ -161,8 +161,8 @@ class LatexRenderer(Thread):
except Exception:
msg = 'Could not create temporary files for Latex plugin'
log.debug(msg)
self.show_error(_('latex error: %s\n===ORIGINAL CODE====\n%s') % (
msg, self.code[2:len(self.code)-2]))
self.show_error(_('latex error: %(error)s\n===ORIGINAL CODE====\n'
'%(code)s') % {'error': msg, 'code': self.code[2:len(self.code)-2]})
return False
tmpfile = os.path.join(tmpdir, 'gajim_tex')