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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]:
conf = None
else:
conf = _(conf)
conf = self._(conf)
for (label, data) in [[self._("Date"),
self.rlocale.get_date(sref.date)],
[self._("Page"), sref.page],

View File

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