Merge pull request #911 from AlmAck/locale_fix

Enable the correct language in the locale.gen list
This commit is contained in:
Adriaan de Groot 2018-03-06 13:31:25 +01:00 committed by GitHub
commit a0d6365209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()