Text and JavaScript behavior
Part of the text you see on screen originates from the ITP model itself (interact questions for example). Some of the texts are defined in ITP/OnLine. Localised versions of these texts are stored in the sub "resources". You can override the standard texts for a particular language by creating a "resources" folder in your application containing the following files:
- <lang>_custom.msg, this file contains texts like header and footer texts, titles and "supporting" interact text, such as "loading document...".
- <lang>_errors.msg, this file contains the texts of the error messages.
- <lang>_gui.msg, this file contains texts that are shown in e.g. the configuration pages.
- <lang>.js, this file contains texts that are used by JavaScript code that is executed at the client (such as the calendar control).
There are two javascript variables that determine behavior of the pages:
- numEditFormat determines whether numerical fields are shown in one or in two input boxes. In <lang>.js, assign 1 to this variable to show only one input box for a numerical field. The default value is 2, in which case two input boxes will be shown: one box on each side of the decimal point.
- fileEditActiveX is a boolean variable that determines whether or not an ActiveX-control will be used for file upload questions. By default this is the case (fileEditActiveX = true). If the variable is set to false, a native HTML file upload control will be used. In this case, the default value for the file upload question (i.e. the default provided in the model) will be ignored.
The Language Preference settings of your browser and the Default Locale and Locale Override settings of your application determine which files ITP/OnLine will use. The defaults for these resources can be found in the folder "resources" of the ITP/OnLine installation. When overriding them, they should be placed in a subfolder "resources" inside the application folder.