PHP Class Lime\Helper\I18n

Inheritance: extends Lime\Helper
Afficher le fichier Open project: sjardim/Hugopit

Méthodes publiques

Свойство Type Description
$countries
$currencies
$locale current language
$locals

Méthodes publiques

Méthode Description
data ( string $lang = null ) : array Get language data
get ( string $key, array $alternative = null, $lang = null ) : string Get translated string by key
initialize ( )
load ( string $langfile, string $lang = null ) : boolean Load language files

Method Details

data() public méthode

Get language data
public data ( string $lang = null ) : array
$lang string language
Résultat array

get() public méthode

Get translated string by key
public get ( string $key, array $alternative = null, $lang = null ) : string
$key string translation key
$alternative array returns if $key doesn''t exist
Résultat string

initialize() public méthode

public initialize ( )

load() public méthode

Load language files
public load ( string $langfile, string $lang = null ) : boolean
$langfile string path to language file
$lang string language to merge to
Résultat boolean

Property Details

$countries public_oe static_oe property

public static $countries

$currencies public_oe static_oe property

public static $currencies

$locale public_oe property

current language
public $locale

$locals public_oe static_oe property

public static $locals