PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • How to proceed?
  • Translating the message during the input
  • Converting the character strings found in the code into multilingual messages
  • Browsing the messages to translate found in the different project elements
  • Performing a search within the translated messages
  • Finding and deleting the unused messages
  • Characteristics of the message to translate
  • Characteristics
  • Displaying a message in a non-supported language
  • Linked multilingual messages
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
When developing a multilingual application, you have the ability to translate the different messages displayed to the user (messages displayed by Info, YesNo, ... for example).
This translation is performed and entered in the window of translated messages.
Each translated message corresponds to a "resource". The same resource may be used several times, in different processes.
Note: See Multilingual applications for more details.
How to proceed?

Translating the message during the input

To translate the message during the input:
  1. Select the text to translate.
  2. Select "Translate" from the popup menu. The window for translating messages is displayed.
  3. Enter the translation of the message and validate.
    Versions 18 and later
    Note: If you are using Google Translation, a flag appears in the language caption ( ). A click on this flag allows you to display the menu used to translate with Google Translation. See Translating with Google Translation for more details.
    New in version 18
    Note: If you are using Google Translation, a flag appears in the language caption ( ). A click on this flag allows you to display the menu used to translate with Google Translation. See Translating with Google Translation for more details.
    Note: If you are using Google Translation, a flag appears in the language caption ( ). A click on this flag allows you to display the menu used to translate with Google Translation. See Translating with Google Translation for more details.
    Versions 21 and later
    The icon found in the language caption is used to display a menu for simplifying the translations. See Typing multilingual texts for more details.
    New in version 21
    The icon found in the language caption is used to display a menu for simplifying the translations. See Typing multilingual texts for more details.
    The icon found in the language caption is used to display a menu for simplifying the translations. See Typing multilingual texts for more details.
  4. An icon and a number are displayed on the right of the translated message. This number indicates the number of translations entered for the current message. The flag allows you to quickly access to the translation window.
    Versions 18 and later
    When the flag is hovered, a tooltip displays the different translations found for the string in all the project languages.
    New in version 18
    When the flag is hovered, a tooltip displays the different translations found for the string in all the project languages.
    When the flag is hovered, a tooltip displays the different translations found for the string in all the project languages.
Note: If your application supports languages that use specific character sets, you must enter the translation of the different messages by using these specific character sets. See Manage the specific character sets in a multilingual application for more details.

Converting the character strings found in the code into multilingual messages

To convert the character strings found in the code into multilingual messages:
  1. Select "Code .. Multilingual messages .. Convert the simple strings into multilingual messages".On the "Code" pane, in the "Languages" group, expand "Translate the strings" and select "Convert the simple strings into multilingual messages".
  2. Select the elements where the conversion must be performed.
  3. For each character string found, the editor proposes to convert (or not) this string into a multilingual message.
    Note: If "Re-use the existing messages" is checked, the identical multilingual messages will correspond to the same resource.
  4. Validate the conversion.

Browsing the messages to translate found in the different project elements

To browse the different messages to translate found in the project elements:
  1. Display the window for typing the translated messages (select "Code .. Translate the messages" or press [Ctrl]+[T]).Display the window for typing the translated messages: on the "Code" pane, in the "Languages" group, expand "Translate the strings" and select "Translate messages" (or press [Ctrl]+[T]).
  2. Select the element containing the resources (messages to translate).
  3. Use the arrow buttons to browse the resources. You have the ability to modify the messages or to add new messages at any time.

Performing a search within the translated messages

To perform a search in the translated messages:
  1. Enable the search ("Edit .. Search"). The "Find - Replace" pane is displayed.
  2. Specify the text to find.
  3. Select the "<Advanced>" element in the "In" combo box. The window for advanced search options is displayed.
  4. Select "Multilingual messages".
Note: In the window for translating messages, you also have the ability to click . The "Find - Replace" pane is displayed with all the necessary options.
  1. Enable the search: on the "Home" pane, in the "Find" group, expand "Find" and select "Find" (or press [CTRL] + [F]). The "Find - Replace" pane is displayed.
  2. Specify the text to find.
  3. Specify the options:
    • Search in the code.
    • In the advanced options ( ), specify that the search must be performed in the multilingual strings found in the code.
Note: You also have the ability to click found in the window for message translation. The "Find - Replace" pane is displayed with all the necessary options.

Finding and deleting the unused messages

To find and delete the unused messages:
  1. Select "Code .. Multilingual messages .. Find the unused messages". The wizard for optimizing the multilingual messages starts.On the "Code" pane, in the "Languages" group, expand "Translate the strings" and select "Find the unused messages". The wizard for optimizing the multilingual messages starts.
  2. Select the unused messages and validate the wizard to delete the selected messages.
Characteristics of the message to translate

Characteristics

  • A message displayed in an application must be translated into all the languages selected for the project.
  • A message can contain several lines.
  • A message can contains special characters (tabulation for example).
  • To enter special characters, you must enter the corresponding ASCII code. To do so, use the numeric keypad and enter the corresponding ASCII code (for example [Alt]+[09] for a tabulation).

Displaying a message in a non-supported language

At run time, if a message was not translated into the specified language (which means if the message is not associated with this language), the mechanism of preferred languages allows the information to be displayed in another language, close to the requested one.
Linked multilingual messages
A multilingual message can be copied/pasted at several locations in several processes of the same project.
These messages remain linked by default: the modification of a message also modifies the other linked messages.
Versions 20 and later
A specific pictogram on the flag indicates that the multilingual message is used in several locations in the code.
The pictogram of the flag indicates that this message is used in several locations in the code. Therefore, a modification will impact all the uses
The pictogram of the flag indicates that this message is used in several locations in the code. Therefore, a modification will impact all the uses
In this case, the window for managing the multilangual messages (opened by pressing the CTRL T keys on the message) is used to find out the different uses of the message ( ).
New in version 20
A specific pictogram on the flag indicates that the multilingual message is used in several locations in the code.
The pictogram of the flag indicates that this message is used in several locations in the code. Therefore, a modification will impact all the uses
The pictogram of the flag indicates that this message is used in several locations in the code. Therefore, a modification will impact all the uses
In this case, the window for managing the multilangual messages (opened by pressing the CTRL T keys on the message) is used to find out the different uses of the message ( ).
A specific pictogram on the flag indicates that the multilingual message is used in several locations in the code.
The pictogram of the flag indicates that this message is used in several locations in the code. Therefore, a modification will impact all the uses
The pictogram of the flag indicates that this message is used in several locations in the code. Therefore, a modification will impact all the uses
In this case, the window for managing the multilangual messages (opened by pressing the CTRL T keys on the message) is used to find out the different uses of the message ( ).
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment