summaryrefslogtreecommitdiffstats
path: root/dictionary.php
blob: 00834a49a6b48cb42c9f760d95ae0cdd28af2df9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

class Dictionary{
	private static $dictionary;
	private static $langArray;
	
	function build(){
		self::$dictionary = json_decode(file_get_contents("dictionary.json"),true);
		foreach(self::$dictionary as $key => $text){
			self::$langArray[$key] = $text[LANG];
		}
	}

	public static function getArray(){
		return self::$langArray;
	}
	
}