From 1ab91249f86fbb38bc3434d4be606b2a54702423 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 9 May 2011 19:42:56 +0000 Subject: [PATCH] Qual: Removed deprecated functions --- htdocs/core/class/translate.class.php | 33 +++------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 8caa7675c08..4eda68ac443 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -171,16 +171,15 @@ class Translate { $modulename = (!empty($regs[1])?$regs[2]:''); } - // Check cache + // Check cache if (! empty($this->tab_loaded[$newdomain])) // File already loaded for this domain { - //dol_syslog("Translate::Load already loaded for ".$domain); + //dol_syslog("Translate::Load already loaded for newdomain=".$newdomain); return 0; } + $fileread=0; $langofdir=(empty($forcelangdir)?$this->defaultlang:$forcelangdir); - $fileread=0; - //dol_syslog("Translate::Load langofdir=".$langofdir); // Redefine alt $langarray=explode('_',$langofdir); @@ -330,32 +329,6 @@ class Translate { return 1; } - - /** - * Mark domain as not loaded to be able to load it again. - * @param domain File name to load (.lang file). Use @ before value if domain is in a module directory. - */ - function UnLoad($domain) - { - dol_syslog("Translate::UnLoad domain=".$domain." marked as not loaded", LOG_DEBUG); - $this->tab_loaded[$domain]=0; - } - - /** - * Return list of files already loaded into memory - * @return string List of files loaded into memory "main=1,errors=1,..." - */ - function list_domainloaded() - { - $ret='Loaded from '.join(',',$this->dir).': '; - foreach($this->tab_loaded as $key=>$val) - { - if ($ret) $ret.=','; - $ret.=$key.'='.$val; - } - return $ret; - } - /** * Return translated value of key. Search in lang file, then into database. * If not found, return key.