all teh german error messages

stable
neingeist 6 years ago
parent 723a767589
commit bc101ef4ec

@ -1 +0,0 @@
* wtforms locale

@ -17,12 +17,16 @@ from config import Config
app = Flask(__name__) app = Flask(__name__)
app.config.from_object(Config) app.config.from_object(Config)
app.config['WTF_I18N_ENABLED'] = False # enables WTForms built-in translations
Bootstrap(app) Bootstrap(app)
attachment_filenames = {} attachment_filenames = {}
class DownloadForm(FlaskForm): class DownloadForm(FlaskForm):
class Meta:
locales = ['de_DE', 'de']
start_time = DateTimeField('Startzeit', start_time = DateTimeField('Startzeit',
validators=[InputRequired()], validators=[InputRequired()],
format='%d.%m.%Y %H:%M') format='%d.%m.%Y %H:%M')

@ -1,4 +1,6 @@
flask flask
flask-bootstrap flask-bootstrap
flask-wtf
python-dotenv python-dotenv
# flask-wtf 0.14.2 is broken (enabling WTForms built-in translations does not work):
git+https://github.com/lepture/flask-wtf.git@534e1734b86c2f0907af131c11b981e6146ca57c

Loading…
Cancel
Save