mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Return utf-8 encoded strings in Translator
This commit is contained in:
parent
a442e61e06
commit
95d2e0c54f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue