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 committed Nov 11, 2020
1 parent b9f94ee commit 339c755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rero_ils/modules/patrons/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from flask import Blueprint, abort, current_app, flash, jsonify, \
render_template, request, url_for
from flask_babelex import format_currency
from flask_babelex import gettext as _
from flask_babelex import gettext as _, 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 @@ -166,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 339c755

Please sign in to comment.