diff --git a/invenio_accounts/config.py b/invenio_accounts/config.py index d02ffc5a..e5a582a7 100644 --- a/invenio_accounts/config.py +++ b/invenio_accounts/config.py @@ -10,6 +10,7 @@ """Default configuration for ACCOUNTS.""" from datetime import timedelta +from flask_babelex import lazy_gettext as _ from .profiles import UserPreferencesSchema, UserProfileSchema from .views import login @@ -322,7 +323,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.' )