WINDEV Concepts

Part 4: Advanced concept 139 Automatic error handling By default, automatic error handling windows are available in English and French. To translate them into another language, you must: 1.  Include the default error windows in your application. These windows and their WLanguage code are provided as examples in the "\Programs\ Data\Preset Windows\EN\Assert - Error - Exception" subdirectory. 2. Translate the different messages (see previous paragraph). User Groupware By default, the User Groupware is available in English and French. To translate an application that uses the User Groupware, you must choose a custom integration when configuring the User Groupware in your application. Reminder: To configure the User Groupware, go to the "Project" tab, "Project" group and click "User Groupware". During the custom integration, the different elements of the User Groupware are included via an internal component. You will only need to translate these elements when you translate the project. Remark: If necessary, when configuring the User Groupware, in the "General", tab, select "Manual start": this allows you to display a window to select the language of the application before the login window. Report viewer By default, the report viewer window is available in English and in French. To translate this window, you must integrate the windows corresponding to the report viewer into your application. These windows and their WLanguage code are available in the "\Programs\ Data\Preset Windows\EN\Report viewer" subdirectory. For more details, see the online help. Then, all you have to do is translate these windows. System menus WINDEV includes a default context menu for Edit and Table controls. This menu allows users to easily perform several operations. To translate these menus, you must have WDMSG. 3.4 Translating WLanguage code mes- sages In your code, several WLanguage functions allow you to communicate with the user via character strings. These messages must also be translated into the different languages of your application. To translate a character string typed in the code editor: 1. Select the character string to be translated. 2. Select "Translate" in the context menu of the selection. The window for translating messages is displayed. 3. Type the translation and validate. 4. The line of code is displayed in the editor. An icon appears to the right of the translated message. This icon indicates that the current message has multiple languages. The icon allows you to quickly access the translation window. When the icon is hovered over, a tooltip shows the different translations found for the string in all the project languages. Remark : To convert all the messages in your code into multilingual messages, go to the "Code" tab, "Languages" group, expand "Translate strings" and select "Convert simple strings into multilingual messages".

RkJQdWJsaXNoZXIy NDQ0OA==