diff options
Diffstat (limited to '')
-rw-r--r-- | kosten/app/forms.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kosten/app/forms.py b/kosten/app/forms.py index 818384d..61bf6f1 100644 --- a/kosten/app/forms.py +++ b/kosten/app/forms.py @@ -37,7 +37,7 @@ def lenOf(col): class Form(FlaskForm): class Meta: - locales = False + locales = ['de_DE', 'de'] def __init__ (self, *args, **kwargs): self._msg = kwargs.pop('flash', "Fehler im Formular!") @@ -55,3 +55,9 @@ class Form(FlaskForm): def validate_on_submit (self): return self.is_submitted() and self.flash_validate() + + def _get_translations(self): + # use WTForms builtin translation support instead of the flask-babael + # stuff added by flask-wtf + # FIXME: remove this, if flask-babel is used in the app + return WTForm._get_translations(self) |