GrampsLocale: Remove ggettext

svn: r21144
This commit is contained in:
John Ralls 2013-01-17 19:46:55 +00:00
parent 69d2b09ed6
commit c6e51d841d
623 changed files with 1291 additions and 738 deletions

View File

@ -39,7 +39,8 @@ Module responsible for handling the command line arguments for GRAMPS.
from __future__ import print_function
import os
import sys
from gramps.gen.ggettext import gettext as _
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

@ -39,7 +39,8 @@ Module responsible for handling the command line arguments for GRAMPS.
from __future__ import print_function
import sys
import getopt
from gramps.gen.ggettext import gettext as _
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
import logging
#-------------------------------------------------------------------------

View File

@ -44,7 +44,6 @@ else:
from urllib.parse import urlparse
from urllib.request import urlopen, url2pathname
import tempfile
from gramps.gen.ggettext import gettext as _
#-------------------------------------------------------------------------
#
# set up logging
@ -58,6 +57,8 @@ LOG = logging.getLogger(".clidbman")
# gramps modules
#
#-------------------------------------------------------------------------
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
from gramps.gen.db import DbBsddb
from gramps.gen.plug import BasePluginManager
from gramps.gen.config import config

View File

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

View File

@ -35,7 +35,8 @@
#-------------------------------------------------------------------------
from __future__ import print_function
from gramps.gen.ggettext import gettext as _
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
import traceback
import os
import sys

View File

@ -38,7 +38,8 @@ import sys
# Gramps Modules
#
#------------------------------------------------------------------------
from gramps.gen.ggettext import gettext as _
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
from gramps.gen.user import User
#------------------------------------------------------------------------

View File

@ -41,7 +41,8 @@ import logging
# Gramps imports
#
#---------------------------------------------------------------
from .ggettext import gettext as _
from .const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
from .const import HOME_DIR, USER_HOME, VERSION_DIR
from .utils.configmanager import ConfigManager

View File

@ -224,8 +224,7 @@ LICENSE_FILE = os.path.join(DOC_DIR, 'COPYING')
#-------------------------------------------------------------------------
from .utils.grampslocale import GrampsLocale
GRAMPS_LOCALE = GrampsLocale()
from .ggettext import sgettext as _
>>>>>>> GrampsLocale: Replace use of the GNU Gettext API with the Gettext Class API
_ = GRAMPS_LOCALE.get_translation().sgettext
#-------------------------------------------------------------------------
#
@ -339,7 +338,6 @@ SHORTOPTS = "O:C:i:e:f:a:p:d:c:lLhuv?s"
GRAMPS_UUID = uuid.UUID('516cd010-5a41-470f-99f8-eb22f1098ad6')
<<<<<<< HEAD
def need_to_update_const():
""" Check to see if this file is older than
setup.py or const.py.in """
@ -365,11 +363,3 @@ def need_to_update_const():
if need_to_update_const():
print("Outdated gramps.gen.const; please run 'python setup.py build'")
GRAMPS_LOCALE = 0
from .utils.grampslocale import GrampsLocale
GRAMPS_LOCALE = GrampsLocale()
=======
>>>>>>> GrampsLocale: Replace use of the GNU Gettext API with the Gettext Class API

View File

@ -32,7 +32,8 @@ from this class.
# Python libraries
#
#-------------------------------------------------------------------------
from ..ggettext import gettext as _
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

@ -27,7 +27,8 @@
# Standard python modules
#
#-------------------------------------------------------------------------
from ..ggettext import gettext as _
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
class DbException(Exception):

View File

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

View File

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

View File

@ -30,8 +30,9 @@ import time
import logging
LOG = logging.getLogger(".citation")
from ..ggettext import gettext as _
from ..constfunc import cuni, UNITYPE
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
from ..constfunc import cuni
"""
methods to upgrade a database from version 13 to current version

View File

@ -46,7 +46,8 @@ from functools import wraps
import logging
from sys import maxsize
from ..ggettext import gettext as _
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
from ..config import config
if config.get('preferences.use-bsddb3') or sys.version_info[0] >= 3:
from bsddb3 import dbshelve, db

View File

@ -53,8 +53,8 @@ Specific symbols for parts of a name are defined:
# Python modules
#
#-------------------------------------------------------------------------
from ..ggettext import sgettext as _
import sys
from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().sgettext
import re
import logging
LOG = logging.getLogger(".gramps.gen")

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -28,7 +28,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
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,7 +27,8 @@ Rule that checks for an object with a particular tag.
# Standard Python modules
#
#-------------------------------------------------------------------------
from ...ggettext import gettext as _
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

@ -26,7 +26,8 @@
# GRAMPS modules
#
#-------------------------------------------------------------------------
from gramps.gen.ggettext import gettext as _
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
from . import Rule
#-------------------------------------------------------------------------

View File

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

View File

@ -25,7 +25,6 @@
# Standard Python modules
#
#-------------------------------------------------------------------------
from ...ggettext import gettext as _
import logging
LOG = logging.getLogger(".filter")
@ -36,6 +35,8 @@ 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
import gramps.gen.filters
from . import Rule

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

View File

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

View File

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

View File

@ -30,7 +30,8 @@ Base class for filter rules.
# Standard Python modules
#
#-------------------------------------------------------------------------
from ...ggettext import gettext as _
from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
import re
#-------------------------------------------------------------------------

View File

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

View File

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

View File

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

View File

@ -28,7 +28,8 @@ Filter rule to match citation data.
# Standard Python modules
#
#-------------------------------------------------------------------------
from ....ggettext import gettext as _
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

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

View File

@ -26,7 +26,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
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

@ -26,7 +26,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 @@ Filter rule to match citation with a particular source.
# Standard Python modules
#
#-------------------------------------------------------------------------
from ....ggettext import gettext as _
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -25,7 +25,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 @@ Filter rule to match event with a particular citation.
# Standard Python modules
#
#-------------------------------------------------------------------------
from ....ggettext import gettext as _
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -25,7 +25,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 @@ Filter rule to match family with a particular citation.
# Standard Python modules
#
#-------------------------------------------------------------------------
from ....ggettext import gettext as _
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

@ -28,7 +28,8 @@ Filter rule to match families with a particular event.
# Standard Python modules
#
#-------------------------------------------------------------------------
from ....ggettext import gettext as _
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,7 +27,8 @@ Rule that checks for a family with a particular tag.
# Standard Python modules
#
#-------------------------------------------------------------------------
from ....ggettext import gettext as _
from ....const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
#-------------------------------------------------------------------------
#

View File

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

View File

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

View File

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

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