From c54fac69c948cca1515ee2e9883beffb5bc1318e Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sat, 15 Oct 2011 01:58:30 +0200 Subject: [PATCH] Fix translations of forms. Forms are not context related, thus translations are done only once if not done in a lazy way. the fix is to use lazy_gettext rather than gettext. Fix #12 --- budget/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/budget/forms.py b/budget/forms.py index 046323a4..5abbd845 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -1,5 +1,5 @@ from flaskext.wtf import * -from flaskext.babel import gettext as _ +from flaskext.babel import lazy_gettext as _ from flask import request from wtforms.widgets import html_params