bundles/basic: support creating additional locales
This commit is contained in:
parent
d344664fa1
commit
614bdf9dec
5 changed files with 11 additions and 7 deletions
|
@ -1 +1 @@
|
||||||
LANG=${node.metadata['locale']}
|
LANG=en_US.UTF-8
|
||||||
|
|
|
@ -1 +1,5 @@
|
||||||
${node.metadata['locale']} ${node.metadata['locale'].split('.')[-1]}
|
en_US.UTF-8 UTF-8
|
||||||
|
|
||||||
|
% for locale in sorted(node.metadata.get('locales', set())):
|
||||||
|
${locale} ${locale.split('.')[-1]}
|
||||||
|
% endfor
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
files = {
|
files = {
|
||||||
'/etc/default/locale': {
|
'/etc/default/locale': {
|
||||||
'content_type': 'mako',
|
'needs': {
|
||||||
'triggers': {
|
|
||||||
'action:locale-gen',
|
'action:locale-gen',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
defaults = {
|
|
||||||
'locale': 'en_US.UTF-8',
|
|
||||||
}
|
|
|
@ -108,6 +108,10 @@ nodes['htz.ex42-1048908'] = {
|
||||||
'part.of.the.trans-agenda.eu': set(),
|
'part.of.the.trans-agenda.eu': set(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'locales': {
|
||||||
|
# because scripts need to generate german date outputs
|
||||||
|
'de_DE.UTF-8',
|
||||||
|
},
|
||||||
'matrix-synapse': {
|
'matrix-synapse': {
|
||||||
'server_name': 'franzi.business',
|
'server_name': 'franzi.business',
|
||||||
'baseurl': 'matrix.franzi.business',
|
'baseurl': 'matrix.franzi.business',
|
||||||
|
|
Loading…
Reference in a new issue