I need to set the language of CalendarDatePicker with the value of the
session, to allow users to change the aplication language. I tried it:
# 1_ my_widgets.py
fecha = CalendarDatePicker(id='fecha', calendar_lang='en')
# 2_ In the controller.
return dict(fecha=fecha)
# 3_ In the template. I set user prefered language.
${fecha.display(calendar_lang=tg.get_locale())}
But the calendar don't take the session value, at display time.
The calendar only take take the initial value.
Does somebody know as this can be done?
--------------------------------------------------------------------------------------------------------------------------------
Necesito establecer ell idioma de los CalendarDatePicker usando el
valor de la session, para permitir al los usuarios cambiar el lenguage
de la aplcacion. Prove con los putnos 1_, 2_ y 3_. Pero el calendar
solo toma el lenguage que le paso en la instanciacion. Es una
aplicacion grande y todos lo formularios esta instanciados fuera de
los metodos en archivos aparte.
¿como puedo hacer que el calendar se muestre con el idioma de la
session?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---