ReturnTranslationForProperty
Structure
ReturnTranslationForProperty(sFormName, sPropertyName)
Parameters
| Parameter | Type | Description
| sFormName | String | the name of the form that owns the propertysPropertyName | String | the component + property name that needs to be looked up for translation |
Return Value
String
Description
This function returns the translation for a specific form + property name combination in the language translation files. The translation is located within 'Forms' that are logged in the file-based translation files configured in the 'Main Interface & Languages' tab in Language Settings. Important: Note that only form-based text is not searched, only units. The form name can be seen in the Language Manager main drop-down above the translation grid. The property name is the value in the 'Properties' grid (component + . + property). If a translation for the phrase is not found, the original phrase is returned.
Example
bDeleteVar = True
if bDeleteVar then
ShowMessage(ReturnTranslationForProperty("AddEditCompanyForm", "sbDeleteGlobalVar.Hint"))
End If |