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
How to set a language to a module
Re: How to set a language to a module
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
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'); ).
I will try to hardcode the language in the lang function if i find it (ex. $mod->Lang('FR'); ).