mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
Write lc locale setting from GlobalStorage.
This commit is contained in:
parent
6049267cf6
commit
d2288d0961
1 changed files with 4 additions and 3 deletions
|
@ -27,8 +27,9 @@ def run():
|
|||
""" Create locale """
|
||||
|
||||
us = '#en_US'
|
||||
# locale = libcalamares.globalstorage.value("localeSetting")
|
||||
locale = 'en_US.UTF-8'
|
||||
locale = libcalamares.globalstorage.value("localeSetting")
|
||||
if not locale:
|
||||
locale = 'en_US.UTF-8 UTF-8'
|
||||
|
||||
install_path = libcalamares.globalstorage.value("rootMountPoint")
|
||||
|
||||
|
@ -57,6 +58,6 @@ def run():
|
|||
|
||||
locale_conf_path = os.path.join(install_path, "etc/locale.conf")
|
||||
with open(locale_conf_path, "w") as locale_conf:
|
||||
locale_conf.write('LANG=%s\n' % locale)
|
||||
locale_conf.write('LANG=%s\n' % locale.split(' ')[0])
|
||||
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue