Skip to content

Commit

Permalink
sort locales before building combo
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Oct 12, 2022
1 parent 29ef4e3 commit e9fcb92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nwg_shell_config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,9 @@ def __init__(self):
self.combo_interface_locale.append("auto", "auto")
self.combo_interface_locale.set_tooltip_text(voc["interface-locale-tooltip"])
locale_dir = os.path.join(dir_name, "langs")
for entry in os.listdir(locale_dir):
entries = os.listdir(locale_dir)
entries.sort()
for entry in entries:
loc = entry.split(".")[0]
self.combo_interface_locale.append(loc, loc)
if shell_data["interface-locale"]:
Expand Down

0 comments on commit e9fcb92

Please sign in to comment.