prefix=@prefix@
exec_prefix=@exec_prefix@
+datarootdir=@datarootdir@
export IBUS_PREFIX=@prefix@
export IBUS_DATAROOTDIR=@datarootdir@
+export IBUS_LOCALEDIR=@localedir@
exec python @prefix@/share/ibus/setup/main.py $@
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
-import locale
import gettext
import os
import signal
def __init__(self):
super(Setup, self).__init__()
- locale.bind_textdomain_codeset("ibus", "UTF-8")
+ localedir = os.getenv("IBUS_LOCALEDIR")
+ gettext.bindtextdomain("ibus", localedir)
+ glade.bindtextdomain("ibus", localedir)
+ gettext.bind_textdomain_codeset("ibus", "UTF-8")
glade.textdomain("ibus")
glade_file = path.join(path.dirname(__file__), "./setup.glade")
self.__xml = glade.XML(glade_file)