Jelix 1.8.13

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

$_loadedCharset

protected mixed $_loadedCharset = 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

Tags
Return values
mixed

Search results