Skip to content

Commit

Permalink
frontpage: fix patron profile link translation
Browse files Browse the repository at this point in the history
* Fixes the translation of the patron profile link.
* Closes #1283.

Co-Authored-by: Alicia Zangger <[email protected]>
  • Loading branch information
Alicia Zangger authored and AoNoOokami committed Nov 18, 2020
1 parent 6a02237 commit ce087b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rero_ils/modules/patrons/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -165,7 +166,7 @@ def logged_user():
@register_menu(
blueprint,
'main.profile.patron_profile',
_('%(icon)s Profile', icon='<i class="fa fa-book fa-fw"></i>'),
lazy_gettext('%(icon)s Profile', icon='<i class="fa fa-book fa-fw"></i>'),
visible_when=user_has_patron,
id="my-profile-menu"
)
Expand Down

0 comments on commit ce087b1

Please sign in to comment.