i found it, i ll post it here for the posterity

in the app_controller :

uses('L10n');  // put this at the top of the controller before the
class declaration

// AppController constructor (php5 only coz it use __construct())
function AppController() {
        $lo = new L10n();
        $lo->get();
        parent::__construct();
}


then , in any of your actions, you can use something like

$this->set('language', Configure::read('Config.language'));

to get the language code value

Hope this will help someone

Gabriel


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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