diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 3769abc6669..321debc5644 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2010 Destailleur Laurent + * Copyright (C) 2004-2012 Destailleur Laurent * Copyright (C) 2005-2010 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -40,9 +40,9 @@ class Translate { var $charset_output='UTF-8'; // Codage used by "trans" method outputs var $tab_translate=array(); // Array of all translations key=>value - var $tab_loaded=array(); // Array to store result after loading each language file + private $_tab_loaded=array(); // Array to store result after loading each language file - var $cache_labels=array(); // Cache for labels return by trans method + var $cache_labels=array(); // Cache for labels return by getLabelFromKey method @@ -179,7 +179,7 @@ class Translate { } // Check cache - if (! empty($this->tab_loaded[$newdomain])) // File already loaded for this domain + if (! empty($this->_tab_loaded[$newdomain])) // File already loaded for this domain { //dol_syslog("Translate::Load already loaded for newdomain=".$newdomain); return 0; @@ -314,9 +314,9 @@ class Translate { if ($alt == 2) { - if ($fileread) $this->tab_loaded[$newdomain]=1; // Set domain file as loaded + if ($fileread) $this->_tab_loaded[$newdomain]=1; // Set domain file as loaded - if (empty($this->tab_loaded[$newdomain])) $this->tab_loaded[$newdomain]=2; // Marque ce fichier comme non trouve + if (empty($this->_tab_loaded[$newdomain])) $this->_tab_loaded[$newdomain]=2; // Marque ce fichier comme non trouve } // Check to be sure that SeparatorDecimal differs from SeparatorThousand