GrampsLocale: Remove ggettext

svn: r21144
This commit is contained in:
John Ralls 2013-01-17 19:46:55 +00:00
parent d3c2a8a490
commit ef6892abbd
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 from __future__ import print_function
import os import os
import sys 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 from __future__ import print_function
import sys import sys
import getopt import getopt
from gramps.gen.ggettext import gettext as _ from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
import logging import logging
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

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

View File

@ -35,7 +35,8 @@
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from __future__ import print_function 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 traceback
import os import os
import sys import sys

View File

@ -38,7 +38,8 @@ import sys
# Gramps Modules # 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 from gramps.gen.user import User
#------------------------------------------------------------------------ #------------------------------------------------------------------------

View File

@ -41,7 +41,8 @@ import logging
# Gramps imports # 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 .const import HOME_DIR, USER_HOME, VERSION_DIR
from .utils.configmanager import ConfigManager from .utils.configmanager import ConfigManager

View File

@ -224,8 +224,7 @@ LICENSE_FILE = os.path.join(DOC_DIR, 'COPYING')
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from .utils.grampslocale import GrampsLocale from .utils.grampslocale import GrampsLocale
GRAMPS_LOCALE = GrampsLocale() GRAMPS_LOCALE = GrampsLocale()
from .ggettext import sgettext as _ _ = GRAMPS_LOCALE.get_translation().sgettext
>>>>>>> GrampsLocale: Replace use of the GNU Gettext API with the Gettext Class API
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -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') GRAMPS_UUID = uuid.UUID('516cd010-5a41-470f-99f8-eb22f1098ad6')
<<<<<<< HEAD
def need_to_update_const(): def need_to_update_const():
""" Check to see if this file is older than """ Check to see if this file is older than
setup.py or const.py.in """ setup.py or const.py.in """
@ -365,11 +363,3 @@ def need_to_update_const():
if need_to_update_const(): if need_to_update_const():
print("Outdated gramps.gen.const; please run 'python setup.py build'") 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 # 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 # Standard python modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from ..ggettext import gettext as _ from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
class DbException(Exception): 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 from bsddb3 import db
else: else:
from bsddb import db from bsddb import db
from ..ggettext import gettext as _ from ..const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
import re import re
import logging import logging

View File

@ -46,7 +46,8 @@ if config.get('preferences.use-bsddb3') or sys.version_info[0] >= 3:
from bsddb3 import db from bsddb3 import db
else: else:
from bsddb import db 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 import logging
LOG = logging.getLogger(".citation") LOG = logging.getLogger(".citation")
from ..ggettext import gettext as _ from ..const import GRAMPS_LOCALE as glocale
from ..constfunc import cuni, UNITYPE _ = glocale.get_translation().gettext
from ..constfunc import cuni
""" """
methods to upgrade a database from version 13 to current version methods to upgrade a database from version 13 to current version

View File

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

View File

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

View File

@ -28,7 +28,8 @@
from __future__ import print_function, unicode_literals from __future__ import print_function, unicode_literals
from xml.sax import handler 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 # Standard Python modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from ...ggettext import gettext as _ from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
import re import re
import time import time

View File

@ -25,7 +25,8 @@
# Standard Python modules # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 from . import Rule
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -25,7 +25,8 @@
# Standard Python modules # 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 # Standard Python modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from ...ggettext import gettext as _
import logging import logging
LOG = logging.getLogger(".filter") LOG = logging.getLogger(".filter")
@ -36,6 +35,8 @@ LOG = logging.getLogger(".filter")
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# we need global variableCustomFilters, so we need to query gramps.gen.filters # we need global variableCustomFilters, so we need to query gramps.gen.filters
# when we need this variable, not import it at the start! # 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 import gramps.gen.filters
from . import Rule from . import Rule

View File

@ -29,7 +29,8 @@
# Standard Python modules # 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 # 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 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 # Standard Python modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from ...ggettext import gettext as _ from ...const import GRAMPS_LOCALE as glocale
_ = glocale.get_translation().gettext
import re import re
#------------------------------------------------------------------------- #-------------------------------------------------------------------------

View File

@ -26,7 +26,8 @@
# Standard Python modules # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 import logging
LOG = logging.getLogger(".citation") 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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