diff options
author | Matt Wilson <msw@redhat.com> | 2002-02-06 17:48:27 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-02-06 17:48:27 +0000 |
commit | 8a93f6a1a7a6f5062e7179840541fba6154b60e8 (patch) | |
tree | 6564d6c1177f86661444213128cfeac78fb1b0f9 /iw | |
parent | f30ead9067dc1a9ded72532055f5e6354981cd5a (diff) | |
download | anaconda-8a93f6a1a7a6f5062e7179840541fba6154b60e8.tar.gz anaconda-8a93f6a1a7a6f5062e7179840541fba6154b60e8.tar.xz anaconda-8a93f6a1a7a6f5062e7179840541fba6154b60e8.zip |
autogenerate unicode language names and read that in at install time
Diffstat (limited to 'iw')
-rw-r--r-- | iw/language_gui.py | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/iw/language_gui.py b/iw/language_gui.py index 25eb7130e..72e896ad0 100644 --- a/iw/language_gui.py +++ b/iw/language_gui.py @@ -23,7 +23,7 @@ class LanguageWindow (InstallWindow): def __init__ (self, ics): InstallWindow.__init__ (self, ics) - + def getNext (self): rc = self.listView.get_selection().get_selected() if rc: @@ -46,17 +46,6 @@ class LanguageWindow (InstallWindow): col = self.listView.get_column(0) self.listView.scroll_to_cell(path, col, gtk.TRUE, 0.5, 0.5) - # return the language writtin in its native script - def native(self, locale): - dict = {'Japanese': u'\u65e5\u672c\u8a9e', - 'Russian': u'\u0420\u0443\u0441\u0441\u043a\u0438\u0439', - 'Korean':u'\ud55c\uad6d\uc5b4'} - - - if dict.has_key(locale): - return ' (%s)' % (dict[locale],) - return '' - # LanguageWindow tag="lang" def getScreen (self, intf, instLang): self.running = 0 @@ -82,8 +71,9 @@ class LanguageWindow (InstallWindow): for locale in instLang.available(): iter = self.listStore.append() - self.listStore.set_value(iter, 0, "%s%s" % (_(locale), - self.native(locale))) + self.listStore.set_value(iter, 0, + "%s (%s)" % (_(locale), + instLang.getNativeLangName(locale))) self.listStore.set_value(iter, 1, locale) self.listStore.set_sort_column_id(0, gtk.SORT_ASCENDING) |