Translation of month names in Form-Helper input fields
I am currently creating the prototyp of an international application. If I switch to the german version it correctly loads the translations from Locale/deu/LC_MESSAGES/default.po. In this file I have - for example - the following translation.
msgid "January"
msgstr "Jänner"
It works whereever I use __('January'), which is replaced by 'Jänner'.
But the Pull-Down-Menus (displaying the names of the month) generated by the Form-Helper are not translated so far.
I guess I have to implement this using LC_TIME, right?
Could anyone please give me a hint, how I could tune the Form-Helper to switch languages accordingly?
PS: I also tried to add the following line to the bootstrap-file.
setlocale(LC_ALL, 'de_DE.UTF8', 'de_DE', 'de', 'ge', 'deu');
But the Form-Helpers Monthnames are still in english.
Best whishes from Vienna, Alex
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home