Fix translations domains to point to new toolkit
This commit is contained in:
parent
b83ddaefaf
commit
d12a1d5131
@ -83,7 +83,7 @@ from sugar3.graphics.icon import Icon
|
|||||||
from sugar3.datastore import datastore
|
from sugar3.datastore import datastore
|
||||||
from gi.repository import SugarExt
|
from gi.repository import SugarExt
|
||||||
|
|
||||||
_ = lambda msg: gettext.dgettext('sugar-toolkit', msg)
|
_ = lambda msg: gettext.dgettext('sugar-toolkit-gtk3', msg)
|
||||||
|
|
||||||
SCOPE_PRIVATE = 'private'
|
SCOPE_PRIVATE = 'private'
|
||||||
SCOPE_INVITE_ONLY = 'invite' # shouldn't be shown in UI, it's implicit
|
SCOPE_INVITE_ONLY = 'invite' # shouldn't be shown in UI, it's implicit
|
||||||
|
@ -33,7 +33,7 @@ from sugar3.graphics import style
|
|||||||
from sugar3.graphics.palettemenu import PaletteMenuBox
|
from sugar3.graphics.palettemenu import PaletteMenuBox
|
||||||
|
|
||||||
|
|
||||||
_ = lambda msg: gettext.dgettext('sugar-toolkit', msg)
|
_ = lambda msg: gettext.dgettext('sugar-toolkit-gtk3', msg)
|
||||||
|
|
||||||
|
|
||||||
def _create_activity_icon(metadata):
|
def _create_activity_icon(metadata):
|
||||||
|
@ -56,7 +56,7 @@ from sugar3.graphics import style
|
|||||||
from sugar3.graphics.icon import Icon
|
from sugar3.graphics.icon import Icon
|
||||||
|
|
||||||
|
|
||||||
_ = lambda msg: gettext.dgettext('sugar-toolkit', msg)
|
_ = lambda msg: gettext.dgettext('sugar-toolkit-gtk3', msg)
|
||||||
|
|
||||||
|
|
||||||
class Alert(Gtk.EventBox):
|
class Alert(Gtk.EventBox):
|
||||||
|
@ -29,7 +29,7 @@ from sugar3.graphics.icon import Icon
|
|||||||
from sugar3.graphics.palette import Palette, ToolInvoker, WidgetInvoker
|
from sugar3.graphics.palette import Palette, ToolInvoker, WidgetInvoker
|
||||||
|
|
||||||
|
|
||||||
_ = lambda msg: gettext.dgettext('sugar-toolkit', msg)
|
_ = lambda msg: gettext.dgettext('sugar-toolkit-gtk3', msg)
|
||||||
|
|
||||||
|
|
||||||
def get_svg_color_string(color):
|
def get_svg_color_string(color):
|
||||||
|
@ -31,7 +31,7 @@ from gi.repository import Gio
|
|||||||
|
|
||||||
from gi.repository import SugarExt
|
from gi.repository import SugarExt
|
||||||
|
|
||||||
_ = lambda msg: gettext.dgettext('sugar-base', msg)
|
_ = lambda msg: gettext.dgettext('sugar-toolkit-gtk3', msg)
|
||||||
|
|
||||||
GENERIC_TYPE_TEXT = 'Text'
|
GENERIC_TYPE_TEXT = 'Text'
|
||||||
GENERIC_TYPE_IMAGE = 'Image'
|
GENERIC_TYPE_IMAGE = 'Image'
|
||||||
|
@ -31,7 +31,7 @@ import logging
|
|||||||
import atexit
|
import atexit
|
||||||
|
|
||||||
|
|
||||||
_ = lambda msg: gettext.dgettext('sugar-toolkit', msg)
|
_ = lambda msg: gettext.dgettext('sugar-toolkit-gtk3', msg)
|
||||||
|
|
||||||
|
|
||||||
def printable_hash(in_hash):
|
def printable_hash(in_hash):
|
||||||
@ -270,7 +270,7 @@ def timestamp_to_elapsed_string(timestamp, max_levels=2):
|
|||||||
if key in _i18n_timestamps_cache:
|
if key in _i18n_timestamps_cache:
|
||||||
time_period += _i18n_timestamps_cache[key]
|
time_period += _i18n_timestamps_cache[key]
|
||||||
else:
|
else:
|
||||||
tmp = gettext.dngettext('sugar-toolkit',
|
tmp = gettext.dngettext('sugar-toolkit-gtk3',
|
||||||
name_singular,
|
name_singular,
|
||||||
name_plural,
|
name_plural,
|
||||||
elapsed_units)
|
elapsed_units)
|
||||||
|
Loading…
Reference in New Issue
Block a user