PHP 클래스 Prado\I18N\Translation

Provides translation using a static MessageFormatter.
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$formatters array The array of formatters. We define 1 formatter per translation catalog This is a class static variable.

공개 메소드들

메소드 설명
formatter ( $catalogue = 'messages' ) : MessageFormat Get the static formatter from this component.
init ( $catalogue = 'messages' ) Initialize the TTranslate translation components
saveMessages ( ) Save untranslated messages to the catalogue.

메소드 상세

formatter() 공개 정적인 메소드

Get the static formatter from this component.
또한 보기: localize()
public static formatter ( $catalogue = 'messages' ) : MessageFormat
리턴 Prado\I18N\core\MessageFormat formattter.

init() 공개 정적인 메소드

Initialize the TTranslate translation components
public static init ( $catalogue = 'messages' )

saveMessages() 공개 정적인 메소드

Save untranslated messages to the catalogue.
public static saveMessages ( )

프로퍼티 상세

$formatters 보호되어 있는 정적으로 프로퍼티

The array of formatters. We define 1 formatter per translation catalog This is a class static variable.
protected static array $formatters
리턴 array