From 9bb9c9014127f9ebde436a0691f0a1b33384c848 Mon Sep 17 00:00:00 2001 From: "Zeller, Christina" Date: Thu, 9 Jun 2022 09:17:54 +0200 Subject: [PATCH] i18n: Adds mark for translation. * Refs: #415 --- invenio_accounts/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invenio_accounts/config.py b/invenio_accounts/config.py index 7b1e1fed..386c6799 100644 --- a/invenio_accounts/config.py +++ b/invenio_accounts/config.py @@ -11,6 +11,8 @@ from datetime import timedelta +from flask_babelex import lazy_gettext as _ + from .profiles import UserPreferencesSchema, UserProfileSchema from .views import login @@ -317,7 +319,7 @@ to reflect the changes. """ -ACCOUNTS_USERNAME_RULES_TEXT = ( +ACCOUNTS_USERNAME_RULES_TEXT = _( "Username must start with a letter, be at least three characters long and" " only contain alphanumeric characters, dashes and underscores." )