mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
Merge pull request #911 from AlmAck/locale_fix
Enable the correct language in the locale.gen list
This commit is contained in:
commit
a0d6365209
1 changed files with 2 additions and 2 deletions
|
@ -65,12 +65,12 @@ def run():
|
|||
with open("{!s}/etc/locale.gen".format(install_path), "w") as gen:
|
||||
for line in text:
|
||||
# always enable en_US
|
||||
if en_us_locale in line and line[0] == "#":
|
||||
if line.startswith("#" + en_us_locale):
|
||||
# uncomment line
|
||||
line = line[1:].lstrip()
|
||||
|
||||
for locale_value in locale_values:
|
||||
if locale_value in line and line[0] == "#":
|
||||
if line.startswith("#" + locale_value):
|
||||
# uncomment line
|
||||
line = line[1:].lstrip()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue