private static function LoadFileLang($file, $lang) { $fullFilename = "literals/" . $file . "." . $lang . ".json"; if (file_exists($fullFilename)) { $fileContents = @file_get_contents($fullFilename); $newLiterals = json_decode($fileContents, true); if (is_array($newLiterals)) { self::$literals = array_merge(self::$literals, $newLiterals); return true; } } return false; }