18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Examples<br />

Set the language to "English – United States":<br />

SetLanguage( 1033 )<br />

Set the language to "French – France":<br />

SetLanguage( 1036 )<br />

SetTranslationFile<br />

Sets the active translation file and translates all enabled text within the project.<br />

Function Group Execution Windows Embedded Thin Client<br />

SetTranslationFile Translation Synchronous Supported Supported Supported<br />

Syntax<br />

SetTranslationFile(strFileName{ | ,optStrColumnName })<br />

strFileName<br />

The name of a translation file<br />

optStrColumnName<br />

The name of the column from the translation file, which must be used to translate the texts in<br />

the project. When omitted, the second column from the translation file will be used by default.<br />

Returned value<br />

0 Success.<br />

−1<br />

−2<br />

−3<br />

Invalid number of parameters.<br />

Wrong parameter type.<br />

Translation file could not be found or opened.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag SetTranslationFile( "Portuguese.tra" )<br />

Tag SetTranslationFile( "German.tra" )<br />

Tag SetTranslationFile( "Mytranslation.csv" , "Portuguese" )<br />

Tag SetTranslationFile( "Mytranslation.csv" , "German" )<br />

Note: You must enable the Translation option from the Project Settings dialog for this function to<br />

work.<br />

Caution: You must have a translation file in the Translation Tool.<br />

<strong>InduSoft</strong> Web Studio Page 655

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!