mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] rename variable
This commit is contained in:
parent
e2ff1dca39
commit
7266e7de15
1 changed files with 4 additions and 4 deletions
|
@ -162,10 +162,10 @@ class Moulinette18n(object):
|
|||
"""
|
||||
if namespace not in self._namespaces:
|
||||
# Create new Translator object
|
||||
n = Translator('%s/%s/locales' % (LIB_DIR, namespace),
|
||||
translator = Translator('%s/%s/locales' % (LIB_DIR, namespace),
|
||||
self.default_locale)
|
||||
n.set_locale(self.locale)
|
||||
self._namespaces[namespace] = n
|
||||
translator.set_locale(self.locale)
|
||||
self._namespaces[namespace] = translator
|
||||
|
||||
# Set current namespace
|
||||
self._current_namespace = namespace
|
||||
|
|
Loading…
Reference in a new issue