GrampsLocale: Convert some late-added translations to GRAMPS_LOCALE
svn: r21170
This commit is contained in:
parent
6c90a89612
commit
64671663dd
@ -25,7 +25,6 @@
|
||||
# Standard Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from ....ggettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -33,6 +32,8 @@ from ....ggettext import gettext as _
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from .. import Rule
|
||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
from ....lib.childreftype import ChildRefType
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@ -25,7 +25,6 @@
|
||||
# Standard Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from ....ggettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -34,6 +33,8 @@ from ....ggettext import gettext as _
|
||||
#-------------------------------------------------------------------------
|
||||
from ....lib.notetype import NoteType
|
||||
from .. import Rule
|
||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -24,7 +24,8 @@ from gramps.gui.widgets.styledtexteditor import StyledTextEditor
|
||||
from gramps.gui.widgets import SimpleButton
|
||||
from gramps.gen.lib import StyledText, Note, NoteType
|
||||
from gramps.gen.db import DbTxn
|
||||
from gramps.gen.ggettext import gettext as _
|
||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
from gi.repository import Gtk
|
||||
|
||||
class ToDo(Gramplet):
|
||||
|
@ -27,10 +27,9 @@ from gramps.gen.lib import StyledText, Note, NoteType
|
||||
from gramps.gen.filters import GenericFilterFactory, rules
|
||||
from gramps.gen.utils.db import navigation_label
|
||||
from gramps.gen.db import DbTxn
|
||||
from gramps.gen.ggettext import gettext as _
|
||||
from gi.repository import Gtk
|
||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().sgettext
|
||||
_ = glocale.get_translation().gettext
|
||||
|
||||
class ToDoGramplet(Gramplet):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user