From d89557acf44a0397599ad002fa663b83abb4a9e9 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sun, 11 Aug 2019 22:05:18 +0200 Subject: [PATCH] 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 --- gramps/plugins/webreport/basepage.py | 2 +- gramps/plugins/webreport/person.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/webreport/basepage.py b/gramps/plugins/webreport/basepage.py index c7c3ac4f9..711ce781e 100644 --- a/gramps/plugins/webreport/basepage.py +++ b/gramps/plugins/webreport/basepage.py @@ -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], diff --git a/gramps/plugins/webreport/person.py b/gramps/plugins/webreport/person.py index 0ff323cfb..41af1735f 100644 --- a/gramps/plugins/webreport/person.py +++ b/gramps/plugins/webreport/person.py @@ -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") ] )