PHP Class Ublaboo\DataGrid\Localization\SimpleTranslator

Inheritance: extends Nette\Object, implements Nette\Localization\ITranslator
显示文件 Open project: ublaboo/datagrid

Public Methods

Method Description
__construct ( array $dictionary = NULL )
setDictionary ( array $dictionary ) Set translator dictionary
translate ( $message, $count = NULL ) : string Translates the given string

Method Details

__construct() public method

public __construct ( array $dictionary = NULL )
$dictionary array

setDictionary() public method

Set translator dictionary
public setDictionary ( array $dictionary )
$dictionary array

translate() public method

Translates the given string
public translate ( $message, $count = NULL ) : string
return string