[Zope] ZopeTime in english
Peter Bengtsson
peter_bengtsson_temporary@yahoo.co.uk
Wed, 10 Oct 2001 19:04:12 +0100 (BST)
# Localization support
LOCALE_ID=None
...no.
It's a windows duoubleclick installation.
In the Python interpreter:
>>> DateTime().strftime('%A')
'Wednesday'
In a Python Script:
return context.ZopeTime().strftime('%A')
# and it returns: 'onsdag' (which is wednesday in
swedish)
(note also the difference in capitalization)
Where my problem originates is in a Python Product
where I also use DateTime; and get the bloody local
representation.
I could translate the swedish results to 'monday',
'tuesday' etc. but what if somebody installs my code
on their french machines?
Peter
--- Andreas Jung <andreas@zope.com> wrote:
> Looks like you are running Zope with enabled locale
> support (-L option).
>
> Andreas
> ----- Original Message -----
> From: "Peter Bengtsson" <mail@peterbe.com>
> To: <zope@zope.org>
> Sent: Sunday, October 07, 2001 22:47
> Subject: [Zope] ZopeTime in english
>
>
> since Zope 2.4.0 or was it Python 2.1, DateTime has
> changed considerably.
> Instead of returning "Monday" it now returns
> "m\xe5ndag" which is the
> escaped version of "måndag" which means monday in
> swedish.
> No matter what server I use I want it in english.
> How do I do that?
>
> Cheers, Peter
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
>
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
>
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
=====
peter_bengtsson_temporary@yahoo.co.uk is a temporary address that
I use to send until I get my email stuff together.
You can always continue to send to my real address which is
mail@peterbe.com
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie