[r21170]GrampsLocale: Convert some late-added translations to

GRAMPS_LOCALE

svn: r21405
This commit is contained in:
John Ralls 2013-02-24 00:53:58 +00:00
parent 7a894d9a41
commit fd559d0d80
4 changed files with 7 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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