update "gettext" environment

svn: r23313
This commit is contained in:
Jérôme Rapinat 2013-10-12 10:10:25 +00:00
parent 0ffc0cdd12
commit 04638a9dcb
5 changed files with 12 additions and 11 deletions

View File

@ -20,13 +20,6 @@
# $Id$
#-------------------------------------------------------------------------
#
# Standard Python modules
#
#-------------------------------------------------------------------------
from ....ggettext import gettext as _
#-------------------------------------------------------------------------
#
# GRAMPS modules
@ -34,6 +27,9 @@ from ....ggettext import gettext as _
#-------------------------------------------------------------------------
from .. import Rule
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#
# HasLocation

View File

@ -27,7 +27,8 @@
# internationalization
#
#-------------------------------------------------------------------------
from gramps.gen.ggettext import gettext as _
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

@ -56,7 +56,8 @@ from .treebasemodel import TreeBaseModel
# internationalization
#
#-------------------------------------------------------------------------
from gramps.gen.ggettext import gettext as _
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

@ -31,7 +31,8 @@ from gi.repository import Gtk
# Gramps modules
#
#-------------------------------------------------------------------------
from gramps.gen.ggettext import gettext as _
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

@ -30,7 +30,6 @@ Provide the location view.
# Standard python modules
#
#-------------------------------------------------------------------------
from gramps.gen.ggettext import gettext as _
import logging
_LOG = logging.getLogger(".plugins.locationview")
@ -50,6 +49,9 @@ from gramps.gui.dialog import ErrorDialog
from gramps.gui.editors import EditLocation
from gramps.gen.plug import CATEGORY_QR_PLACE
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#
# LocationView