[r21144]GrampsLocale: Remove ggettext
svn: r21392
This commit is contained in:
@@ -30,7 +30,8 @@ if config.get('preferences.use-bsddb3') or sys.version_info[0] >= 3:
|
||||
else:
|
||||
import bsddb
|
||||
import types
|
||||
from ..ggettext import gettext as _
|
||||
from ..const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
|
||||
import logging
|
||||
LOG = logging.getLogger(".Gramplets")
|
||||
|
@@ -41,7 +41,8 @@ from __future__ import print_function
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
from ..ggettext import gettext as _
|
||||
from ..const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@@ -58,7 +58,8 @@ from ..utils.cast import get_type_converter
|
||||
from .menu import Menu
|
||||
from ..plug import BasePluginManager
|
||||
PLUGMAN = BasePluginManager.get_instance()
|
||||
|
||||
from ..const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# List of options for a single module
|
||||
|
@@ -42,10 +42,11 @@ import traceback
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from ..const import VERSION as GRAMPSVERSION, VERSION_TUPLE, GRAMPS_LOCALE as glocale
|
||||
from ..const import VERSION as GRAMPSVERSION, VERSION_TUPLE
|
||||
from ..const import IMAGE_DIR
|
||||
from ..ggettext import gettext as _
|
||||
from ..constfunc import STRTYPE, win
|
||||
from ..const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
from ..constfunc import STRTYPE
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@@ -30,7 +30,8 @@
|
||||
#------------------------------------------------------------------------
|
||||
from __future__ import print_function
|
||||
|
||||
from ...ggettext import gettext as _
|
||||
from ...const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@@ -47,7 +47,8 @@ import sys
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------------
|
||||
from ...ggettext import gettext as _
|
||||
from ...const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
from ...utils.file import search_for
|
||||
from . import BaseDoc
|
||||
from ..menu import NumberOption, TextOption, EnumeratedListOption, \
|
||||
|
@@ -31,7 +31,8 @@
|
||||
# Standard Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from ...ggettext import gettext as _
|
||||
from ...const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@@ -29,7 +29,8 @@
|
||||
# standard python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from ...ggettext import gettext as _
|
||||
from ...const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
import os
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@@ -26,7 +26,8 @@
|
||||
# Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from ...ggettext import sgettext as _
|
||||
from ...const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().sgettext
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@@ -28,7 +28,8 @@ Provide utilities for printing endnotes in text reports.
|
||||
"""
|
||||
from ..docgen import FontStyle, ParagraphStyle, FONT_SANS_SERIF
|
||||
from ...lib import NoteType, Citation
|
||||
from ...ggettext import gettext as _
|
||||
from ...const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
from ...utils.string import confidence
|
||||
from ...datehandler import displayer
|
||||
|
||||
|
@@ -34,7 +34,8 @@ A collection of utilities to aid in the generation of reports.
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
from ...ggettext import gettext as _
|
||||
from ...const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@@ -45,7 +45,8 @@ else:
|
||||
from ._pluginreg import make_environment
|
||||
from ..const import USER_PLUGINS, VERSION_TUPLE
|
||||
from ..utils.file import get_unicode_path_from_file_chooser
|
||||
from ..ggettext import gettext as _
|
||||
from ..const import GRAMPS_LOCALE as glocale
|
||||
_ = glocale.get_translation().gettext
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user