메소드 | 설명 | |
---|---|---|
__construct ( String $config = null ) | Constructor | |
dump ( ) : array | dump: Dumps the contents of the Dictionary. | |
loadDictionary ( String $lang = null ) : array | loadDictionary: loads a language array from the Language folder. | |
loadFile ( String $file_to_load = null ) : array | loadFile: yeah, well, separated due to testing purposes :( | |
translate ( String $key ) : String | translate: Fetches a value from the Ditionary with an index provided. |
메소드 | 설명 | |
---|---|---|
initDictionary ( $config ) |
public __construct ( String $config = null ) | ||
$config | String | The code(file name in the Languages folder), or an array of key-value pairs of the language to use for translations |
public loadDictionary ( String $lang = null ) : array | ||
$lang | String | Selected language's code e.g. 'en' |
리턴 | array |
public translate ( String $key ) : String | ||
$key | String | Parameter which we want to translate |
리턴 | String |