[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
TTranslate, I18N translation component.
Author: | Wei Zhuo |
Copyright: | Copyright © 2005 PradoSoft |
License: | http://www.pradosoft.com/license/ |
Version: | $Id: TTranslate.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 256 lignes (7 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
TTranslate:: (15 méthodes):
getText()
setText()
setKey()
getKey()
getCatalogue()
setCatalogue()
setTrim()
getTrim()
getParameters()
hasParameter()
getParameter()
setParameter()
removeParameter()
render()
translateText()
Classe: TTranslate - X-Ref
TTranslate class.getText() X-Ref |
return: string the text to be localized/translated. |
setText($value) X-Ref |
Sets the text for localization. param: string the text for translation. |
setKey($value) X-Ref |
Set the key for message lookup. param: string key |
getKey() X-Ref |
Get the key for message lookup. return: string key |
getCatalogue() X-Ref |
Get the message catalogue. return: string catalogue. |
setCatalogue($value) X-Ref |
Set the message catalogue. param: string catalogue. |
setTrim($value) X-Ref |
Set the option to trim the contents. param: boolean trim or not. |
getTrim() X-Ref |
Trim the content or not. return: boolean trim or not. |
getParameters() X-Ref |
Returns the list of custom parameters. Custom parameters are name-value pairs that may subsititute translation place holders during rendering. return: TAttributeCollection the list of custom parameters |
hasParameter($name) X-Ref |
return: boolean whether the named parameter exists |
getParameter($name) X-Ref |
return: string parameter value, null if parameter does not exist |
setParameter($name,$value) X-Ref |
param: string parameter name param: string value of the parameter |
removeParameter($name) X-Ref |
Removes the named parameter. param: string the name of the parameter to be removed. return: string parameter value removed, null if parameter does not exist. |
render($writer) X-Ref |
renders the translated string. |
translateText($text, $subs) X-Ref |
Translates the text with subsititution. param: string text for translation param: array list of substitutions return: string translated text |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |