Page 1 of 1

How to set a language to a module

Posted: Fri Dec 16, 2011 1:36 pm
by drizzt
Hello,
i would like to know, how to set a language to a module, when a instanciate it this way :

$cge = cms_utils::get_module('CGExtensions');

I use $cge to generate a dropdown field of countries. But i would like to have them translated, as in other modules.

I look in CGExtensions.module.php , i found nothing about setting the language of the current object.


Thanks

Re: How to set a language to a module

Posted: Fri Dec 16, 2011 5:00 pm
by Dr.CSS
Not sure how it will work in this instance but most modules Help has lang='en_US' parameters...

Re: How to set a language to a module

Posted: Sun Dec 18, 2011 3:57 pm
by drizzt
Yes, i know that, but i'm looking for the php way of doing that.
I will try to hardcode the language in the lang function if i find it (ex. $mod->Lang('FR'); ).