Fix selecting language layout by name
This commit is contained in:
parent
407290b034
commit
6e5ea3aa65
|
|
@ -358,8 +358,7 @@ def select_language(options, show_only_country_codes=True):
|
||||||
# all possible language layouts, and we might want to write
|
# all possible language layouts, and we might want to write
|
||||||
# for instance sv-latin1 (if we know that exists) without having to
|
# for instance sv-latin1 (if we know that exists) without having to
|
||||||
# go through the search step.
|
# go through the search step.
|
||||||
elif selected_language in options:
|
elif selected_language in languages:
|
||||||
selected_language = options[options.index(selected_language)]
|
|
||||||
return selected_language
|
return selected_language
|
||||||
else:
|
else:
|
||||||
raise RequirementError("Selected language does not exist.")
|
raise RequirementError("Selected language does not exist.")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue