Narrative web: some strings not translated (#838)

* Narrative web: some strings not translated

The confidence and the date are not translated in the family map page.
The date doesn't use the specified date format.

Fixes #11207

* Narrative web: another string to translate
This commit is contained in:
Serge Noiraud
2019-08-11 22:05:18 +02:00
committed by GitHub
parent cdd3177b19
commit d89557acf4
2 changed files with 3 additions and 3 deletions

View File

@ -2265,7 +2265,7 @@ class BasePage: # pylint: disable=C1001
if conf == conf_strings[Citation.CONF_NORMAL]: if conf == conf_strings[Citation.CONF_NORMAL]:
conf = None conf = None
else: else:
conf = _(conf) conf = self._(conf)
for (label, data) in [[self._("Date"), for (label, data) in [[self._("Date"),
self.rlocale.get_date(sref.date)], self.rlocale.get_date(sref.date)],
[self._("Page"), sref.page], [self._("Page"), sref.page],

View File

@ -904,11 +904,11 @@ class PersonPages(BasePage):
trow.extend( trow.extend(
Html("td", data, class_=colclass, inline=True) Html("td", data, class_=colclass, inline=True)
for data, colclass in [ for data, colclass in [
(date, "ColumnDate"), (self.rlocale.get_date(date), "ColumnDate"),
(self.place_link(handle, placetitle, (self.place_link(handle, placetitle,
uplink=True), uplink=True),
"ColumnPlace"), "ColumnPlace"),
(str(etype), "ColumnType") (self._(str(etype)), "ColumnType")
] ]
) )