diff options
author | Matt Wilson <msw@redhat.com> | 2002-02-02 20:28:14 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-02-02 20:28:14 +0000 |
commit | 9a18a5940c3423584fbfb67709b13f9958148e76 (patch) | |
tree | 890be9bde1746d6566db592704f60c48a015736c /iw/language_gui.py | |
parent | 59a39e1c6880bebf95e71ba726abece5777cbfe1 (diff) | |
download | anaconda-9a18a5940c3423584fbfb67709b13f9958148e76.tar.gz anaconda-9a18a5940c3423584fbfb67709b13f9958148e76.tar.xz anaconda-9a18a5940c3423584fbfb67709b13f9958148e76.zip |
display language choices in the native script
Diffstat (limited to 'iw/language_gui.py')
-rw-r--r-- | iw/language_gui.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/iw/language_gui.py b/iw/language_gui.py index 5cf8f85f7..25eb7130e 100644 --- a/iw/language_gui.py +++ b/iw/language_gui.py @@ -46,6 +46,17 @@ 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 @@ -71,7 +82,8 @@ class LanguageWindow (InstallWindow): for locale in instLang.available(): iter = self.listStore.append() - self.listStore.set_value(iter, 0, _(locale)) + self.listStore.set_value(iter, 0, "%s%s" % (_(locale), + self.native(locale))) self.listStore.set_value(iter, 1, locale) self.listStore.set_sort_column_id(0, gtk.SORT_ASCENDING) |