Hi Piotr,

unfortunately that won't work, yet.

What I did:

- add Configure::write('Config.language', 'ger'); to bootstrap.php

- add folder(s) app/locale/ger/LC_MESSAGES

- create default.po in that folder with the following content


msgid "January"
msgstr "Januar"

msgid "February"
msgstr "Februar"

msgid "March"
msgstr "Maerz"

msgid "April"
msgstr "April"

msgid "May"
msgstr "Mai"

msgid "June"
msgstr "Juni"

msgid "July"
msgstr "Juli"

msgid "August"
msgstr "August"

msgid "September"
msgstr "September"

msgid "October"
msgstr "Oktober"

msgid "November"
msgstr "November"

msgid "December"
msgstr "Dezember"



--> unfortunately that doesn't change anything in my views. Also
setting the locale with "setlocale(LC_ALL, "de_DE.utf8");" won't
change the month names in my datetime fields.


Maybe you know what I'm doing wrong?

On 27 Jul., 23:54, Piotr Kilczuk <[email protected]> wrote:
> Hello,
>
> > is it somehow possible to display the months of a datetime field in a
> > view in german?
>
> Sure.
>
> Set Config.language to ger and in app/locale/ger/LC_MESSAGES/default.po:
>
> msgid  "July"
> msgstr "Juli"
>
> msgid  "June"
> msgstr "Juni"
>
> etc.
>
> If you don't want to do it like this, just copy core form helper to
> app/views/helpers and edit the source.
>
> Regards,
> Piotr
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to