diff options
author | Daniel Drake <dsd@laptop.org> | 2011-10-29 13:44:07 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2011-10-29 13:45:39 (GMT) |
commit | 5092aa2b1229bb7533177ae9ff51e77d922b109f (patch) | |
tree | 05e315c3fc613341c96ca1ffe30cc9a192e6f6b5 | |
parent | 786fb3cabab0bb2e4afe3d39838a70fc45e771c3 (diff) |
Move i18n setting from sugar-activity into activity class
i18n imports gconf static bindings, can't do it with GConf dynamic
bindings loaded.
-rw-r--r-- | src/sugar3/activity/activity.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py index 5652c21..da6361a 100644 --- a/src/sugar3/activity/activity.py +++ b/src/sugar3/activity/activity.py @@ -73,6 +73,7 @@ from telepathy.constants import CONNECTION_HANDLE_TYPE_ROOM from sugar import util from sugar3.presence import presenceservice +from sugar3.activity import i18n from sugar3.activity.activityservice import ActivityService from sugar3.activity.namingalert import NamingAlert from sugar3.graphics import style @@ -261,6 +262,11 @@ class Activity(Window, Gtk.Container): """ # Stuff that needs to be done early + locale_path = i18n.get_locale_path(self.get_bundle_id()) + gettext.bindtextdomain(self.get_bundle_id(), locale_path) + gettext.bindtextdomain('sugar-toolkit', sugar3.locale_path) + gettext.textdomain(self.get_bundle_id()) + icons_path = os.path.join(get_bundle_path(), 'icons') Gtk.IconTheme.get_default().append_search_path(icons_path) |