mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Load namespace translations when cache is generated
This commit is contained in:
parent
d840d11427
commit
c264d2448f
1 changed files with 1 additions and 3 deletions
|
@ -372,13 +372,11 @@ class ActionsMap(object):
|
|||
except IOError:
|
||||
self.use_cache = False
|
||||
actionsmaps = self.generate_cache(namespaces)
|
||||
break
|
||||
else:
|
||||
elif n not in actionsmap:
|
||||
with open('%s/actionsmap/%s.yml' % (pkg.datadir, n)) as f:
|
||||
actionsmaps[n] = ordered_yaml_load(f)
|
||||
|
||||
# Load translations
|
||||
# FIXME: Allow several namespaces in m18n
|
||||
m18n.load_namespace(n)
|
||||
|
||||
# Generate parsers
|
||||
|
|
Loading…
Add table
Reference in a new issue