mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Prevent malformed translation issue
This commit is contained in:
parent
a4a9e8562d
commit
3d589b59d7
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class Translator(object):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return _load_key(self.locale)
|
return _load_key(self.locale)
|
||||||
except KeyError:
|
except (KeyError, IndexError):
|
||||||
if self.default_locale != self.locale:
|
if self.default_locale != self.locale:
|
||||||
logger.info("untranslated key '%s' for locale '%s'",
|
logger.info("untranslated key '%s' for locale '%s'",
|
||||||
key, self.locale)
|
key, self.locale)
|
||||||
|
|
Loading…
Add table
Reference in a new issue