Tuto WINDEV 25

318 Part 4: Full application with data Localizing controls A control can display various information to the user: • a caption, • a help message, • an image, ... This information must be translated. This information is accessible in the different tabs of the description window of control. ▶ For our example, we are going to translate the first pane of Tab control. 1. Double-click the Tab control to display its description window. 2.  In the "General" tab of description window, select the first tab "List of products". 3.  In the "Description of static pane" section, you can: • type the translation for the pane caption: "Liste des produits". • define a specific image for the tab pane according to the language (as already done before). • define a tooltip for each language. 4. Close the description window of control. Localizing a programming message All messages found in your program can be translated into several languages. In our example, selecting the "Exit" menu displays the message "Exit from the application". We are going to translate this message. ▶ To translate the message of menu option: 1. Display the code of menu option: • Expand the menu in the editor. • Select the "Exit" option. • Select "Code" from the popup menu (right mouse click). 2.  To translate this type of message, position the cursor in the "Exit from application?" string and press Ctrl + T. On the "Code" pane, in the "Languages" group, you can also expand "Translate strings" and select "Translate messages".

RkJQdWJsaXNoZXIy NDQ0OA==