any documentation is better than none
svn: r22284
This commit is contained in:
parent
2cca179793
commit
991740e333
@ -296,6 +296,7 @@ class Span(object):
|
||||
@type dlocale: a GrampsLocale instance
|
||||
"""
|
||||
trans_text = dlocale.translation.sgettext
|
||||
# trans_text is a defined keyword (see po/update_po.py, po/genpot.sh)
|
||||
_repr = trans_text("unknown")
|
||||
# FIXME all this concatenation will fail for RTL languages
|
||||
if self.valid:
|
||||
|
@ -193,6 +193,7 @@ class EventType(GrampsType):
|
||||
|
||||
def _T_(value): # enable deferred translations (see Python docs 22.1.3.4)
|
||||
return value
|
||||
# _T_ is a gramps-defined keyword -- see po/update_po.py and po/genpot.sh
|
||||
|
||||
_ABBREVIATIONS = {
|
||||
BIRTH: _T_("birth abbreviation|b."),
|
||||
|
@ -128,6 +128,7 @@ def write_endnotes(bibliography, database, doc, printnotes=False, links=False,
|
||||
return
|
||||
|
||||
trans_text = elocale.translation.gettext
|
||||
# trans_text is a defined keyword (see po/update_po.py, po/genpot.sh)
|
||||
|
||||
doc.start_paragraph('Endnotes-Header')
|
||||
doc.write_text(trans_text('Endnotes'))
|
||||
|
@ -1680,6 +1680,7 @@ class RelationshipCalculator(object):
|
||||
return ''
|
||||
|
||||
trans_text = _
|
||||
# trans_text is a defined keyword (see po/update_po.py, po/genpot.sh)
|
||||
if hasattr(self, '_locale') and self._locale != glocale:
|
||||
trans_text = self._locale.translation.sgettext
|
||||
|
||||
|
@ -310,6 +310,7 @@ class _options:
|
||||
|
||||
def _T_(value): # enable deferred translations (see Python docs 22.1.3.4)
|
||||
return value
|
||||
# _T_ is a gramps-defined keyword -- see po/update_po.py and po/genpot.sh
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@ -50,6 +50,7 @@ from gramps.gen.utils.alive import probably_alive
|
||||
|
||||
def _T_(value): # enable deferred translations (see Python docs 22.1.3.4)
|
||||
return value
|
||||
# _T_ is a gramps-defined keyword -- see po/update_po.py and po/genpot.sh
|
||||
|
||||
RECORDS = [
|
||||
(_T_("Youngest living person"), 'person_youngestliving', True),
|
||||
@ -96,6 +97,7 @@ def find_records(db, filter, top_size, callname,
|
||||
"""
|
||||
@param trans_text: allow deferred translation of strings
|
||||
@type trans_text: a GrampsLocale sgettext instance
|
||||
trans_text is a defined keyword (see po/update_po.py, po/genpot.sh)
|
||||
"""
|
||||
|
||||
today = datetime.date.today()
|
||||
|
@ -61,6 +61,7 @@ import gramps.plugins.lib.libholiday as libholiday
|
||||
|
||||
def _T_(value): # enable deferred translations (see Python docs 22.1.3.4)
|
||||
return value
|
||||
# _T_ is a gramps-defined keyword -- see po/update_po.py and po/genpot.sh
|
||||
|
||||
_TITLE0 = _T_("Birthday and Anniversary Report")
|
||||
_TITLE1 = _T_("My Birthday Report")
|
||||
|
@ -68,6 +68,7 @@ from gramps.gen.utils.file import media_path_full
|
||||
|
||||
def _T_(value): # enable deferred translations (see Python docs 22.1.3.4)
|
||||
return value
|
||||
# _T_ is a gramps-defined keyword -- see po/update_po.py and po/genpot.sh
|
||||
|
||||
SECTION_CATEGORY = _("Sections") # only used in add_menu_options (so no _T_)
|
||||
# headers for the sections
|
||||
|
Loading…
Reference in New Issue
Block a user