public static function get($string, $lang = NULL) { if (!self::$_init) { I18n::init(); } if (!$lang) { // Use the global target language $lang = self::$lang; } // Load the translation table for this language $table = I18n::load($lang); // Return the translated string if it exists return Util::array_path($table, $string); }