[fix] Return utf-8 encoded strings in Translator

This commit is contained in:
Jérôme Lebleu 2014-05-16 18:32:54 +02:00
parent a442e61e06
commit 95d2e0c54f

View file

@ -191,7 +191,7 @@ class Translator(object):
logging.warning("unknown key '%s' for locale '%s'" %
(key, self.default_locale))
return key
return value
return value.encode('utf-8')
def _load_translations(self, locale, overwrite=False):
"""Load translations for a locale