Fix missing translation
This commit is contained in:
parent
bd6f13e6ed
commit
bd81dec1a3
@ -41,7 +41,7 @@ class modContrat extends DolibarrModules
|
|||||||
*/
|
*/
|
||||||
function __construct($db)
|
function __construct($db)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf, $langs;
|
||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->numero = 54;
|
$this->numero = 54;
|
||||||
@ -118,10 +118,12 @@ class modContrat extends DolibarrModules
|
|||||||
|
|
||||||
// Exports
|
// Exports
|
||||||
//--------
|
//--------
|
||||||
|
$langs->load("contracts");
|
||||||
|
|
||||||
$r=1;
|
$r=1;
|
||||||
|
|
||||||
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
||||||
$this->export_label[$r]='ContractAndServices'; // Translation key (used only if key ExportDataset_xxx_z not found)
|
$this->export_label[$r]=$langs->trans('ContractsAndLine'); // Translation key (used only if key ExportDataset_xxx_z not found)
|
||||||
$this->export_icon[$r]='contract';
|
$this->export_icon[$r]='contract';
|
||||||
$this->export_permission[$r]=array(array("contrat","export"));
|
$this->export_permission[$r]=array(array("contrat","export"));
|
||||||
$this->export_fields_array[$r]=array('s.rowid'=>"IdCompany",'s.nom'=>'CompanyName','s.address'=>'Address','s.zip'=>'Zip','s.town'=>'Town','c.code'=>'CountryCode',
|
$this->export_fields_array[$r]=array('s.rowid'=>"IdCompany",'s.nom'=>'CompanyName','s.address'=>'Address','s.zip'=>'Zip','s.town'=>'Town','c.code'=>'CountryCode',
|
||||||
|
|||||||
@ -19,6 +19,7 @@ ServiceStatusLateShort=Expired
|
|||||||
ServiceStatusClosed=Closed
|
ServiceStatusClosed=Closed
|
||||||
ServicesLegend=Services legend
|
ServicesLegend=Services legend
|
||||||
Contracts=Contracts
|
Contracts=Contracts
|
||||||
|
ContractsAndLine=Contracts and line of contracts
|
||||||
Contract=Contract
|
Contract=Contract
|
||||||
NoContracts=No contracts
|
NoContracts=No contracts
|
||||||
MenuServices=Services
|
MenuServices=Services
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user