PHP Class Ouzo\Translator

Afficher le fichier Open project: letsdrink/ouzo Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
localize ( $text )
pseudoLocalize ( $text )
pseudoLocalizeText ( $text )
strtr_utf8 ( $text, $from, $to )

Method Details

__construct() public méthode

public __construct ( $language, $labels )

getIndex() public méthode

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 méthode

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

translateWithChoice() public méthode

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