Mercurial > libervia-web
changeset 1418:d6bcb0cf92d2
pages: add some labels
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Apr 2021 20:49:32 +0200 |
parents | 314bba1ae433 |
children | 6fc41f000d24 |
files | libervia/pages/events/admin/page_meta.py libervia/pages/events/rsvp/page_meta.py libervia/pages/lists/page_meta.py libervia/pages/photos/album/page_meta.py |
diffstat | 4 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/pages/events/admin/page_meta.py Thu Apr 29 20:48:35 2021 +0200 +++ b/libervia/pages/events/admin/page_meta.py Thu Apr 29 20:49:32 2021 +0200 @@ -2,11 +2,10 @@ from libervia.server.constants import Const as C -from twisted.internet import defer from twisted.words.protocols.jabber import jid from sat.tools.common.template import safe from sat.tools.common import data_format -from sat.core.i18n import _ +from sat.core.i18n import _, D_ from sat.core.log import getLogger import time import html @@ -14,6 +13,7 @@ import re name = "event_admin" +label = D_("Event Administration") access = C.PAGES_ACCESS_PROFILE template = "event/admin.html" log = getLogger(__name__)
--- a/libervia/pages/events/rsvp/page_meta.py Thu Apr 29 20:48:35 2021 +0200 +++ b/libervia/pages/events/rsvp/page_meta.py Thu Apr 29 20:49:32 2021 +0200 @@ -2,7 +2,7 @@ from libervia.server.constants import Const as C -from sat.core.i18n import _ +from sat.core.i18n import _, D_ from twisted.internet import defer from twisted.words.protocols.jabber import jid from sat.core.log import getLogger @@ -13,6 +13,7 @@ """creation of new events""" name = "event_rsvp" +label = D_("Event Invitation") access = C.PAGES_ACCESS_PROFILE template = "event/invitation.html" log = getLogger(__name__)
--- a/libervia/pages/lists/page_meta.py Thu Apr 29 20:48:35 2021 +0200 +++ b/libervia/pages/lists/page_meta.py Thu Apr 29 20:49:32 2021 +0200 @@ -2,13 +2,14 @@ from libervia.server.constants import Const as C from twisted.words.protocols.jabber import jid -from sat.core.i18n import _ +from sat.core.i18n import _, D_ from sat.core.log import getLogger from sat.tools.common import data_format log = getLogger(__name__) name = "lists_disco" +label = D_("Lists Discovery") access = C.PAGES_ACCESS_PUBLIC template = "list/discover.html"
--- a/libervia/pages/photos/album/page_meta.py Thu Apr 29 20:48:35 2021 +0200 +++ b/libervia/pages/photos/album/page_meta.py Thu Apr 29 20:49:32 2021 +0200 @@ -1,12 +1,14 @@ #!/usr/bin/env python3 +from sat.core.i18n import D_ +from sat.core.log import getLogger from libervia.server.constants import Const as C -from sat.core.log import getLogger log = getLogger(__name__) name = "photos_album" +label = D_("Photos Album") access = C.PAGES_ACCESS_PROFILE template = "photo/album.html"