|
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 [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
Cake uses 'cake' i18n domain for translations in Form helper
__d('cake', 'January') Use console to extract translations `cake i18n extract` or create cake.po and add needed translations manually On Tuesday, August 14, 2012 10:46:58 AM UTC+2, Alexander Schiebel wrote: -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
Thanks a lot. This works perfectly :-)
Am Mittwoch, 15. August 2012 10:45:45 UTC+2 schrieb majna: Cake uses 'cake' i18n domain for translations in Form helper-- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
| Powered by Nabble | Edit this page |
