From d024ec3daa23d48010a7f08980c6f2a44a51cacf Mon Sep 17 00:00:00 2001 From: Grand Philippe Date: Fri, 29 Nov 2013 11:29:39 +0100 Subject: [PATCH] fix management of all errors message --- .../societe/mod_codeclient_elephant.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/htdocs/core/modules/societe/mod_codeclient_elephant.php b/htdocs/core/modules/societe/mod_codeclient_elephant.php index c66045eca26..601b6743ad4 100644 --- a/htdocs/core/modules/societe/mod_codeclient_elephant.php +++ b/htdocs/core/modules/societe/mod_codeclient_elephant.php @@ -3,6 +3,7 @@ * Copyright (C) 2006-2009 Laurent Destailleur * Copyright (C) 2007-2012 Regis Houssin * Copyright (C) 2011 Juanjo Menent + * Copyright (C) 2013 Philippe Grand * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -131,6 +132,16 @@ class mod_codeclient_elephant extends ModeleThirdPartyCode $langs->load("errors"); $examplecust=$langs->trans($examplecust); } + if($examplecust=="ErrorCantUseRazIfNoYearInMask") + { + $langs->load("errors"); + $examplecust=$langs->trans($examplecust); + } + if($examplecust=="ErrorCantUseRazInStartedYearIfNoYearMonthInMask") + { + $langs->load("errors"); + $examplecust=$langs->trans($examplecust); + } } if ($type == 1 || $type == -1) { @@ -144,6 +155,16 @@ class mod_codeclient_elephant extends ModeleThirdPartyCode $langs->load("errors"); $examplesup=$langs->trans($examplesup); } + if($examplesup=="ErrorCantUseRazIfNoYearInMask") + { + $langs->load("errors"); + $examplesup=$langs->trans($examplesup); + } + if($examplesup=="ErrorCantUseRazInStartedYearIfNoYearMonthInMask") + { + $langs->load("errors"); + $examplesup=$langs->trans($examplesup); + } } if ($type == 0) return $examplecust;