Cicode Programming Reference > Cicode Function Categories > String Functions Introduction > StrToLocalText

StrToLocalText

Converts a native string into the local version of that string. (The string needs to be contained within quotation marks, as shown in the example below.) The local version is taken from the current language database(as specified using the [Language]LocalLanguage parameter).

StrToLocalText(sText)

sText:

The string for which you would like the local translation returned. This string needs to be enclosed in quotation marks. For example:

"@(Motor Overload)"

Return Value

The local version of the text if it was found, otherwise the native text or "#MESS" is returned, depending on the setting of the [Language]DisplayError parameter.

Related Functions

LanguageFileTranslate, SetLanguage

Example

StrToLocalText("@(Motor Overload)");
! Returns the Local translation of Motor Overload.

See Also

String Functions