From 6600ae0674bc685c4756a040b4db47e927f2e15e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 24 Jul 2020 09:26:19 +0200 Subject: Remove translation hack --- kosten/app/forms.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/kosten/app/forms.py b/kosten/app/forms.py index b7cbebf..9bab284 100644 --- a/kosten/app/forms.py +++ b/kosten/app/forms.py @@ -33,7 +33,7 @@ req = [validators.input_required()] class Form(FlaskForm): class Meta: - locales = ['de_DE', 'de'] + locales = False def __init__ (self, *args, **kwargs): self._msg = kwargs.pop('flash', "Fehler im Formular!") @@ -51,9 +51,3 @@ 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) -- cgit v1.2.3