/includes/patTemplate/patTemplate/Function/Translate.php

Description

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:

  1. $tmpl->setOption( 'lang', 'de' );

$Id: Translate.php,v 1.6 2004/10/27 11:22:37 schst Exp $

Classes
Class Description
patTemplate_Function_Translate patTemplate function that emulates gettext's behaviour

Documentation generated on Fri, 4 Mar 2005 13:57:25 +1000 by phpDocumentor 1.3.0RC3