any documentation is better than none

svn: r22283
This commit is contained in:
Paul Franklin 2013-05-13 22:21:47 +00:00
parent 04e3543274
commit b0a3666e5a
8 changed files with 9 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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