Jelix 1.6.40

jBundle
in package

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

Tags
subpackage

core

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.
_loadResources()  : mixed
loads a given resource from its path.

Properties

Methods

__construct()

constructor

public __construct(jISelector $file, string $locale) : mixed
Parameters
$file : jISelector

selector of a properties file

$locale : string

the code lang

Return values
mixed

get()

get the translation

public get(string $key[, string $charset = null ]) : string
Parameters
$key : string

the locale key

$charset : string = null
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

Return values
mixed

_loadResources()

loads a given resource from its path.

protected _loadResources(mixed $fichier, mixed $charset) : mixed
Parameters
$fichier : mixed
$charset : mixed
Return values
mixed

Search results