From e0fdc8e0b50668d514fb6fe3998cc46454d1bb50 Mon Sep 17 00:00:00 2001 From: Alicia Zangger Date: Wed, 11 Nov 2020 08:30:38 +0100 Subject: [PATCH] frontpage: fix patron profile link translation * Fixes the translation of the patron profile link. * Closes #1283. Co-Authored-by: Alicia Zangger --- rero_ils/modules/patrons/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rero_ils/modules/patrons/views.py b/rero_ils/modules/patrons/views.py index 8e4c0e01be..cd7094940e 100644 --- a/rero_ils/modules/patrons/views.py +++ b/rero_ils/modules/patrons/views.py @@ -27,6 +27,7 @@ render_template, request, url_for from flask_babelex import format_currency from flask_babelex import gettext as _ +from flask_babelex import lazy_gettext from flask_login import current_user, login_required from flask_menu import register_menu from invenio_i18n.ext import current_i18n @@ -166,7 +167,7 @@ def logged_user(): @register_menu( blueprint, 'main.profile.patron_profile', - _('%(icon)s Profile', icon=''), + lazy_gettext('%(icon)s Profile', icon=''), visible_when=user_has_patron, id="my-profile-menu" )