I already spotted that one, Chris.
Problem is I don't have access to the current request within the context of
a widget template ?!
The only entities I have access to are 'field' and 'cstruct'.
Or am I missing something?!
K
-----Oorspronkelijk bericht-----
From: Chris McDonough
Sent: Friday, August 05, 2011 4:54 PM
To: [email protected]
Subject: Re: Deform: determine current locale used by i18n in widget
template?
On Fri, 2011-08-05 at 07:49 -0700, keesjan wrote:
Is there a way to determine the current locale used (by Pyramid)
inside a Deform widget template?
What I'm trying to accomplish is to enable i18n/L10n support by the
JQuery datepicker. In order to do this I need to pass the language
inside a javascript snippet, like so:
$.datepick.regional['fr']
As is documented here: http://keith-wood.name/datepick.html#l10n
Hope someone on this list already invented this wheel...
Really doesn't have anything to do with deform:
http://docs.pylonsproject.org/projects/pyramid/1.1/api/i18n.html#pyramid.i18n.get_locale_name
- C
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.