JensDiemer

Mein Blog...

Tag Cloud 3dsmax [+] | 64bit [+] | addons [+] | Aptana [+] | ASUS [+] | AVI [+] | backup [+] | BeOS [+] | bilder [+] | blog [+] | browser [+] | CPU [+] | creole [+] | django [+] | django-dbpreferences [+] | django-dbtemplates [+] | django-tagging [+] | django-tools [+] | django-weave [+] | dokumentation [+] | Eclipse [+] | fernsehen [+] | firefox [+] | forms [+] | formset [+] | foto [+] | git [+] | Haiku [+] | handy [+] | hardware [+] | i18n | javascript [+] | jquery [+] | Kino [+] | lame [+] | links [+] | linux [+] | locales [+] | Loveparade [+] | mac [+] | markup [+] | mencoder [+] | merkwürdig [+] | modul [+] | mp3 [+] | netzwerk [+] | nokia [+] | online [+] | opensource [+] | ovi [+] | Petition [+] | pip [+] | plugin [+] | plugins [+] | podcast [+] | pydev [+] | pylucid [+] | pys60 [+] | python [+] | relase [+] | release [+] | router [+] | settings [+] | software [+] | sqlite [+] | standalone [+] | svn [+] | thunderbird [+] | Tip [+] | ubuntu [+] | ubuntuusers [+] | unittest [+] | video [+] | virtualbox [+] | virtualenv [+] | vista [+] | web [+] | webspace [+] | win7 [+] | windows [+] | xfce [+] | xp [+] | xvid [+]

↑ i18n von Datum/Zeitangaben in django...  #

Vor 1 Jahr, 5 Monate veröffentlicht, durch jens.

Eine recht simple Lösung, hat Martin in seinem Blog vorgestellt:

HTML
1
{{ entry.published|date:_("DATETIME_FORMAT") }}

Neben DATETIME_FORMAT gibt es noch: DATE_FORMAT, DATETIME_FORMAT, TIME_FORMAT, YEAR_MONTH_FORMAT und MONTH_DAY_FORMAT

Mehr Info's zum Thema: http://www.mahner.org/weblog/automatisch-lokalisierte-zeitformatierungen/

Sollte ich mal in PyLucid überall nutzten: http://trac.pylucid.net/ticket/261 ;)

(Last update: 20. Nov. 2009, 11:01 by jens.)

tags django [+] | i18n | pylucid [+]
0 comments...
Syndication-Feed-Format: