patTemplate function that emulates gettext's behaviour
This can be used to create multi-lingual websites. When the template is read, all texts inside the Translation tags are extracted and written to a file called '$tmplname-default.ini'.
You should copy this file and translate all sentences. When the template is used the next time, the sentences will be replaced with their respective translations, according to the langanuge you set with:
- $tmpl->setOption( 'lang', 'de' );
$Id: Translate.php,v 1.6 2004/10/27 11:22:37 schst Exp $
Located in /includes/patTemplate/patTemplate/Function/Translate.php (line 48)
patTemplate_Module | --patTemplate_Function | --patTemplate_Function_Translate
reference to the patTemplate object that instantiated the module
Inherited from patTemplate_Function
patTemplate_Function::$type
Inherited from patTemplate_Module
patTemplate_Module::$_params
call the function
set a reference to the patTemplate object that instantiated the reader
Inherited From patTemplate_Function
patTemplate_Function::call()
patTemplate_Function::setReader()
Inherited From patTemplate_Module
patTemplate_Module::getName()
patTemplate_Module::getParam()
patTemplate_Module::setParams()
Documentation generated on Fri, 4 Mar 2005 13:57:26 +1000 by phpDocumentor 1.3.0RC3