Skip to content

Commit

Permalink
fix management of all errors messages
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Nov 28, 2013
1 parent 1ac5bd3 commit 5b2f9af
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions htdocs/core/modules/societe/mod_codeclient_elephant.php
Expand Up @@ -3,6 +3,7 @@
* Copyright (C) 2006-2009 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2007-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Philippe Grand <philippe.grand@atoo-net.com>
*
* 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
Expand Down Expand Up @@ -131,6 +132,16 @@ function getExample($langs,$objsoc=0,$type=-1)
$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)
{
Expand All @@ -144,6 +155,16 @@ function getExample($langs,$objsoc=0,$type=-1)
$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;
Expand Down

0 comments on commit 5b2f9af

Please sign in to comment.