diff options
author | Yann Leboulanger <yann@leboulanger.org> | 2017-09-20 12:16:44 +0300 |
---|---|---|
committer | Yann Leboulanger <yann@leboulanger.org> | 2017-09-20 12:16:44 +0300 |
commit | 6f2442f6b805fedbad2e0a80071c73872c089822 (patch) | |
tree | c961e9b29f917b081dc2340c64d5c24f13b74bad /latex | |
parent | 540a312e14d19ccb1a549a0cf268f5cf2495d866 (diff) |
Improve strings for translation
Diffstat (limited to 'latex')
-rw-r--r-- | latex/latex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/latex/latex.py b/latex/latex.py index 0034e38..dcf2aae 100644 --- a/latex/latex.py +++ b/latex/latex.py @@ -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') |