Appendix: Built-in Scripting Language Translation functions These functions are used to access the translation tool during runtime. Ext Translates specified text using the active translation file. Syntax Ext( strText ) strText The text to be translated. Returned value Returns the text translation using the active translation file. Examples SetLanguage This function sets the language of the project to one of the languages configured in the Translation Table. Syntax SetLanguage( numLanguageCode ) numLanguageCode The code for the langauge that you want to set as the current translation. The language must already be configured in the Translation Table .
Returned value This function returns the following possible values: Notes Language codes are defined by ISO 639-1 . Examples Set the language to "English – United States": SetLanguage( 1033 ) Set the language to "French – France":
SetLanguage( 1036 ) Page 546 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client Ext Translation Synchronous Supported Supported Supported Tag Name Expression Tag Ext( "Start" ) // Returned value if translating to Portuguese = "Iniciar" Tag Ext( "Stop" ) // Returned value if translating to German = "Anschlag" Function Group Execution Windows Embedded Thin Client SetLanguage Translation Synchronous Supported Supported Supported Value Description 0 Error 1 Success