예제 #1
0
 public function __construct()
 {
     parent::__construct(LANG_CODE);
 }
예제 #2
0
 function __construct()
 {
     parent::__construct();
     $this->directory = dirname(__FILE__) . '/../translations/LOCALES';
     //
     // Read all supported languages from the directory
     //
     $d = dir($this->directory);
     while (false !== ($entry = $d->read())) {
         if (strlen($entry) == 2 && $entry != "..") {
             $this->supported_langs[] = $entry;
         }
     }
     $d->close();
 }