Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

LanguageFileTranslate

  • Last UpdatedJul 18, 2023
  • 1 minute read

Translates an ASCII file into a local language. Use this function to translate RTF reports for viewing on client screens.

The local language used by this function is specified by the [Language]LocalLanguage parameter. You need to set this parameter accordingly.

Syntax

LanguageFileTranslate(sSourceFile, sDestFile)

sSourceFile:

The name of the ASCII file containing multi-language text, which will be copied and translated. You should specify the full path or use path substitution. The path and name should be contained within quotation marks.

sDestFile:

The name of the destination file which will be created/ replaced with the local/translated version of the source file. You should specify the full path or use path substitution. The path and name should be contained within quotation marks.

Return Value

1 if successful, otherwise 0.

StrToLocalText

Example

/* Translates the text in Shift.RTF and saves it in LShift.RTF. */
LanguageFileTranslate("c:\MyApplication\data\Shift.RTF","c:\MyApplication\data\
LShift.RTF");
/* Translates the text in [Data]:Shift.RTF and saves it in
[LocalData]:LShift.RTF. */
LanguageFileTranslate("[Data]:Shift.RTF","[LocalData]:LShift.RTF"
);

See Also

Miscellaneous Functions

In This Topic
TitleResults for “How to create a CRG?”Also Available in