Set the locale path for sugar-toolkit #55
This commit is contained in:
parent
ace5e73d3d
commit
474b2c3476
@ -25,6 +25,7 @@ import dbus
|
|||||||
import dbus.service
|
import dbus.service
|
||||||
import dbus.glib
|
import dbus.glib
|
||||||
|
|
||||||
|
import sugar
|
||||||
from sugar.activity import activityhandle
|
from sugar.activity import activityhandle
|
||||||
from sugar.bundle.activitybundle import ActivityBundle
|
from sugar.bundle.activitybundle import ActivityBundle
|
||||||
from sugar import logger
|
from sugar import logger
|
||||||
@ -94,6 +95,7 @@ def main():
|
|||||||
locale_path = os.environ['SUGAR_LOCALEDIR']
|
locale_path = os.environ['SUGAR_LOCALEDIR']
|
||||||
|
|
||||||
gettext.bindtextdomain(bundle.get_bundle_id(), locale_path)
|
gettext.bindtextdomain(bundle.get_bundle_id(), locale_path)
|
||||||
|
gettext.bindtextdomain('sugar-toolkit', sugar.locale_path)
|
||||||
gettext.textdomain(bundle.get_bundle_id())
|
gettext.textdomain(bundle.get_bundle_id())
|
||||||
|
|
||||||
splitted_module = args[0].rsplit('.', 1)
|
splitted_module = args[0].rsplit('.', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user