There is a section in the cookbook about localization:
http://book.cakephp.org/view/163/Localization-in-CakePHP

This is a function from one of my apps that should do the trick:

    /*
     * Sets the language
     */
    private function _setLanguage($lang = null) {
        if ($this->Cookie->read('lang') && !$this->Session-
>check('Config.language')) {
            $this->Session->write('Config.language', $this->Cookie-
>read('lang'));
        } else if (isset($lang) && ($lang !=  $this->Session-
>read('Config.language'))) {
            $this->Session->write('Config.language', $lang);
            $this->Cookie->write('lang', $lang, null, '20 days');
        }
        $this->set('currentLanguage', $lang);
    }



On Jul 7, 9:29 am, Yasir Arafat Hasib <[email protected]> wrote:
> Please help me in cakephp multilingual site. If you have any tutorial about
> this please send
>
> --
> Thanks & regards.
> ------------------------------------
> Yasir Arafat (Hasib)
> Software Engineer
> Epsilon Consulting and Development Services (ECDS)
> Contact Information:
> Cell : +8801816536901
> Web:http://arafats.info

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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