mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-27 10:03:59 +00:00
Use ungettext_countries() for translating country names.
This commit is contained in:
committed by
Wieland Hoffmann
parent
1165b03543
commit
ce7c32025d
@@ -113,7 +113,10 @@ class ReleasesOptionsPage(OptionsPage):
|
||||
list1.takeItem(list1.row(item))
|
||||
|
||||
def _load_list_items(self, setting, source, list1, list2):
|
||||
source_list = [(c[0], _(c[1])) for c in source.items()]
|
||||
if setting == "preferred_release_countries":
|
||||
source_list = [(c[0], ugettext_countries(c[1])) for c in source.items()]
|
||||
else:
|
||||
source_list = [(c[0], _(c[1])) for c in source.items()]
|
||||
source_list.sort(key=itemgetter(1), cmp=strcoll)
|
||||
saved_data = config.setting[setting].split(" ")
|
||||
move = []
|
||||
|
||||
Reference in New Issue
Block a user