Wednesday, February 4, 2009

Re: need Help on Internationalization in CakePHP

Hopefully this will shed some light on the things that are not covered
in the manual:
http://teknoid.wordpress.com/2008/11/28/cakephp-url-based-language-switching-for-i18n-and-l10n-internationalization-and-localization/


On Feb 4, 9:50 am, Elianora <delphine.ca...@gmail.com> wrote:
> Hi !
>
> I'm new with Cake and with gettext.
>
> I read [1] and [2] but I'm still lost ^^
>
> I don't understand how to choose the default language used in whole
> application.
> I name my locale dirs with the tree letter convention, I have eng and
> fre at the moment.
> The application doesn't require "live" language change, so I want to
> set the default language in a config file if possible, and just change
> it when installing the application in another language.
>
> I don't understand how cake "parses" the default.po files (I tested
> gettext with .mo files), is there anything in cache ?
> my app/tmp/cache dir contains 3 dirs only containing an "Empty" file;
> I think cake doesn't cache anything for me
> (chmod on app/tmp are set to 777)
>
> In [1], we could find this :
> $this->L10n = new L10n();
> $this->L10n->get("eng");
>
> but I don't know where to write those lines in my controller class.
>
> In [1], there's this line :
> App::import('Core', 'l10n');
>
> and in this group, I also find this :
> uses('L10n');
>
> is it the same (for different version of cakephp) or have I to use
> both ?
>
> hope someone could help me to understand and sorry for my bad english
>
> [1] :http://book.cakephp.org/view/161/Localization-Internationalization
> [2] :http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persis...
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: