Monday, January 2, 2012

Cake 1.3 and localization of time and date

Hi all.
I am currently "struggling" with localizing my created and modified
values from db.

I am using the Time helper, and have tried to get it to output real
nice.

echo $time->niceShort($post['Post']['created']);

This gived me the Today, Yesterday, and Dec 29th 2011, 23:33

Translating of the Today and Yesterday I have done in my locale.po
file, so they are no problem, but I can not seem to get the Dec 29th
2011 to display as: 29 Des 2011 or similar.

How can I get it working? Any suggestions?
I have all, Jan -> Dec in locale.po file, but they do not translate
using time helper.

Any and all help! Much Appreciated!
Thanks!
-Tom

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: