diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-12 04:53:58 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-12 04:53:58 +0000 |
commit | 744ffe10051e0055ae09413fb72c074979fb0880 (patch) | |
tree | 64d3775e7767f3128d17df63cc2906ad224260ef /gnome-map | |
parent | 8922e79db32f7642c8c07dae914d69f137e6022d (diff) | |
download | anaconda-744ffe10051e0055ae09413fb72c074979fb0880.tar.gz anaconda-744ffe10051e0055ae09413fb72c074979fb0880.tar.xz anaconda-744ffe10051e0055ae09413fb72c074979fb0880.zip |
1) since libfdisk isn't setting up the text domain for C programs
anymore, we have to set it in the timezone map module
2) remove the America/New York default and have the text interface fetch
it from the insttimelanguage
Fixes #48723
Diffstat (limited to 'gnome-map')
-rwxr-xr-x | gnome-map/pytimezone | 2 | ||||
-rw-r--r-- | gnome-map/timezonemapmodule.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gnome-map/pytimezone b/gnome-map/pytimezone index 9fb9cd3b0..4e131a529 100755 --- a/gnome-map/pytimezone +++ b/gnome-map/pytimezone @@ -1,9 +1,7 @@ #!/usr/bin/python import sys -sys.path.append ("../isys") from gnome.ui import * -import isys import timezonemap from gtk import * import GdkImlib diff --git a/gnome-map/timezonemapmodule.c b/gnome-map/timezonemapmodule.c index f5619ff37..befd549fb 100644 --- a/gnome-map/timezonemapmodule.c +++ b/gnome-map/timezonemapmodule.c @@ -897,6 +897,10 @@ static tzObject * doNewTZ (PyObject * s, PyObject * args) { void inittimezonemap (void) { init_pygtk(); + setlocale (LC_MESSAGES, ""); + setlocale (LC_CTYPE, ""); + bindtextdomain("anaconda","/usr/share/locale"); + textdomain("anaconda"); Py_InitModule("timezonemap", timezoneMethods); } |