Misc: Fix encoding issue with translations using non-ascii characters in @version string.

This commit is contained in:
Valentin Lorentz 2012-05-21 17:21:43 +00:00
parent dea0070ac4
commit 5be287b536

View File

@ -302,7 +302,7 @@ class Misc(callbacks.Plugin):
version = ''.join(version.rsplit(':', 1)) version = ''.join(version.rsplit(':', 1))
# Replace the last '-' by '+': # Replace the last '-' by '+':
version = '+'.join(version.rsplit('-', 1)) version = '+'.join(version.rsplit('-', 1))
versions[branch] = version versions[branch] = version.encode('utf-8')
newest = _('The newest versions available online are %s.') % \ newest = _('The newest versions available online are %s.') % \
', '.join([_('%s (in %s)') % (y,x) ', '.join([_('%s (in %s)') % (y,x)
for x,y in versions.items()]) for x,y in versions.items()])