Merge pull request #911 from AlmAck/locale_fix
Enable the correct language in the locale.gen list
This commit is contained in:
commit
a0d6365209
@ -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…
Reference in New Issue
Block a user