My bad I assumed an English locale and that later you would translate. This
is starting to look ugly, so it's questionable if it isn't better to just
hardcode the months in a list but it would work:
{{import datetime}}
{{import locale}}
{{for m in [datetime.date(2000, m,
1).strftime('%B').decode(locale.getlocale()[1]).encode('utf-8') for m in
range(1, 13)]:}}
<option value='{{=m}}'>{{=m}}</option>
{{pass}}
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.