diff --git a/htdocs/includes/triggers/interface_webcal.class.php b/htdocs/includes/triggers/interface_webcal.class.php index 59077a3e1c8..7cdd812bd0a 100644 --- a/htdocs/includes/triggers/interface_webcal.class.php +++ b/htdocs/includes/triggers/interface_webcal.class.php @@ -117,8 +117,9 @@ class InterfaceWebCal if ($action == 'ACTION_CREATE') { dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id); + $langs->load("other"); - // Initialisation donnees (date,duree,nom_societe,libelle) + // Initialisation donnees (date,duree,texte,desc) if ($object->type_id == 5 && $object->contact->fullname) { $libellecal =$langs->trans("TaskRDVWith",$object->contact->fullname)."\n"; @@ -144,8 +145,9 @@ class InterfaceWebCal if ($action == 'COMPANY_CREATE') { dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id); - - // Initialisation donnees (date,duree,nom_societe,libelle) + $langs->load("other"); + + // Initialisation donnees (date,duree,texte,desc) $this->date=time(); $this->duree=0; $this->texte=$langs->trans("NewCompanyToDolibarr",$object->nom); @@ -159,27 +161,70 @@ class InterfaceWebCal if ($action == 'CONTRACT_VALIDATE') { dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id); + $langs->load("other"); + + // Initialisation donnees (date,duree,texte,desc) + $this->date=time(); + $this->duree=0; + $this->texte=$langs->trans("ContractValidatedInDolibarr",$object->ref); + $this->desc=$langs->trans("ContractValidatedInDolibarr",$object->ref); + $this->desc.="\n".$langs->trans("ValidatedBy").': '.$user->code; } if ($action == 'CONTRACT_CANCEL') { dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id); + $langs->load("other"); + + $this->date=time(); + $this->duree=0; + $this->texte=$langs->trans("ContractCanceledInDolibarr",$object->ref); + $this->desc=$langs->trans("ContractCanceledInDolibarr",$object->ref); + $this->desc.="\n".$langs->trans("CanceledBy").': '.$user->code; } if ($action == 'CONTRACT_CLOSE') { dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id); + $langs->load("other"); + + $this->date=time(); + $this->duree=0; + $this->texte=$langs->trans("ContractClosedInDolibarr",$object->ref); + $this->desc=$langs->trans("ContractClosedInDolibarr",$object->ref); + $this->desc.="\n".$langs->trans("ClosedBy").': '.$user->code; } if ($action == 'BILL_VALIDATE') { dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id); + $langs->load("other"); + + $this->date=time(); + $this->duree=0; + $this->texte=$langs->trans("InvoiceValidatedInDolibarr",$object->number); + $this->desc=$langs->trans("InvoiceValidatedInDolibarr",$object->number); + $this->desc.="\n".$langs->trans("ValidatedBy").': '.$user->code; } if ($action == 'BILL_PAYED') { dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id); + $langs->load("other"); + + $this->date=time(); + $this->duree=0; + $this->texte=$langs->trans("InvoicePayedInDolibarr",$object->number); + $this->desc=$langs->trans("InvoicePayedInDolibarr",$object->number); + $this->desc.="\n".$langs->trans("EditedBy").': '.$user->code; } if ($action == 'BILL_CANCELED') { dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id); + $langs->load("other"); + + $this->date=time(); + $this->duree=0; + $this->texte=$langs->trans("InvoiceCanceledInDolibarr",$object->number); + $this->desc=$langs->trans("InvoiceCanceledInDolibarr",$object->number); + $this->desc.="\n".$langs->trans("CanceledBy").': '.$user->code; } // Ajoute entrée dans webcal diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang index 65c881f02ef..1d10756a2e1 100644 --- a/htdocs/langs/en_US/other.lang +++ b/htdocs/langs/en_US/other.lang @@ -1,8 +1,5 @@ # Dolibarr language file - en_US - other Calendar=Calendar -LoginWebcal=Login for Webcalendar -AddCalendarEntry=Add entry in calendar -ErrorWebcalLoginNotDefined=The Webcalendar login associated to your Dolibarr login %s is not defined. ErrorPasswordDiffers=Passwords differs, please type them again. ErrorForbidden=Access forbidden.
You try to access to a page, area or feature without being in an authenticated session or that is not allowed to your user. ErrorForbidden2=Permission for this login can be defined by your Dolibarr administrator from menu %s->%s. @@ -37,4 +34,14 @@ CreateBookmark=Create bookmark SetHereATitleForLink=Set here a title for bookmark UseAnExternalHttpLinkOrRelativeDolibarrLink=Use an external http URL or a relative Dolibarr URL ChooseIfANewWindowMustBeOpenedOnClickOnBookmark=Choose if page opened by link must appear on current or new window -NewCompanyToDolibarr=Company %s added into Dolibarr \ No newline at end of file +##### Webcal ##### +LoginWebcal=Login for Webcalendar +AddCalendarEntry=Add entry in calendar +ErrorWebcalLoginNotDefined=The Webcalendar login associated to your Dolibarr login %s is not defined. +NewCompanyToDolibarr=Company %s added into Dolibarr +ContractValidatedInDolibarr=Contract %s validated in Dolibarr +ContractCanceledInDolibarr=Contract %s canceled in Dolibarr +ContractClosedInDolibarr=Contract %s closed in Dolibarr +InvoiceValidatedInDolibarr=Invoice %s validated in Dolibarr +InvoicePayedInDolibarr=Invoice %s changed to payed in Dolibarr +InvoiceCanceledInDolibarr=Invoice %s canceled in Dolibarr \ No newline at end of file diff --git a/htdocs/langs/fr_FR/other.lang b/htdocs/langs/fr_FR/other.lang index b3817ac740f..c68ff737452 100644 --- a/htdocs/langs/fr_FR/other.lang +++ b/htdocs/langs/fr_FR/other.lang @@ -1,8 +1,5 @@ # Dolibarr language file - fr_FR - other Calendar=Calendrier -LoginWebcal=Login Webcalendar -AddCalendarEntry=Ajouter entrée dans le calendrier -ErrorWebcalLoginNotDefined=Le login Webcalendar associé à votre login Dolibarr %s n'est pas défini. ErrorPasswordDiffers=Les mots de passe ne sont pas identiques, veuillez les saisir à nouveau ErrorForbidden=Accès non autorisé.
Vous essayez d'accéder à une page, zone ou fonction sans être au sein d'une session authentifiée ou qui n'est pas autorisée pour votre compte utilisateur. ErrorForbidden2=Les permissions pour ce login peuvent être attribuées par l'administrateur Dolibarr via le menu %s -> %s. @@ -37,4 +34,14 @@ CreateBookmark=Cr SetHereATitleForLink=Saisir ici un titre pour le marque page UseAnExternalHttpLinkOrRelativeDolibarrLink=Saisir une URL http externe ou une URL Dolibarr relative ChooseIfANewWindowMustBeOpenedOnClickOnBookmark=Choisir si le raccourci doit ouvrir la page dans une nouvelle fenêtre ou fenêtre courante -NewCompanyToDolibarr=Société %s ajoutée dans Dolibarr \ No newline at end of file +##### Webcal ##### +LoginWebcal=Login Webcalendar +AddCalendarEntry=Ajouter entrée dans le calendrier +ErrorWebcalLoginNotDefined=Le login Webcalendar associé à votre login Dolibarr %s n'est pas défini. +NewCompanyToDolibarr=Société %s ajoutée dans Dolibarr +ContractValidatedInDolibarr=Contrat %s validé dans Dolibarr +ContractCanceledInDolibarr=Contrat %s annulé dans Dolibarr +ContractClosedInDolibarr=Contrat %s fermé dans Dolibarr +InvoiceValidatedInDolibarr=Facture %s validé dans Dolibarr +InvoicePayedInDolibarr=Facture %s passé à payé dans Dolibarr +InvoiceCanceledInDolibarr=Facture %s annulée dans Dolibarr \ No newline at end of file