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;