diff options
author | Matt Wilson <msw@redhat.com> | 2000-08-15 16:48:58 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-08-15 16:48:58 +0000 |
commit | f6bbd3c96dbdf0649f6a7e9476529df4e87c8bbd (patch) | |
tree | 4262abb9eac83775d65473718157774f43e5a1af /iw/timezone_gui.py | |
parent | c67fd65dbc961483d4b15111221b670fcac0ac25 (diff) | |
download | anaconda-f6bbd3c96dbdf0649f6a7e9476529df4e87c8bbd.tar.gz anaconda-f6bbd3c96dbdf0649f6a7e9476529df4e87c8bbd.tar.xz anaconda-f6bbd3c96dbdf0649f6a7e9476529df4e87c8bbd.zip |
i18n, use getzone method to get the real name of the zone
Diffstat (limited to 'iw/timezone_gui.py')
-rw-r--r-- | iw/timezone_gui.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py index 22783a6d5..384cfead0 100644 --- a/iw/timezone_gui.py +++ b/iw/timezone_gui.py @@ -71,8 +71,12 @@ class TimezoneWindow (InstallWindow): self.old_use_dst = self.daylightCB.get_active () if (self.old_page == 0): - self.todo.setTimezoneInfo (self.list.get_text (self.list.selection[0], 0), - self.systemUTC.get_active ()) + newzone = "America/New_York" + try: + newzone = self.tz.getzone (self.list.get_text (self.list.selection[0], 0)) + except: + pass + self.todo.setTimezoneInfo (newzone, self.systemUTC.get_active ()) else: timezone = self.timeZones[self.ulist.selection[0]][1] if self.daylightCB.get_active (): @@ -126,9 +130,9 @@ class TimezoneWindow (InstallWindow): rc = self.todo.getTimezoneInfo() if rc: (self.default, asUTC, asArc) = rc + self.default = _(self.default) else: self.default = _(iutil.defaultZone ()) - print self.default asUTC = 0 if (string.find (self.default, "UTC") != -1): |