1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

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
This commit is contained in:
Alexis Metaireau 2011-10-15 01:58:30 +02:00
parent c03cceaced
commit c54fac69c9

View file

@ -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