Re: "Juli statt July": lokalisierte Ausgabe von DateTime.Month() in plone

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
datetime_instance.strftime(' %B')

Allerdings müssen die Locales korrekt in zope.conf konfiguriert sein.
Ansonsten eigenes Dict mit den deutschen Monatsübersetzungen verwalten
und dann über die Monatsnr. draufzugreifen.

-aj


On 09.07.09 19:56, Jens Nachtigall wrote:
> Hallo,
>
> habe für einen Artikel als Freigabedatum 30. Juli (deutsch). Folgendes page template
> gibt allerdings "30 July" (englischer Monat) zurück. Wie kann ich die lokalisierte Variante 
> von DateTime().Month kriegen?
>
> <div tal:define="item_start  context/EffectiveDate;
>                   item_day  python: DateTime(item_start).day();
>                   item_month  python: DateTime(item_start).Month();">
>         <div>
>             Artikel erscheint am <span tal:replace="python: str(item_day) + '. ' + item_month">Veroeffentlichungsdatum</span>.
>         </div>
> <div>
>
> System ist Plone 3.2
>
> Grüße,
> Jens
>
>
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope
>   


-- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [email protected] - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 316 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.