Passa al contenuto principale

ReturnEitherTranslation

Structure

ReturnEitherTranslation(sEnglishPhrase, bDBFirst)

Parameters

| Parameter | Type | Description
| sEnglishPhrase | String | the name of the phrase that needs to be returned in translated form for the current language.bDBFirst | Boolean | Whether |

Return Value

String

Description

This function returns the translation for an English phrase for the currently selected language. The translation is located by querying either ReturnFileTranslation or ReturnDBTranslation. The bDBFirst parameter determines whether the ReturnDBTranslation function is called first or second. If the translation is found in the first function, it is returned. The second function is called if no translation is found in the first function. If no translation is still found, then the original phrase is returned.

Example

bAwaitingRepair = True

if bAwaitingRepair then

ShowMessage(ReturnEitherTranslation("Awaiting Repair", True))

End If |