Cicode Programming Reference > Cicode Function Categories > Miscellaneous Functions Introduction > LanguageFileTranslate

LanguageFileTranslate

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.

Related Functions

SetLanguage, 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