GrampsLocale: Remove get_translation()

Only one base translation per locale. To set up a different locale
on any axis (locale, domain, directory, or languages) instantiate a
secondary locale by calling GrampsLocale() with the appropriate
arguments.

svn: r21968
This commit is contained in:
John Ralls 2013-04-12 22:32:11 +00:00
parent 56254d4a14
commit 00aa00fbf5
632 changed files with 654 additions and 684 deletions

View File

@ -56,7 +56,7 @@ from gramps.gen.plug.report import CATEGORY_BOOK, CATEGORY_CODE, BookList
from .plug import cl_report, cl_book
from .user import User
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -51,7 +51,7 @@ from gramps.gen.config import config
from gramps.gen.utils.configmanager import safe_eval
from gramps.gen.utils.file import get_unicode_path_from_env_var
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
# Note: Make sure to edit const.py.in POPT_TABLE too!
_HELP = _("""

View File

@ -60,7 +60,7 @@ _LOG = logging.getLogger(DBLOGNAME)
#
#-------------------------------------------------------------------------
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
from gramps.gen.db import DbBsddb
from gramps.gen.plug import BasePluginManager
from gramps.gen.config import config

View File

@ -36,7 +36,7 @@ Provides also two small base classes: CLIDbLoader, CLIManager
from __future__ import print_function
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
import os
import sys

View File

@ -65,7 +65,7 @@ from gramps.gen.constfunc import STRTYPE, conv_to_unicode_direct
from ..grampscli import CLIManager
from ..user import User
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#------------------------------------------------------------------------
#

View File

@ -39,7 +39,7 @@ import sys
#
#------------------------------------------------------------------------
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
from gramps.gen.user import User
#------------------------------------------------------------------------

View File

@ -42,7 +42,7 @@ import logging
#
#---------------------------------------------------------------
from .const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
from .const import HOME_DIR, USER_HOME, VERSION_DIR
from .utils.configmanager import ConfigManager

View File

@ -195,7 +195,7 @@ LICENSE_FILE = os.path.join(_resources.doc_dir, 'COPYING')
#-------------------------------------------------------------------------
from gramps.gen.utils.grampslocale import GrampsLocale
GRAMPS_LOCALE = GrampsLocale(localedir=_resources.locale_dir)
_ = GRAMPS_LOCALE.get_translation().sgettext
_ = GRAMPS_LOCALE.translation.sgettext
#-------------------------------------------------------------------------
#

View File

@ -32,7 +32,7 @@ Class handling language-specific selection for date parser and displayer.
import logging
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().sgettext
_ = glocale.translation.sgettext
# import prerequisites for localized handlers
from ._datehandler import (LANG, LANG_SHORT, LANG_TO_PARSER, LANG_TO_DISPLAY,
register_datehandler)

View File

@ -33,7 +33,7 @@ from this class.
#
#-------------------------------------------------------------------------
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@
#
#-------------------------------------------------------------------------
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
class DbException(Exception):

View File

@ -49,7 +49,7 @@ if config.get('preferences.use-bsddb3') or sys.version_info[0] >= 3:
else:
from bsddb import db
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
import re
import logging

View File

@ -47,7 +47,7 @@ if config.get('preferences.use-bsddb3') or sys.version_info[0] >= 3:
else:
from bsddb import db
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -31,7 +31,7 @@ import logging
LOG = logging.getLogger(".citation")
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
from ..constfunc import cuni
"""

View File

@ -81,7 +81,7 @@ from ..updatecallback import UpdateCallback
from ..errors import DbError
from ..constfunc import win, conv_to_unicode, cuni, UNITYPE, handle2internal
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
_LOG = logging.getLogger(DBLOGNAME)
LOG = logging.getLogger(".citation")

View File

@ -54,7 +54,7 @@ Specific symbols for parts of a name are defined:
#
#-------------------------------------------------------------------------
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().sgettext
_ = glocale.translation.sgettext
import re
import logging
LOG = logging.getLogger(".gramps.gen")

View File

@ -29,7 +29,7 @@ from __future__ import print_function, unicode_literals
from xml.sax import handler
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
import re
import time

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -30,7 +30,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#-------------------------------------------------------------------------
import re
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@ Rule that checks for an object with a particular tag.
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -24,7 +24,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

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

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -36,7 +36,7 @@ LOG = logging.getLogger(".filter")
# we need global variableCustomFilters, so we need to query gramps.gen.filters
# when we need this variable, not import it at the start!
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
import gramps.gen.filters
from . import Rule

View File

@ -30,7 +30,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#-------------------------------------------------------------------------
import re
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -31,7 +31,7 @@ Base class for filter rules.
#
#-------------------------------------------------------------------------
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
import re
#-------------------------------------------------------------------------

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@ Filter rule to match citation data.
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -30,7 +30,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -30,7 +30,7 @@ Filter rule to match citation with a particular source.
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@ Rule that checks for a citation with a particular tag.
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
import logging
LOG = logging.getLogger(".citation")
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -30,7 +30,7 @@ Filter rule to match event with a particular citation.
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@ Rule that checks for an event with a particular tag.
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().sgettext
_ = glocale.translation.sgettext
#-------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -30,7 +30,7 @@ Filter rule to match family with a particular citation.
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@ Filter rule to match families with a particular event.
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -26,7 +26,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -29,7 +29,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,7 @@
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

View File

@ -28,7 +28,7 @@ Rule that checks for a family with a particular tag.
#
#-------------------------------------------------------------------------
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
_ = glocale.translation.gettext
#-------------------------------------------------------------------------
#

Some files were not shown because too many files have changed in this diff Show More