From 474b2c34766614580899a21788faad6d0cad3ef1 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 5 Feb 2009 18:47:08 +0100 Subject: [PATCH] Set the locale path for sugar-toolkit #55 --- src/sugar/activity/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sugar/activity/main.py b/src/sugar/activity/main.py index 0295bf99..721595cb 100644 --- a/src/sugar/activity/main.py +++ b/src/sugar/activity/main.py @@ -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)