GrampsLocale: Convert some late-added translations to GRAMPS_LOCALE

svn: r21170
This commit is contained in:
John Ralls 2013-01-18 22:23:11 +00:00
parent 6c90a89612
commit 64671663dd
4 changed files with 7 additions and 5 deletions

View File

@ -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
#-------------------------------------------------------------------------

View File

@ -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
#-------------------------------------------------------------------------
#

View File

@ -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):

View File

@ -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):
"""