Commit d8924441 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[BUGFIX] Add EN_US always as locale, Also change to the requested system language

parent e51d87ed
default['ubuntu_base']['locales'] = %w(en_US.UTF-8 en_GB.utf8 de_DE.utf8)
default['ubuntu_base']['locales'] = %w(en_US.utf8 en_GB.utf8 de_DE.utf8)
default['ubuntu_base']['timezone'] = 'Europe/Berlin'
default['locales']['locale_file'] = '/etc/locale.gen'
default['locales']['default'] = 'en_US.utf8'
default['ubuntu_base']['php_version'] = '7.3'
......@@ -144,11 +144,14 @@ end
execute "rm /etc/locale.gen"
execute "dpkg-reconfigure --frontend noninteractive locales"
execute "echo \"en_US.UTF-8 UTF-8\" | tee -a /etc/locale.gen"
node['ubuntu_base']['locales'].each do |locale|
execute "echo \"#{locale} UTF-8\" | tee -a /etc/locale.gen"
end
execute "locale-gen"
execute 'update-locale LANG=' + default['locales']['default']
################
### Add Logo ###
################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment