PHP Class Lime\Helper\I18n

Inheritance: extends Lime\Helper
Show file Open project: sjardim/Hugopit

Public Properties

Property Type Description
$countries
$currencies
$locale current language
$locals

Public Methods

Method 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 method

Get language data
public data ( string $lang = null ) : array
$lang string language
return array

get() public method

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
return string

initialize() public method

public initialize ( )

load() public method

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

Property Details

$countries public static property

public static $countries

$currencies public static property

public static $currencies

$locale public property

current language
public $locale

$locals public static property

public static $locals