PHP Class Ouzo\Translator

Mostrar archivo Open project: letsdrink/ouzo Class Usage Examples

Public Methods

Method Description
__construct ( $language, $labels )
getIndex ( $number ) * The plural rules are derived from code of the Zend Framework (2010-09-25), which is subject to the new BSD license (http://framework.zend.com/license/new-bsd).
translate ( $key, $params = [] )
translateWithChoice ( $key, $choice, $params = [] )

Private Methods

Method Description
localize ( $text )
pseudoLocalize ( $text )
pseudoLocalizeText ( $text )
strtr_utf8 ( $text, $from, $to )

Method Details

__construct() public method

public __construct ( $language, $labels )

getIndex() public method

Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) This method was taken from Symfony2 framework. Copyright (c) 2004-2014 Fabien Potencier.
public getIndex ( $number )

translate() public method

public translate ( $key, $params = [] )

translateWithChoice() public method

public translateWithChoice ( $key, $choice, $params = [] )