CakePHP 1.3 can handle nice Date/Time string formatting independently from Locales installed on the host OS.
You need to do some things, as explained in this blogpost
- Create a LC_TIME file for the language you want to support, e.g. /app/locale/de_DE/LC_TIME (see also CakePHP book)
- From your Linux system, copy everything between
LC_TIME
andEND LC_TIME
from/usr/share/i18n/locales/de_DE
into yourLC_TIME file
, plus the first two lines
escape_char /
comment_char %
- Now activate this language in your app: `Configure::write('Config.language','de_DE');
TimeHelper::i18nFormat()
will now observe your language.