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:
|
except IOError:
|
||||||
self.use_cache = False
|
self.use_cache = False
|
||||||
actionsmaps = self.generate_cache(namespaces)
|
actionsmaps = self.generate_cache(namespaces)
|
||||||
break
|
elif n not in actionsmap:
|
||||||
else:
|
|
||||||
with open('%s/actionsmap/%s.yml' % (pkg.datadir, n)) as f:
|
with open('%s/actionsmap/%s.yml' % (pkg.datadir, n)) as f:
|
||||||
actionsmaps[n] = ordered_yaml_load(f)
|
actionsmaps[n] = ordered_yaml_load(f)
|
||||||
|
|
||||||
# Load translations
|
# Load translations
|
||||||
# FIXME: Allow several namespaces in m18n
|
|
||||||
m18n.load_namespace(n)
|
m18n.load_namespace(n)
|
||||||
|
|
||||||
# Generate parsers
|
# Generate parsers
|
||||||
|
|
Loading…
Add table
Reference in a new issue