3 * Library to grab data from languages files
5 * WORK IN PROGRESS. There is some bugs when including the same
6 * file multiple time :(((
8 require_once('commandLine.inc');
11 /** Contain the list of languages available */
13 /** some messages for the current lang */
14 var $messages = array();
16 function __construct() {
22 $this->list = array();
23 $this->messages = array();
28 $this->list = array();
30 // available language files
31 $dir = opendir("$IP/languages");
32 while ($file = readdir($dir)) {
33 if (preg_match("/Messages([^.]*?)\.php$/", $file, $m)) {
34 $this->list[] = $m[1];
40 function getList() { return $this->list; }