make the translator's job a little easier
This commit is contained in:
parent
5ceb7b69d9
commit
7855df6c08
@ -194,9 +194,9 @@ class CLIDbManager:
|
|||||||
for item in sorted(summary):
|
for item in sorted(summary):
|
||||||
if item != "Family Tree":
|
if item != "Family Tree":
|
||||||
# translators: needed for French, ignore otherwise
|
# translators: needed for French, ignore otherwise
|
||||||
print(_(" %(item)s: %(summary)s") % {
|
print(' ' + _("%(str1)s: %(str2)s"
|
||||||
'item' : item,
|
) % {'str1' : item,
|
||||||
'summary' : summary[item]})
|
'str2' : summary[item]})
|
||||||
|
|
||||||
def family_tree_summary(self, database_names=None):
|
def family_tree_summary(self, database_names=None):
|
||||||
"""
|
"""
|
||||||
|
@ -1111,9 +1111,9 @@ class UpdateAddons(ManagedWindow):
|
|||||||
last_category = None
|
last_category = None
|
||||||
for (status,plugin_url,plugin_dict) in addon_update_list:
|
for (status,plugin_url,plugin_dict) in addon_update_list:
|
||||||
count = get_count(addon_update_list, plugin_dict["t"])
|
count = get_count(addon_update_list, plugin_dict["t"])
|
||||||
category = _("%(adjective)s: %(addon)s") % {
|
# translators: needed for French, ignore otherwise
|
||||||
"adjective": status,
|
category = _("%(str1)s: %(str2)s") % {'str1' : status,
|
||||||
"addon": _(plugin_dict["t"])}
|
'str2' : _(plugin_dict["t"])}
|
||||||
if last_category != category:
|
if last_category != category:
|
||||||
last_category = category
|
last_category = category
|
||||||
node = self.list.add([False, # initially selected?
|
node = self.list.add([False, # initially selected?
|
||||||
|
@ -489,9 +489,10 @@ class WhatNextGramplet(Gramplet):
|
|||||||
missingbits.append(_("place unknown"))
|
missingbits.append(_("place unknown"))
|
||||||
|
|
||||||
if missingbits:
|
if missingbits:
|
||||||
return [_("%(type)s: %(list)s") % {
|
# translators: needed for French, ignore otherwise
|
||||||
'type': event.get_type(),
|
return [_("%(str1)s: %(str2)s"
|
||||||
'list': _(", ").join(missingbits)}]
|
) % {'str1' : event.get_type(),
|
||||||
|
'str2' : _(", ").join(missingbits)}]
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
@ -365,10 +365,10 @@ class DetAncestorReport(Report):
|
|||||||
self.doc.start_paragraph('DAR-MoreDetails')
|
self.doc.start_paragraph('DAR-MoreDetails')
|
||||||
atype = self._get_type(alt_name.get_type())
|
atype = self._get_type(alt_name.get_type())
|
||||||
self.doc.write_text_citation(
|
self.doc.write_text_citation(
|
||||||
self._('%(name_kind)s: %(name)s%(endnotes)s'
|
self._('%(type)s: %(value)s%(endnotes)s'
|
||||||
) % {'name_kind' : self._(atype),
|
) % {'type' : self._(atype),
|
||||||
'name' : alt_name.get_regular_name(),
|
'value' : alt_name.get_regular_name(),
|
||||||
'endnotes' : self.endnotes(alt_name)})
|
'endnotes' : self.endnotes(alt_name)})
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
|
|
||||||
if self.inc_events:
|
if self.inc_events:
|
||||||
|
@ -895,10 +895,10 @@ class DetDescendantReport(Report):
|
|||||||
atype = self._get_type(alt_name.get_type())
|
atype = self._get_type(alt_name.get_type())
|
||||||
aname = alt_name.get_regular_name()
|
aname = alt_name.get_regular_name()
|
||||||
self.doc.write_text_citation(
|
self.doc.write_text_citation(
|
||||||
self._('%(name_kind)s: %(name)s%(endnotes)s'
|
self._('%(type)s: %(value)s%(endnotes)s'
|
||||||
) % {'name_kind' : self._(atype),
|
) % {'type' : self._(atype),
|
||||||
'name' : aname,
|
'value' : aname,
|
||||||
'endnotes' : self.endnotes(alt_name)})
|
'endnotes' : self.endnotes(alt_name)})
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
|
|
||||||
if self.inc_events:
|
if self.inc_events:
|
||||||
|
@ -1060,9 +1060,9 @@ class BasePage:
|
|||||||
attrlist.extend(event_ref.get_attribute_list())
|
attrlist.extend(event_ref.get_attribute_list())
|
||||||
for attr in attrlist:
|
for attr in attrlist:
|
||||||
htmllist.extend(Html("p",
|
htmllist.extend(Html("p",
|
||||||
_("%(type)s: %(value)s") % {
|
_("%(str1)s: %(str2)s") % {
|
||||||
'type' : Html("b", attr.get_type()),
|
'str1' : Html("b", attr.get_type()),
|
||||||
'value' : attr.get_value()
|
'str2' : attr.get_value()
|
||||||
}))
|
}))
|
||||||
|
|
||||||
#also output notes attached to the attributes
|
#also output notes attached to the attributes
|
||||||
@ -2599,9 +2599,9 @@ class BasePage:
|
|||||||
[self._("Confidence"), conf]]:
|
[self._("Confidence"), conf]]:
|
||||||
if data:
|
if data:
|
||||||
tmp += Html("li",
|
tmp += Html("li",
|
||||||
_("%(label)s: %(data)s") % {
|
_("%(str1)s: %(str2)s") % {
|
||||||
'label' : label,
|
'str1' : label,
|
||||||
'data' : data
|
'str2' : data
|
||||||
})
|
})
|
||||||
if self.create_media:
|
if self.create_media:
|
||||||
for media_ref in sref.get_media_list():
|
for media_ref in sref.get_media_list():
|
||||||
@ -2649,9 +2649,9 @@ class BasePage:
|
|||||||
if this_note is not None:
|
if this_note is not None:
|
||||||
format = self.get_note_format(this_note, True)
|
format = self.get_note_format(this_note, True)
|
||||||
tmp += Html("li",
|
tmp += Html("li",
|
||||||
_("%(type)s: %(format)s") % {
|
_("%(str1)s: %(str2)s") % {
|
||||||
'type' : str(this_note.get_type()),
|
'str1' : str(this_note.get_type()),
|
||||||
'format' : format
|
'str2' : format
|
||||||
})
|
})
|
||||||
if tmp:
|
if tmp:
|
||||||
cit_ref_li += tmp
|
cit_ref_li += tmp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user