ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Options and actions
  • Overview
  • Multilingual captions
  • Overview
  • To enter multilingual captions in a control
  • Multilingual input and display masks
  • Overview
  • Using multilingual input or display masks (special cases)
  • Multilingual images
  • Overview
  • Managing multilingual images
  • Multilingual help
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
In a multilingual application or site, the multilingual feature is proposed for the following elements:
  • the static controls.
  • the input and display masks.
  • the images.
  • the help.
At runtime, WINDEV, WINDEV Mobile or WEBDEV will automatically select the caption, the mask or the image corresponding to the runtime language of project.
Reminder: The default language of project is defined in the project description:
  • on the "Project" tab, in the "Project" group, click "Description".
  • go to the "Languages" tab.
For more details, see Multilingual applications.
Multilingual captions

Overview

For the following types of controls, a different caption can be defined for each language supported by the window, the page or the report:
  • Controls of a window or page:
    • static control,
    • edit control,
    • button,
    • ...
  • Controls in a report:
    • static control,
    • RTF,
    • Preset control,
    • Link.
When running the window/page or when printing the report, the caption corresponding to the runtime language of project (of window, page or report) will be automatically used.

To enter multilingual captions in a control

  • 1st method:
    1. Open the control description (select "Description" in the context menu).
    2. Enter the caption for each language supported by the window, page or report ("Caption" option).
  • 2nd method:
    1. Select the language in which the caption must be modified: on the "Display" tab, in the "Options" group, expand "Language displayed" and select the desired language.
    2. Select the control. The selection handles appear around the control.
    3. Click the control again. The mouse cursor turns into an input cursor.
      • in a window:
        Typing a caption in a window
      • in a report:
        Typing a caption in a report
      • in a page:
        Typing a caption in a page
    4. Enter the new text.
    5. Confirm by pressing the Enter key.
    6. Repeat the previous operations for all languages supported by the window, the page or the report.
Multilingual input and display masks

Overview

For the following types of controls, a different input mask or display mask can be defined for each language supported by the window, the page or the report:
  • Controls in a window:
    • combo box,
    • edit control,
    • table column.
  • Controls in a page:
    • formatted display control,
    • edit control,
    • table column.
  • Controls in a report:
    • Static control,
    • Calculated control,
    • Preset control,
    • table column.
For example, if your application supports French and English, the display mask for the "date" controls will not be the same in each language ('DD/MM/YY' in French and 'MM/DD/YY' in English).
When running the window/page or when printing the report, the mask corresponding to the runtime language of project (of window, page or report) will be automatically used. For more details, see Input masks and display masks.

Using multilingual input or display masks (special cases)

In some specific cases, the masks defined in the project description may not correspond to the desired result. In this case, you have the ability to define a specific multilingual mask.
To use multilingual input or display masks (special cases):
  1. Open the control description (select "Description" in the context menu).
  2. Click found beside the "Input mask" or "Mask" combo box ("General" or "Details" tab). By default, the same mask is associated with all the languages supported by the window, the page or the report.
  3. Select the mask for each language supported by the window, the page or the report.
  4. Validate. The "Multilingual value" caption appears in the control for defining the masks.
Remark: This operation can also be performed in the report controls. In this version, the controls in a report do not use the language options defined at project level.
Multilingual images

Overview

For the following types of controls, a specific image can be defined for each language supported by the window, the page or the report:
  • Controls in a window:
    • background image of buttons, sliders or tab panes.
    • image associated with the caption of button controls.
    • image of cursor in the slider controls.
    • image of image controls.
  • Controls in a page:
    • background image of button controls.
    • image of image controls, clickable image controls
    • background images of cell controls.
  • Controls in a report:
    • background image of all types of controls excluding the bar codes, the charts or the radio buttons.
    • image of image controls.
This option is useful for images with text that must be translated, for example.
When running the window/page or when printing the report, the mask corresponding to the runtime language of project (of window, page or report) will be automatically used.

Managing multilingual images

To manage multilingual images:
  1. Open the control description (select "Description" in the context menu).
  2. Click the icon next the "Image" or "Background image" option ("General" or "Style" tab), then select "Multilingual".
    By default, the same file is associated with all languages supported by the window, page or report.
  3. For each language, click the button, "Browse" option, and select the image corresponding to the language.
    Remark: The display options (display mode, transparency, position and symmetry) are applied to all selected images.
  4. Validate. The "Multilingual value" text appears in the image field.
Multilingual help
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/19/2023

Send a report | Local help