Class \Prado\I18N\TTranslateParameter
TTranslateParameter component should be used inside the TTranslate component to
allow parameter substitution.
For example, the strings "{greeting}" and "{name}" will be replace with the values of "Hello" and "World", respectively. The substitution string must be enclose with "{" and "}". The parameters can be further translated by using TTranslate.
<com:TTranslate>
{greeting} {name}!
<com:TTranslateParameter Key="name">World</com:TTranslateParameter>
<com:TTranslateParameter Key="greeting">Hello</com:TTranslateParameter>
</com:TTranslate>
Properties
-
Key, string, required.
Gets or sets the string in TTranslate to substitute. -
Trim, boolean,
Gets or sets an option to trim the contents of the TParam. Default is to trim the contents.
Class hierarchy
- \Prado\I18N\TTranslateParameter
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|