jBundle

a bundle contains all readed properties in a given language, and for all charsets

package

jelix

subpackage

core

Methods

constructor

__construct(\jISelector $file, string $locale) 

Arguments

$file

\jISelector

selector of a properties file

$locale

string

the code lang

Loads the resources for a given locale/charset.

_loadLocales(string $charset) 

Arguments

$charset

string

the charset

loads a given resource from its path.

_loadResources( $fichier,  $charset) 

Arguments

$fichier

$charset

get the translation

get(string $key, string $charset = null) : string

Arguments

$key

string

the locale key

$charset

string

Response

string

the localized string

Properties

fic

fic : \jISelector
var

Type(s)

\jISelector

locale

locale : string
var

Type(s)

string

_loadedCharset

_loadedCharset : 

Type(s)

_strings

_strings : 

Type(s)