summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/forms/auth.py')
-rw-r--r--ogcp/forms/auth.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ogcp/forms/auth.py b/ogcp/forms/auth.py
index 3377cc3..72fc5c0 100644
--- a/ogcp/forms/auth.py
+++ b/ogcp/forms/auth.py
@@ -11,17 +11,18 @@ from wtforms import (
)
from wtforms.validators import InputRequired
from flask_wtf import FlaskForm
+from flask_babel import lazy_gettext as _l
from flask_babel import _
class LoginForm(FlaskForm):
user = StringField(
- label=_('User'),
+ label=_l('User'),
validators=[InputRequired()]
)
pwd = PasswordField(
- label=_('Password'),
+ label=_l('Password'),
validators=[InputRequired()]
)
submit = SubmitField(
- label=_('Login')
+ label=_l('Login')
)