Path

ez components / documentation / api reference / trunk / templatetranslationtiein


eZ Components trunk

TemplateTranslationTiein: ezcTemplateTranslationProvider

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcTemplateTranslationProvider

ezcTemplateTranslationProvider provides functions that are called from the template compiler to either translate strings, or convert them into code. [source]

Method Summary

public static string compile( $string, $context, $arguments )
Compiles the string $string from the context $context with $arguments as variables into executable code.
public static string translate( $string, $context, $arguments )
Translates the string $string from the context $context with $arguments as variables.

Methods

compile

string compile( string $string, string $context, array(string=>mixed) $arguments )
Compiles the string $string from the context $context with $arguments as variables into executable code.
This static method translates a string, but inserts special code as replacements for the variables.

Parameters

Name Type Description
$string string  
$context string  
$arguments array(string=>mixed)  

translate

string translate( string $string, string $context, array(string=>mixed) $arguments )
Translates the string $string from the context $context with $arguments as variables.
This static method is called whenever a template directly needs a translated string with the variables substituted.

Parameters

Name Type Description
$string string  
$context string  
$arguments array(string=>mixed)  

Last updated: Tue, 02 Dec 2008