From 22fbf7097da7db1db42b26d7083feaeffb37ba7d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 21 Nov 2006 20:02:49 +0000 Subject: [PATCH] =?UTF-8?q?Possibilit=E9=20de=20mettre=204=20param=E8tres?= =?UTF-8?q?=20dans=20chaine=20traduction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/translate.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/translate.class.php b/htdocs/translate.class.php index 0ef6958cd95..fa7c4193009 100644 --- a/htdocs/translate.class.php +++ b/htdocs/translate.class.php @@ -217,9 +217,9 @@ class Translate { * \param param3 chaine de param1 * \return string chaine traduite */ - function trans($str, $param1='', $param2='', $param3='') + function trans($str, $param1='', $param2='', $param3='', $param4='') { - return $this->transnoentities($str,htmlentities($param1),htmlentities($param2),htmlentities($param3)); + return $this->transnoentities($str,htmlentities($param1),htmlentities($param2),htmlentities($param3),htmlentities($param4)); } @@ -232,14 +232,15 @@ class Translate { * \param param1 chaine de param1 * \param param2 chaine de param1 * \param param3 chaine de param1 + * \param param4 chaine de param1 * \return string chaine traduite */ - function transnoentities($key, $param1='', $param2='', $param3='') + function transnoentities($key, $param1='', $param2='', $param3='', $param4='') { if ($this->getTransFromTab($key)) { // Si la traduction est disponible - return sprintf($this->tab_translate[$key],$param1,$param2,$param3); + return sprintf($this->tab_translate[$key],$param1,$param2,$param3,$param4); } return $key; }