jBundle
in package
a bundle contains all readed properties in a given language, and for all charsets.
Tags
Table of Contents
- $fic : jISelector
- $locale : string
- $_loadedCharset : mixed
- $_strings : mixed
- __construct() : mixed
- constructor.
- get() : string
- get the translation.
- _loadLocales() : mixed
- Loads the resources for a given locale/charset.
Properties
$fic
public
jISelector
$fic
Tags
$locale
public
string
$locale
Tags
$_loadedCharset
protected
mixed
$_loadedCharset
= array()
Tags
$_strings
protected
mixed
$_strings
= array()
Tags
Methods
__construct()
constructor.
public
__construct(jISelector $file, string $locale) : mixed
Parameters
- $file : jISelector
-
selector of a properties file
- $locale : string
-
the code lang
Tags
Return values
mixed —get()
get the translation.
public
get(string $key[, string $charset = null ]) : string
Parameters
- $key : string
-
the locale key
- $charset : string = null
Tags
Return values
string —the localized string
_loadLocales()
Loads the resources for a given locale/charset.
protected
_loadLocales(string $charset) : mixed
Parameters
- $charset : string
-
the charset