Narweb: Description message is not translatable (#1036)

This commit is contained in:
Serge Noiraud 2020-05-05 23:22:22 +02:00 committed by GitHub
parent 2b2624fd7a
commit 0f88753a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ from gramps.plugins.webreport.basepage import BasePage
from gramps.gen.display.place import displayer as _pd
from gramps.plugins.webreport.common import (FULLCLEAR, _EVENTMAP, html_escape)
from gramps.gen.lib import (Person, Family, Event, Place, Source, Repository,
Media, Note, Citation)
Media, Citation)
from gramps.gen.lib.date import Date
_ = glocale.translation.sgettext
@ -84,13 +84,14 @@ class UpdatesPage(BasePage):
# begin updates division
with Html("div", class_="content", id="Updates") as section:
outerwrapper += section
description = ("This page contains the last updated objects in the"
" database in the last %(days)d days and for a "
"maximum of %(nb)d objects per object type." % {
'days' : self.days,
'nb' : self.nbr
}
)
description = self._("This page contains the last updated objects "
"in the database in the last %(days)d days and"
" for a maximum of %(nb)d objects per object "
"type." % {
'days' : self.days,
'nb' : self.nbr
}
)
section += Html("p", description)
header = self._("People")