/**
  * Constructs the translator and loads the translation file $file if it is set and exists.
  * @param string $locale
  * @param string $filename
  * @param bool $useCache
  */
 function __construct($locale, $filename = null, $useCache = true)
 {
     $this->UseCache = $useCache;
     if (isset($GLOBALS['eZSiteBasics'])) {
         $siteBasics = $GLOBALS['eZSiteBasics'];
         if (isset($siteBasics['no-cache-adviced']) && $siteBasics['no-cache-adviced']) {
             $this->UseCache = false;
         }
     }
     $this->BuildCache = false;
     parent::__construct(true);
     $this->Locale = $locale;
     $this->File = $filename;
     $this->Messages = array();
     $this->CachedMessages = array();
     $this->HasRestoredCache = false;
     $this->RootCache = false;
 }
 function __construct($max_chars = 3)
 {
     parent::__construct(false);
     $this->MaxChars = $max_chars;
     $this->Messages = array();
 }
 function __construct()
 {
     parent::__construct(false);
     $this->Messages = array();
 }
 function __construct($is_key_based)
 {
     parent::__construct($is_key_based);
     $this->Handlers = array();
 }