BBTranslations::getTranslation
Description
In BBj 9.00 and higher, this method returns the number of translations.
Syntax
Return Value |
Method |
string |
getTranslation(string key) |
string |
getTranslation(string key, string defaultValue) |
string |
getTranslation(string key, string defaultValue, boolean addIfNotFound) |
Parameters
Variable |
Description |
key |
Specifies the key to get a translation. |
defaultValue |
Specifies the return value if the key is not found. By default, the key will be returned when not found. |
addIfNotFound |
TRUE (1) if the key with the defaultValue should be added when not found. |
Return Value
If a translation is found with that passed key, then the translation value is returned. If not found and a default value was specified, the default value will be returned. If not found and a default value was not specified, the passed in key will be returned. When not found, they key and default can be optionally added to the translations.
Remarks
None.
Example
|