From 0e81dc7c6c95c9b7ddd848aefef71dcc74aa8b56 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 13 Apr 2015 09:24:39 +0200 Subject: [PATCH] Add missing langs --- ...terface_50_modAgenda_ActionsAuto.class.php | 36 +++++++++++++------ 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php index 0ab64d406c8..46a6cd0daa6 100644 --- a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php +++ b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php @@ -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';