From bdcb2b34e82cd6187298d7d6e8343b505f135906 Mon Sep 17 00:00:00 2001
From: sonikf <93765174+sonikf@users.noreply.github.com>
Date: Sun, 2 Jul 2023 02:16:09 +0300
Subject: [PATCH] fix stats translation
---
htdocs/societe/index.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php
index e3596f384d7..c5049e11d5f 100644
--- a/htdocs/societe/index.php
+++ b/htdocs/societe/index.php
@@ -151,16 +151,16 @@ if (!empty($conf->use_javascript_ajax) && ((round($third['prospect']) ? 1 : 0) +
$thirdpartygraph .= '
| ';
$dataseries = array();
if (isModEnabled('societe') && $user->hasRight('societe', 'lire') && empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && empty($conf->global->SOCIETE_DISABLE_PROSPECTS_STATS)) {
- $dataseries[] = array($langs->trans("Prospects"), round($third['prospect']));
+ $dataseries[] = array($langs->transnoentitiesnoconv("Prospects"), round($third['prospect']));
}
if (isModEnabled('societe') && $user->hasRight('societe', 'lire') && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS_STATS)) {
- $dataseries[] = array($langs->trans("Customers"), round($third['customer']));
+ $dataseries[] = array($langs->transnoentitiesnoconv("Customers"), round($third['customer']));
}
if (((isModEnabled('fournisseur') && $user->hasRight('fournisseur', 'facture', 'lire') && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || (isModEnabled('supplier_order') && $user->hasRight('supplier_order', 'lire')) || (isModEnabled('supplier_invoice') && $user->hasRight('supplier_invoice', 'lire'))) && empty($conf->global->SOCIETE_DISABLE_SUPPLIERS_STATS)) {
- $dataseries[] = array($langs->trans("Suppliers"), round($third['supplier']));
+ $dataseries[] = array($langs->transnoentitiesnoconv("Suppliers"), round($third['supplier']));
}
if (isModEnabled('societe')) {
- $dataseries[] = array($langs->trans("Others"), round($third['other']));
+ $dataseries[] = array($langs->transnoentitiesnoconv("Others"), round($third['other']));
}
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
$dolgraph = new DolGraph();
|