diff --git a/calsocial/__init__.py b/calsocial/__init__.py index 452e40d..00779f9 100644 --- a/calsocial/__init__.py +++ b/calsocial/__init__.py @@ -86,7 +86,11 @@ class CalendarSocialApp(Flask): # Make sure we look up users both by their usernames and email addresses self.config['SECURITY_USER_IDENTITY_ATTRIBUTES'] = ('username', 'email') self.config['SECURITY_LOGIN_USER_TEMPLATE'] = 'login.html' + + self.jinja_env.policies['ext.i18n.trimmed'] = True # pylint: disable=no-member + db.init_app(self) + babel = Babel(app=self) babel.localeselector(get_locale) diff --git a/calsocial/templates/base.html b/calsocial/templates/base.html index cb75be9..f363a54 100644 --- a/calsocial/templates/base.html +++ b/calsocial/templates/base.html @@ -29,7 +29,9 @@ {% trans %}Login{% endtrans %} {% else %}