Skip to content

Commit

Permalink
Add missing langs
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 13, 2015
1 parent e036e7b commit 0e81dc7
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
Expand Up @@ -79,6 +79,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
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);
Expand All @@ -91,7 +92,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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);
Expand All @@ -114,7 +116,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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));
Expand All @@ -125,7 +128,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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);
Expand All @@ -140,7 +144,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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);
Expand All @@ -151,7 +156,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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);
Expand All @@ -162,7 +168,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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);
Expand All @@ -184,7 +191,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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);
Expand All @@ -195,7 +203,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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);
Expand All @@ -206,7 +215,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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);
Expand All @@ -217,7 +227,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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);
Expand Down Expand Up @@ -421,7 +432,8 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
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));
Expand All @@ -432,6 +444,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
elseif ($action == 'ORDER_SUPPLIER_APPROVE')
{
$langs->load("other");
$langs->load("orders");

$object->actiontypecode='AC_OTH_AUTO';
Expand All @@ -443,6 +456,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf
}
elseif ($action == 'ORDER_SUPPLIER_REFUSE')
{
$langs->load("other");
$langs->load("orders");

$object->actiontypecode='AC_OTH_AUTO';
Expand Down

0 comments on commit 0e81dc7

Please sign in to comment.