Add missing langs

This commit is contained in:
Laurent Destailleur 2015-04-13 09:24:39 +02:00
parent e036e7baf4
commit 0e81dc7c6c

View File

@ -79,6 +79,7 @@ class InterfaceActionsAuto extends DolibarrTriggers
if ($action == 'COMPANY_CREATE')
{
$langs->load("other");
$langs->load("companies");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("NewCompanyToDolibarr",$object->name);
@ -91,7 +92,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'COMPANY_SENTBYMAIL')
{
$langs->load("orders");
$langs->load("other");
$langs->load("orders");
if (empty($object->actiontypecode)) $object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) dol_syslog('Trigger called with property actionmsg2 on object not defined', LOG_ERR);
@ -114,7 +116,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'PROPAL_VALIDATE')
{
$langs->load("propal");
$langs->load("other");
$langs->load("propal");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("PropalValidatedInDolibarr",($object->newref?$object->newref:$object->ref));
@ -125,7 +128,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'PROPAL_SENTBYMAIL')
{
$langs->load("propal");
$langs->load("other");
$langs->load("propal");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("ProposalSentByEMail",$object->ref);
@ -140,7 +144,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'PROPAL_CLOSE_SIGNED')
{
$langs->load("propal");
$langs->load("other");
$langs->load("propal");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("PropalClosedSignedInDolibarr",$object->ref);
@ -151,7 +156,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'PROPAL_CLASSIFY_BILLED')
{
$langs->load("propal");
$langs->load("other");
$langs->load("propal");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("PropalClassifiedBilledInDolibarr",$object->ref);
@ -162,7 +168,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'PROPAL_CLOSE_REFUSED')
{
$langs->load("propal");
$langs->load("other");
$langs->load("propal");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("PropalClosedRefusedInDolibarr",$object->ref);
@ -184,7 +191,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'ORDER_CLOSE')
{
$langs->load("orders");
$langs->load("other");
$langs->load("orders");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("OrderDeliveredInDolibarr",$object->ref);
@ -195,7 +203,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'ORDER_CLASSIFY_BILLED')
{
$langs->load("orders");
$langs->load("other");
$langs->load("orders");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("OrderBilledInDolibarr",$object->ref);
@ -206,7 +215,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'ORDER_CANCEL')
{
$langs->load("orders");
$langs->load("other");
$langs->load("orders");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("OrderCanceledInDolibarr",$object->ref);
@ -217,7 +227,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'ORDER_SENTBYMAIL')
{
$langs->load("orders");
$langs->load("other");
$langs->load("orders");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("OrderSentByEMail",$object->ref);
@ -421,7 +432,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'ORDER_SUPPLIER_VALIDATE')
{
$langs->load("orders");
$langs->load("other");
$langs->load("orders");
$object->actiontypecode='AC_OTH_AUTO';
if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("OrderValidatedInDolibarr",($object->newref?$object->newref:$object->ref));
@ -432,6 +444,7 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'ORDER_SUPPLIER_APPROVE')
{
$langs->load("other");
$langs->load("orders");
$object->actiontypecode='AC_OTH_AUTO';
@ -443,6 +456,7 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
elseif ($action == 'ORDER_SUPPLIER_REFUSE')
{
$langs->load("other");
$langs->load("orders");
$object->actiontypecode='AC_OTH_AUTO';