Jelix 1.7.18

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.

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

Search results