Module name/description specified in module descriptor
(modMyModule.class.php) is currently not localized (unless you use
the ModuleNNNName/Module inside generic admin.lang).
In order to allow use of module langs definition, only a
small change would be required, as the module langs file is
already loaded :
DolibarrModules.class.php :
function getName
Line 238 :
replace "return $this->name;" by "return
$langs->trans($this->name);"
function getDesc
Line 262 :
replace "return $this->description;" by "return
$langs->trans($this->description);"
With this change, you just need to put the keys towards your
module lang files inside your modMyModule.class.php.
$this->name = 'KeyModuleName';
$this->description = 'KeyModuleDescription';
$this->langfiles = array("address@hidden")
_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev