Manage translation on workboard
This commit is contained in:
parent
29d11d7aba
commit
c929e1b3a5
@ -147,7 +147,7 @@ if ($user->societe_id == 0)
|
|||||||
'Commande',
|
'Commande',
|
||||||
'Facture',
|
'Facture',
|
||||||
'LigneTel');
|
'LigneTel');
|
||||||
// Clé de tableau retourné par la methode load_state_bord pour chaque ligne
|
// Clé de tableau retourné par la methode load_state_board pour chaque ligne
|
||||||
$keys=array('customers',
|
$keys=array('customers',
|
||||||
'prospects',
|
'prospects',
|
||||||
'suppliers',
|
'suppliers',
|
||||||
@ -169,17 +169,17 @@ if ($user->societe_id == 0)
|
|||||||
'order',
|
'order',
|
||||||
'bill',
|
'bill',
|
||||||
'phoning');
|
'phoning');
|
||||||
// Titre des lignes du tableau de bord
|
// Translation keyword
|
||||||
$titres=array($langs->trans("Customers"),
|
$titres=array("Customers",
|
||||||
$langs->trans("Prospects"),
|
"Prospects",
|
||||||
$langs->trans("Suppliers"),
|
"Suppliers",
|
||||||
$langs->trans("Members"),
|
"Members",
|
||||||
$langs->trans("Products"),
|
"Products",
|
||||||
$langs->trans("Services"),
|
"Services",
|
||||||
$langs->trans("CommercialProposals"),
|
"CommercialProposals",
|
||||||
$langs->trans("CustomersOrders"),
|
"CustomersOrders",
|
||||||
$langs->trans("BillsCustomers"),
|
"BillsCustomers",
|
||||||
$langs->trans("Lignes de téléphonie suivis"));
|
"Lignes de téléphonie suivis");
|
||||||
// Lien des lignes du tableau de bord
|
// Lien des lignes du tableau de bord
|
||||||
$links=array(DOL_URL_ROOT.'/comm/clients.php',
|
$links=array(DOL_URL_ROOT.'/comm/clients.php',
|
||||||
DOL_URL_ROOT.'/comm/prospect/prospects.php',
|
DOL_URL_ROOT.'/comm/prospect/prospects.php',
|
||||||
@ -191,6 +191,17 @@ if ($user->societe_id == 0)
|
|||||||
DOL_URL_ROOT.'/commande/liste.php?mainmenu=commercial',
|
DOL_URL_ROOT.'/commande/liste.php?mainmenu=commercial',
|
||||||
DOL_URL_ROOT.'/compta/facture.php?mainmenu=accountancy',
|
DOL_URL_ROOT.'/compta/facture.php?mainmenu=accountancy',
|
||||||
DOL_URL_ROOT.'/telephonie/ligne/index.php');
|
DOL_URL_ROOT.'/telephonie/ligne/index.php');
|
||||||
|
// Translation lang files
|
||||||
|
$langfile=array("bills",
|
||||||
|
"prospects",
|
||||||
|
"suppliers",
|
||||||
|
"members",
|
||||||
|
"products",
|
||||||
|
"produts",
|
||||||
|
"propal",
|
||||||
|
"orders",
|
||||||
|
"bills",
|
||||||
|
"");
|
||||||
|
|
||||||
//print memory_get_usage()."<br>";
|
//print memory_get_usage()."<br>";
|
||||||
|
|
||||||
@ -210,9 +221,12 @@ if ($user->societe_id == 0)
|
|||||||
$boardloaded[$classe]=$board;
|
$boardloaded[$classe]=$board;
|
||||||
}
|
}
|
||||||
else $board=$boardloaded[$classe];
|
else $board=$boardloaded[$classe];
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td width="16">'.img_object($titres[$key],$icons[$key]).'</td>';
|
if ($langfile[$key]) $langs->load($langfile[$key]);
|
||||||
print '<td>'.$titres[$key].'</td>';
|
$title=$langs->trans($titres[$key]);
|
||||||
|
print '<tr '.$bc[$var].'><td width="16">'.img_object($title,$icons[$key]).'</td>';
|
||||||
|
print '<td>'.$title.'</td>';
|
||||||
print '<td align="right"><a href="'.$links[$key].'">'.$board->nb[$val].'</a></td>';
|
print '<td align="right"><a href="'.$links[$key].'">'.$board->nb[$val].'</a></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user