PHP 클래스 Ouzo\Translator

파일 보기 프로젝트 열기: letsdrink/ouzo 1 사용 예제들

공개 메소드들

메소드 설명
__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 = [] )

비공개 메소드들

메소드 설명
localize ( $text )
pseudoLocalize ( $text )
pseudoLocalizeText ( $text )
strtr_utf8 ( $text, $from, $to )

메소드 상세

__construct() 공개 메소드

public __construct ( $language, $labels )

getIndex() 공개 메소드

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 translate ( $key, $params = [] )

translateWithChoice() 공개 메소드

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