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:
parent
c03cceaced
commit
c54fac69c9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue