diff options
-rw-r--r-- | iutil.py | 4 | ||||
-rw-r--r-- | iw/timezone_gui.py | 2 | ||||
-rw-r--r-- | textw/timezone_text.py | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -309,7 +309,7 @@ esac stdout = None, stderr = None, root = root) -def defaultZone(): +def defaultZone(locale): if os.access("lang-table", os.R_OK): f = open("lang-table", "r") elif os.access("/etc/lang-table", os.R_OK): @@ -323,7 +323,7 @@ def defaultZone(): for line in lines: string.strip(line) l = string.split(line) - if l[4] == os.environ["LANG"]: + if l[4] == locale: return l[6] return "US/Eastern" diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py index 368aff774..a79dfface 100644 --- a/iw/timezone_gui.py +++ b/iw/timezone_gui.py @@ -133,7 +133,7 @@ class TimezoneWindow (InstallWindow): (self.default, asUTC, asArc) = rc self.default = _(self.default) else: - self.default = _(iutil.defaultZone ()) + self.default = _(iutil.defaultZone (self.todo.language.get())) asUTC = 0 if (string.find (self.default, "UTC") != -1): diff --git a/textw/timezone_text.py b/textw/timezone_text.py index 3c8e07e21..0a04c1d79 100644 --- a/textw/timezone_text.py +++ b/textw/timezone_text.py @@ -63,7 +63,7 @@ class TimezoneWindow: if rc: (default, asUtc, asArc) = rc else: - default = iutil.defaultZone() + default = iutil.defaultZone(todo.language.get()) asUtc = 0 bb = ButtonBar(screen, [(_("OK"), "ok"), (_("Back"), "back")]) |