[r21144]GrampsLocale: Remove ggettext

svn: r21392
This commit is contained in:
John Ralls
2013-02-24 00:51:17 +00:00
parent 3788d52107
commit e28e114c95
620 changed files with 1286 additions and 736 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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, \

View File

@@ -31,7 +31,8 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from ...ggettext import gettext as _
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#------------------------------------------------------------------------
#

View File

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

View File

@@ -26,7 +26,8 @@
# Python modules
#
#-------------------------------------------------------------------------
from ...ggettext import sgettext as _
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().sgettext
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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