Set the locale path for sugar-toolkit #55

This commit is contained in:
Tomeu Vizoso 2009-02-05 18:47:08 +01:00
parent ace5e73d3d
commit 474b2c3476

View File

@ -25,6 +25,7 @@ import dbus
import dbus.service
import dbus.glib
import sugar
from sugar.activity import activityhandle
from sugar.bundle.activitybundle import ActivityBundle
from sugar import logger
@ -94,6 +95,7 @@ def main():
locale_path = os.environ['SUGAR_LOCALEDIR']
gettext.bindtextdomain(bundle.get_bundle_id(), locale_path)
gettext.bindtextdomain('sugar-toolkit', sugar.locale_path)
gettext.textdomain(bundle.get_bundle_id())
splitted_module = args[0].rsplit('.', 1)