Merge pull request #911 from AlmAck/locale_fix

Enable the correct language in the locale.gen list
main
Adriaan de Groot 7 years ago committed by GitHub
commit a0d6365209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save