move some unrelated comments away from translated strings
This commit is contained in:
parent
cf4f3f549f
commit
e9741e138d
@ -268,8 +268,8 @@ class Span(object):
|
||||
:param dlocale: allow deferred translation of strings
|
||||
:type dlocale: a :class:`.GrampsLocale` instance
|
||||
"""
|
||||
trans_text = dlocale.translation.sgettext
|
||||
# trans_text is a defined keyword (see po/update_po.py, po/genpot.sh)
|
||||
trans_text = dlocale.translation.sgettext
|
||||
_repr = trans_text("unknown")
|
||||
# FIXME all this concatenation will fail for RTL languages -- really??
|
||||
if self.valid:
|
||||
@ -395,9 +395,9 @@ class Span(object):
|
||||
:param dlocale: allow deferred translation of strings
|
||||
:type dlocale: a :class:`.GrampsLocale` instance
|
||||
"""
|
||||
trans_text = dlocale.translation.sgettext
|
||||
# trans_text is a defined keyword (see po/update_po.py, po/genpot.sh)
|
||||
ngettext = dlocale.translation.ngettext # to see "nearby" comments
|
||||
# trans_text is a defined keyword (see po/update_po.py, po/genpot.sh)
|
||||
trans_text = dlocale.translation.sgettext
|
||||
if diff_tuple == (-1, -1, -1): return trans_text("unknown")
|
||||
retval = ""
|
||||
detail = 0
|
||||
|
@ -136,9 +136,9 @@ class EventType(GrampsType):
|
||||
RETIREMENT = 43
|
||||
WILL = 44
|
||||
|
||||
# _T_ is a gramps-defined keyword -- see po/update_po.py and po/genpot.sh
|
||||
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
|
||||
|
||||
_MENU = [[_T_('Life Events'),
|
||||
[BIRTH, BAPTISM, DEATH, BURIAL, CREMATION, ADOPT]],
|
||||
|
@ -67,9 +67,9 @@ from gramps.plugins.lib.libholiday import g2iso
|
||||
pt2cm = ReportUtils.pt2cm
|
||||
cm2pt = ReportUtils.cm2pt
|
||||
|
||||
# _T_ is a gramps-defined keyword -- see po/update_po.py and po/genpot.sh
|
||||
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
|
||||
|
||||
_TITLE1 = _T_("My Calendar")
|
||||
_TITLE2 = _T_("Produced with Gramps")
|
||||
|
@ -58,9 +58,9 @@ import gramps.plugins.lib.libholiday as libholiday
|
||||
# localization for BirthdayOptions only!!
|
||||
from gramps.gen.datehandler import displayer as _dd
|
||||
|
||||
# _T_ is a gramps-defined keyword -- see po/update_po.py and po/genpot.sh
|
||||
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")
|
||||
@ -260,9 +260,9 @@ class BirthdayReport(Report):
|
||||
people = self.filter.apply(self.database, people,
|
||||
step)
|
||||
|
||||
ngettext = self._locale.translation.ngettext # to see "nearby" comments
|
||||
rel_calc = get_relationship_calculator(reinit=True,
|
||||
clocale=self._locale)
|
||||
ngettext = self._locale.translation.ngettext # to see "nearby" comments
|
||||
|
||||
with self._user.progress(_('Birthday and Anniversary Report'),
|
||||
_('Reading database...'), len(people)) as step:
|
||||
|
@ -64,11 +64,10 @@ from gramps.gen.utils.lds import TEMPLES
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
# _T_ is a gramps-defined keyword -- see po/update_po.py and po/genpot.sh
|
||||
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_)
|
||||
CUSTOM = _T_("Custom")
|
||||
|
||||
# Construct section list and type to group map
|
||||
@ -972,7 +971,7 @@ class IndivCompleteOptions(MenuReportOptions):
|
||||
menu.add_option(category_name, "grampsid", grampsid)
|
||||
|
||||
################################
|
||||
category_name = SECTION_CATEGORY
|
||||
category_name = _("Sections")
|
||||
################################
|
||||
|
||||
opt = BooleanListOption(_("Event groups"))
|
||||
|
392
po/gramps.pot
392
po/gramps.pot
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user