--- pyanaconda/ui/gui/spokes/langsupport.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/langsupport.py b/pyanaconda/ui/gui/spokes/langsupport.py index 2dc9727..e45c153 100644 --- a/pyanaconda/ui/gui/spokes/langsupport.py +++ b/pyanaconda/ui/gui/spokes/langsupport.py @@ -115,9 +115,11 @@ class LangsupportSpoke(NormalSpoke): @property def status(self): # TODO: translate - infos = set(self._find_localeinfos_for_code(self.data.lang.lang, self.locale_infos_for_data)[:1]) + infos = self._find_localeinfos_for_code(self.data.lang.lang, self.locale_infos_for_data)[:1] for code in self.data.lang.addsupport: - infos.update(self._find_localeinfos_for_code(code, self.locale_infos_for_data)) + for info in self._find_localeinfos_for_code(code, self.locale_infos_for_data): + if info not in infos: + infos.append(info) return ", ".join(info.english_name for info in infos)
@property
On Thu, 2013-04-25 at 08:53 +0200, Radek Vykydal wrote:
pyanaconda/ui/gui/spokes/langsupport.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/langsupport.py b/pyanaconda/ui/gui/spokes/langsupport.py index 2dc9727..e45c153 100644 --- a/pyanaconda/ui/gui/spokes/langsupport.py +++ b/pyanaconda/ui/gui/spokes/langsupport.py @@ -115,9 +115,11 @@ class LangsupportSpoke(NormalSpoke): @property def status(self): # TODO: translate
infos = set(self._find_localeinfos_for_code(self.data.lang.lang, self.locale_infos_for_data)[:1])
infos = self._find_localeinfos_for_code(self.data.lang.lang, self.locale_infos_for_data)[:1] for code in self.data.lang.addsupport:
infos.update(self._find_localeinfos_for_code(code, self.locale_infos_for_data))
for info in self._find_localeinfos_for_code(code, self.locale_infos_for_data):if info not in infos:infos.append(info) return ", ".join(info.english_name for info in infos)@property
Looks good to me.
anaconda-patches@lists.fedorahosted.org