public function __construct() { parent::__construct(LANG_CODE); }
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(); }