Classe: TTranslateParameter - X-Ref
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.
<code>
<com:TTranslate>
{greeting} {name}!
<com:TTranslateParameter Key="name">World</com:TTranslateParameter>
<com:TTranslateParameter Key="greeting">Hello</com:TTranslateParameter>
</com:TTranslate>
</code>
Namespace: System.I18N
Properties
- <b>Key</b>, string, <b>required</b>.
<br>Gets or sets the string in TTranslate to substitute.
- <b>Trim</b>, boolean,
<br>Gets or sets an option to trim the contents of the TParam.
Default is to trim the contents.
getKey()
X-Ref
|
Get the parameter substitution key.
return: string substitution key.
|
setKey($value)
X-Ref
|
Set the parameter substitution key.
param: string substitution key.
|
getTrim()
X-Ref
|
Trim the content or not.
return: boolean trim or not.
|