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();
it's what i tried :
Configure::read('Config.language');
$this->Session->read('Config.language');
Gab
On Jun 13, 1:56 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 6/13/07, solidgumby <[EMAIL PROTECTED]> wrote:
>
> > I tried to instanciate an L10n object and use the get method but
> >
On 6/13/07, solidgumby <[EMAIL PROTECTED]> wrote:
> I tried to instanciate an L10n object and use the get method but
> noting is returned. I also tried to read it with Configure::read and
> Session->read as L10n is supposed to write the setting there, but no
> luck.
did you try to read Config.Lan
How do i get the language value detected by the L10n class ?
I tried to instanciate an L10n object and use the get method but
noting is returned. I also tried to read it with Configure::read and
Session->read as L10n is supposed to write the setting there, but no
luck.
Thanks
Gabriel
--~--~-