Browse Source

optionsframe.py: Fix error in language combobox

Fix error in commit 45009953d1 and
return the language name ('English') instead of the language code
('en_US') when the given 'locale_name' value is not available in
the LOCALE_NAMES dict.
master
MrS0m30n3 5 years ago
parent
commit
1242a28950
  1. 2
      youtube_dl_gui/optionsframe.py

2
youtube_dl_gui/optionsframe.py

@ -429,7 +429,7 @@ class GeneralTab(TabPanel):
self.sudo_textctrl.Enable(self.shutdown_checkbox.GetValue())
def load_options(self):
self.language_combobox.SetValue(self.LOCALE_NAMES.get(self.opt_manager.options["locale_name"], "en_US"))
self.language_combobox.SetValue(self.LOCALE_NAMES.get(self.opt_manager.options["locale_name"], "English"))
self.filename_format_combobox.SetValue(OUTPUT_FORMATS[self.opt_manager.options["output_format"]])
self.filename_custom_format.SetValue(self.opt_manager.options["output_template"])
self.filename_ascii_checkbox.SetValue(self.opt_manager.options["restrict_filenames"])

Loading…
Cancel
Save