mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] return the informated string, it's give more information to the user
This commit is contained in:
parent
a26258e418
commit
c3f4f8e58b
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class Translator(object):
|
|||
return self._translations[self.default_locale][key].encode('utf-8').format(*args, **kwargs)
|
||||
except KeyError as e:
|
||||
logger.exception("Failed to format translatable string '%s' with error: %s" % (key, e))
|
||||
return key
|
||||
return self._translations[self.locale][key].encode('utf-8')
|
||||
|
||||
logger.exception("unable to retrieve key '%s' for default locale '%s'",
|
||||
key, self.default_locale)
|
||||
|
|
Loading…
Add table
Reference in a new issue