__construct() __construct(string $lang = null, string $dir = null) : \Pop\I18n\I18n Constructor Instantiate the I18n object Parameters string $lang string $dir Returns \Pop\I18n\I18n
loadFile() loadFile(string $langFile) : void Load language content from an XML file Parameters string $langFile Throws \Pop\I18n\Exception
__() __(string $str, string|array $params = null) : string Return the translated string Parameters string $str string|array $params Returns string
_e() _e(string $str, string|array $params = null) : void Echo the translated string Parameters string $str string|array $params
getLanguages() getLanguages(string $dir) : array Get languages from the XML files Parameters string $dir Returns array
translate() translate(string $str, string|array $params = null) : string Translate and return the string Parameters string $str string|array $params Returns string