Skip to content
Snippets Groups Projects
Commit 01607d87 authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Write more LC variables in localecfg.

parent 41ee4096
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
# #
# Copyright 2014, Anke Boersma <demm@kaosx.us> # Copyright 2014, Anke Boersma <demm@kaosx.us>
# Copyright 2015, Philip Müller <philm@manjaro.org> # Copyright 2015, Philip Müller <philm@manjaro.org>
# Copyright 2016, Teo Mrnjavac <teo@kde.org>
# #
# Calamares is free software: you can redistribute it and/or modify # Calamares is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -68,6 +69,15 @@ def run(): ...@@ -68,6 +69,15 @@ def run():
with open(locale_conf_path, "w") as locale_conf: with open(locale_conf_path, "w") as locale_conf:
locale_split = locale.split(' ')[0] locale_split = locale.split(' ')[0]
locale_conf.write("LANG={!s}\n".format(locale_split)) locale_conf.write("LANG={!s}\n".format(locale_split))
locale_conf.write("LC_NUMERIC={!s}\n".format(locale_split))
locale_conf.write("LC_TIME={!s}\n".format(locale_split))
locale_conf.write("LC_MONETARY={!s}\n".format(locale_split))
locale_conf.write("LC_PAPER={!s}\n".format(locale_split))
locale_conf.write("LC_NAME={!s}\n".format(locale_split))
locale_conf.write("LC_ADDRESS={!s}\n".format(locale_split))
locale_conf.write("LC_TELEPHONE={!s}\n".format(locale_split))
locale_conf.write("LC_MEASUREMENT={!s}\n".format(locale_split))
locale_conf.write("LC_IDENTIFICATION={!s}\n".format(locale_split))
# write /etc/default/locale if /etc/default exists and is a dir # write /etc/default/locale if /etc/default exists and is a dir
etc_default_path = os.path.join(install_path, "etc/default") etc_default_path = os.path.join(install_path, "etc/default")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment