Example:
파일 보기 프로젝트 열기: vjousse/symfony-1.4 1 사용 예제들
메소드 | 설명 | |
---|---|---|
chain ( Reader $reader ) : TranslateGettext | Creates a new TranslateGettext filter using the passed in Reader for instantiation. | |
getDir ( ) : PhingFile | Gets the root locale directory. | |
getDomain ( ) : string | Get the current domain. | |
getLocale ( ) : string | Gets the locale to use for translation. | |
read ( $len = null ) : mixed | Returns the filtered stream. | |
setDir ( PhingFile $dir ) | Sets the root locale directory. | |
setDomain ( string $domain ) | Set the text domain to use. | |
setLocale ( string $locale ) | Sets the locale to use for translation. |
메소드 | 설명 | |
---|---|---|
checkAttributes ( ) | Make sure that required attributes are set. | |
initEnvironment ( ) : void | Initialize the gettext/locale environment. | |
restoreEnvironment ( ) : void | Restores environment settings and locale. |
메소드 | 설명 | |
---|---|---|
_initialize ( ) | Parses the parameters if this filter is being used in "generic" mode. | |
xlateStringCallback ( array $matches ) : string | Performs gettext translation of msgid and returns translated text. |
public chain ( Reader $reader ) : TranslateGettext | ||
$reader | Reader | A Reader object providing the underlying stream.
Must not be null . |
리턴 | TranslateGettext | A new filter based on this configuration, but filtering the specified reader |
protected initEnvironment ( ) : void | ||
리턴 | void |
protected restoreEnvironment ( ) : void | ||
리턴 | void |