summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-07-24 09:26:19 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-07-24 09:26:19 +0200
commit6600ae0674bc685c4756a040b4db47e927f2e15e (patch)
tree0effc9fe77e07d3d6fa4ee4550bcb92f38ae7974
parenta684705dbc89ca5b277ad380b7d8f268ae6c6803 (diff)
downloadkosten-6600ae0674bc685c4756a040b4db47e927f2e15e.tar.gz
kosten-6600ae0674bc685c4756a040b4db47e927f2e15e.tar.bz2
kosten-6600ae0674bc685c4756a040b4db47e927f2e15e.zip
Remove translation hack
-rw-r--r--kosten/app/forms.py8
1 files changed, 1 insertions, 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)