Hello Tomasz, To solve this particular problem I had to subclass web.py form and change its methods to use _() when outputting notes and descriptions. To mark these strings as translatable I defined N_ function and wrapped it over strings in form/validator definitions.
On Thursday, September 26, 2013 11:53:44 AM UTC+4, tomaszb wrote: > > Hello, > > I try to use runtime language switch ( from cookbook) and for the page > content it works. > > The problem is for a forms ( I use its declared in separate forms.py file) > > It looks forms are initialized during start application and only default > language is used ( language switch does not impact on forms descriptions). > > How to solve this problem? > > Regards > Tomasz > -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy. For more options, visit https://groups.google.com/groups/opt_out.
