Example:
Datei anzeigen Open project: vjousse/symfony-1.4 Class Usage Examples
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
checkAttributes ( ) | Make sure that required attributes are set. | |
initEnvironment ( ) : void | Initialize the gettext/locale environment. | |
restoreEnvironment ( ) : void | Restores environment settings and locale. |
Method | Description | |
---|---|---|
_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 . |
return | TranslateGettext | A new filter based on this configuration, but filtering the specified reader |
protected checkAttributes ( ) |
public getDir ( ) : PhingFile | ||
return | PhingFile |
protected initEnvironment ( ) : void | ||
return | void |
protected restoreEnvironment ( ) : void | ||
return | void |
public setDir ( PhingFile $dir ) | ||
$dir | PhingFile |