Gestion de la traduction des noms et description des modules.
This commit is contained in:
parent
cb92249da4
commit
2b77ef3c6d
@ -237,9 +237,9 @@ foreach ($orders as $key => $value)
|
|||||||
}
|
}
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
print " <td>";
|
print " <td>";
|
||||||
print $objMod->name;
|
print $objMod->getName();
|
||||||
print "</td>\n <td>";
|
print "</td>\n <td>";
|
||||||
print $objMod->description;
|
print $objMod->getDesc();
|
||||||
print "</td>\n <td align=\"center\">";
|
print "</td>\n <td align=\"center\">";
|
||||||
|
|
||||||
if ($const_value == 1)
|
if ($const_value == 1)
|
||||||
@ -256,7 +256,8 @@ foreach ($orders as $key => $value)
|
|||||||
|
|
||||||
if ($const_value == 1)
|
if ($const_value == 1)
|
||||||
{
|
{
|
||||||
print "<a href=\"modules.php?action=reset&value=" . $modName . "&spe=" . $_GET["spe"] . "\">" . $langs->trans("Disable") . "</a></td>\n";
|
// Module actif
|
||||||
|
print "<a href=\"modules.php?id=".$objMod->numero."&action=reset&value=" . $modName . "&spe=" . $_GET["spe"] . "\">" . $langs->trans("Disable") . "</a></td>\n";
|
||||||
|
|
||||||
|
|
||||||
if ($objMod->config_page_url)
|
if ($objMod->config_page_url)
|
||||||
@ -290,7 +291,8 @@ foreach ($orders as $key => $value)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<a href=\"modules.php?action=set&value=" . $modName . "&spe=" . $_GET["spe"] . "\">" . $langs->trans("Activate") . "</a></td>\n <td> </td>\n";
|
// Module non actif
|
||||||
|
print "<a href=\"modules.php?id=".$objMod->numero."&action=set&value=" . $modName . "&spe=" . $_GET["spe"] . "\">" . $langs->trans("Activate") . "</a></td>\n <td> </td>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|||||||
@ -271,6 +271,8 @@ class DolibarrModules
|
|||||||
function getName()
|
function getName()
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
$langs->load("admin");
|
||||||
|
|
||||||
if ($langs->trans("Module".$this->numero."Name") != ("Module".$this->numero."Name"))
|
if ($langs->trans("Module".$this->numero."Name") != ("Module".$this->numero."Name"))
|
||||||
{
|
{
|
||||||
// Si traduction du nom du module existe
|
// Si traduction du nom du module existe
|
||||||
@ -291,6 +293,8 @@ class DolibarrModules
|
|||||||
function getDesc()
|
function getDesc()
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
$langs->load("admin");
|
||||||
|
|
||||||
if ($langs->trans("Module".$this->numero."Desc") != ("Module".$this->numero."Desc"))
|
if ($langs->trans("Module".$this->numero."Desc") != ("Module".$this->numero."Desc"))
|
||||||
{
|
{
|
||||||
// Si traduction de la description du module existe
|
// Si traduction de la description du module existe
|
||||||
|
|||||||
@ -45,6 +45,8 @@ Module75Name=Trips
|
|||||||
Module75Desc=Trips' management
|
Module75Desc=Trips' management
|
||||||
Module80Name=Shipping
|
Module80Name=Shipping
|
||||||
Module80Desc=Shippings' management
|
Module80Desc=Shippings' management
|
||||||
|
Module310Name=Members
|
||||||
|
Module310Desc=Members' foundation management
|
||||||
DictionnaryCompanyType=Juridical kinds of company
|
DictionnaryCompanyType=Juridical kinds of company
|
||||||
DictionnaryCanton=Cantons
|
DictionnaryCanton=Cantons
|
||||||
DictionnaryRegion=Regions
|
DictionnaryRegion=Regions
|
||||||
|
|||||||
@ -41,10 +41,12 @@ Module54Name=Contrats
|
|||||||
Module54Desc=Gestion des contrats
|
Module54Desc=Gestion des contrats
|
||||||
Module70Name=Interventions
|
Module70Name=Interventions
|
||||||
Module70Desc=Gestion des interventions
|
Module70Desc=Gestion des interventions
|
||||||
Module75Name=Déplacement
|
Module75Name=Déplacements
|
||||||
Module75Desc=Gestion des déplacements
|
Module75Desc=Gestion des déplacements
|
||||||
Module80Name=Expéditions
|
Module80Name=Expéditions
|
||||||
Module80Desc=Gestion des expéditions
|
Module80Desc=Gestion des expéditions
|
||||||
|
Module310Name=Adhérents
|
||||||
|
Module310Desc=Gestion des adhérents d'une association
|
||||||
DictionnaryCompanyType=Formes juridiques
|
DictionnaryCompanyType=Formes juridiques
|
||||||
DictionnaryCanton=Départements/Provinces/Cantons
|
DictionnaryCanton=Départements/Provinces/Cantons
|
||||||
DictionnaryRegion=Régions
|
DictionnaryRegion=Régions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user