Use the right gettext domain.
This commit is contained in:
parent
e465307be6
commit
8e6a5b42be
@ -44,7 +44,7 @@ will need for a real activity.
|
|||||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
# Boston, MA 02111-1307, USA.
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
from gettext import gettext as _
|
import gettext
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
@ -73,6 +73,8 @@ from sugar import profile
|
|||||||
from sugar import _sugarbaseext
|
from sugar import _sugarbaseext
|
||||||
from sugar import _sugarext
|
from sugar import _sugarext
|
||||||
|
|
||||||
|
_ = lambda msg: gettext.dgettext('sugar', msg)
|
||||||
|
|
||||||
SCOPE_PRIVATE = "private"
|
SCOPE_PRIVATE = "private"
|
||||||
SCOPE_INVITE_ONLY = "invite" # shouldn't be shown in UI, it's implicit when you invite somebody
|
SCOPE_INVITE_ONLY = "invite" # shouldn't be shown in UI, it's implicit when you invite somebody
|
||||||
SCOPE_NEIGHBORHOOD = "public"
|
SCOPE_NEIGHBORHOOD = "public"
|
||||||
@ -289,7 +291,7 @@ class ActivityToolbox(Toolbox):
|
|||||||
Toolbox.__init__(self)
|
Toolbox.__init__(self)
|
||||||
|
|
||||||
self._activity_toolbar = ActivityToolbar(activity)
|
self._activity_toolbar = ActivityToolbar(activity)
|
||||||
self.add_toolbar('Activity', self._activity_toolbar)
|
self.add_toolbar(_('Activity'), self._activity_toolbar)
|
||||||
self._activity_toolbar.show()
|
self._activity_toolbar.show()
|
||||||
|
|
||||||
def get_activity_toolbar(self):
|
def get_activity_toolbar(self):
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
# Boston, MA 02111-1307, USA.
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
from gettext import gettext as _
|
import gettext
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
@ -25,6 +25,7 @@ import math
|
|||||||
from sugar.graphics import style
|
from sugar.graphics import style
|
||||||
from sugar.graphics.icon import Icon
|
from sugar.graphics.icon import Icon
|
||||||
|
|
||||||
|
_ = lambda msg: gettext.dgettext('sugar', msg)
|
||||||
|
|
||||||
class Alert(gtk.EventBox, gobject.GObject):
|
class Alert(gtk.EventBox, gobject.GObject):
|
||||||
"""UI interface for Alerts
|
"""UI interface for Alerts
|
||||||
|
Loading…
Reference in New Issue
Block a user