"Juli statt July": lokalisierte Ausgabe von DateTime.Month() in plone
Jens Nachtigall <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
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