<?php
class Lang
{
private static $array = [];
public static function word($word)
{
global $config, $user;
$language = ROOT . 'system/language/' . $config['language'] . '/package.ini';
if (file_exists($language))
{
self::$array = parse_ini_file($language);
return isset(self::$array[$word]) ? self::$array[$word] : $word;
}
else
{
return $word;
}
}
}