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 />

Translation functions<br />

These functions are used to access the translation tool during runtime.<br />

Ext<br />

Translates specified text using the active translation file.<br />

Function Group Execution Windows Embedded Thin Client<br />

Ext Translation Synchronous Supported Supported Supported<br />

Syntax<br />

Ext(strText)<br />

strText<br />

The text to be translated.<br />

Returned value<br />

Returns the text translation using the active translation file.<br />

Examples<br />

Tag Name<br />

Tag<br />

Tag<br />

Expression<br />

Ext( "Start" ) // Returned value if translating to Portuguese = "Iniciar"<br />

Ext( "Stop" ) // Returned value if translating to German = "Anschlag"<br />

SetLanguage<br />

This function sets the language of the project to one of the languages configured in the Translation Table.<br />

Function Group Execution Windows Embedded Thin Client<br />

SetLanguage Translation Synchronous Supported Supported Supported<br />

Syntax<br />

SetLanguage(numLanguageCode)<br />

numLanguageCode<br />

The code for the langauge that you want to set as the current translation. The language must<br />

already be configured in the Translation Table.<br />

Returned value<br />

This function returns the following possible values:<br />

Value<br />

Description<br />

0 Error<br />

1 Success<br />

Notes<br />

Language codes are defined by ISO 639-1.<br />

Page 654<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!