mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
[localecfg] Simplify handling of en_US
- By adding en_US to the set of locales-to-enable, we can drop the special-case code for it.
This commit is contained in:
parent
efc977f7b4
commit
413ee81ead
1 changed files with 1 additions and 5 deletions
|
@ -68,14 +68,10 @@ def run():
|
|||
|
||||
# we want unique values, so locale_values should have 1 or 2 items
|
||||
locale_values = set(locale_conf.values())
|
||||
locale_values.add(en_us_locale) # Always enable en_US as well
|
||||
|
||||
with open(target_locale_gen, "w") as gen:
|
||||
for line in text:
|
||||
# always enable en_US
|
||||
if line.startswith("#" + en_us_locale):
|
||||
# uncomment line
|
||||
line = line[1:].lstrip()
|
||||
|
||||
for locale_value in locale_values:
|
||||
if line.startswith("#" + locale_value):
|
||||
# uncomment line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue