mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Reduce text for graph title
This commit is contained in:
@@ -128,10 +128,6 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
);
|
||||
|
||||
|
||||
$paramtitle=$langs->transnoentitiesnoconv("Products").'/'.$langs->transnoentitiesnoconv("Services");
|
||||
if (empty($conf->produit->enabled)) $paramtitle=$langs->transnoentitiesnoconv("Services");
|
||||
if (empty($conf->service->enabled)) $paramtitle=$langs->transnoentitiesnoconv("Products");
|
||||
|
||||
$socid=empty($user->societe_id)?0:$user->societe_id;
|
||||
$userid=0; // No filter on user creation
|
||||
|
||||
@@ -190,7 +186,7 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
$px1->SetCssPrefix("cssboxes");
|
||||
//$px1->mode='depth';
|
||||
$px1->SetType(array('pie'));
|
||||
$px1->SetTitle($langs->trans("BoxProductDistributionFor", $paramtitle, $langs->transnoentitiesnoconv("Invoices")));
|
||||
$px1->SetTitle($langs->trans("ForObject", $langs->transnoentitiesnoconv("Invoices")));
|
||||
$px1->combine = 0.05;
|
||||
|
||||
$px1->draw($filenamenb, $fileurlnb);
|
||||
@@ -250,7 +246,7 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
$px2->SetCssPrefix("cssboxes");
|
||||
//$px2->mode='depth';
|
||||
$px2->SetType(array('pie'));
|
||||
$px2->SetTitle($langs->trans("BoxProductDistributionFor", $paramtitle, $langs->transnoentitiesnoconv("Proposals")));
|
||||
$px2->SetTitle($langs->trans("ForObject", $langs->transnoentitiesnoconv("Proposals")));
|
||||
$px2->combine = 0.05;
|
||||
|
||||
$px2->draw($filenamenb, $fileurlnb);
|
||||
@@ -311,7 +307,7 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
$px3->SetCssPrefix("cssboxes");
|
||||
//$px3->mode='depth';
|
||||
$px3->SetType(array('pie'));
|
||||
$px3->SetTitle($langs->trans("BoxProductDistributionFor", $paramtitle, $langs->transnoentitiesnoconv("Orders")));
|
||||
$px3->SetTitle($langs->trans("ForObject", $langs->transnoentitiesnoconv("Orders")));
|
||||
$px3->combine = 0.05;
|
||||
|
||||
$px3->draw($filenamenb, $fileurlnb);
|
||||
|
||||
@@ -72,7 +72,7 @@ BoxSuppliersOrdersPerMonth=Vendor Orders per month
|
||||
BoxProposalsPerMonth=Proposals per month
|
||||
NoTooLowStockProducts=No products are under the low stock limit
|
||||
BoxProductDistribution=Products/Services Distribution
|
||||
BoxProductDistributionFor=%s by %s
|
||||
ForObject=On %s
|
||||
BoxTitleLastModifiedSupplierBills=Vendor Invoices: last %s modified
|
||||
BoxTitleLatestModifiedSupplierOrders=Vendor Orders: last %s modified
|
||||
BoxTitleLastModifiedCustomerBills=Customer Invoices: last %s modified
|
||||
|
||||
Reference in New Issue
Block a user