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