|
|
|
|
|
- Overview
- Multilingual captions
- Overview
- To enter multilingual captions in a control
- Multilingual input and display masks
- Overview
- Using multilingual input or display masks (numeric values)
- Using multilingual input or display masks (special cases)
- Multilingual images
- Overview
- Managing multilingual images
- Multilingual help
- Managing a multilingual help system
Multilingual feature in the controls (window, page, report)
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. 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:
- Open the control description (select "Description" in the context menu).
- Enter the caption for each language supported by the window, page or report ("Caption" option).
- 2nd method:
- 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.
- Select the control. The selection handles appear around the control.
- Click the control again. The mouse cursor turns into an input cursor.
- in a window:
- in a report:
- in a page:
- Enter the new text.
- Confirm by pressing the Enter key.
- 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): - Open the control description (select "Description" in the context menu).
- 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.
- Select the mask for each language supported by the window, the page or the report.
- 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. 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: - Open the control description (select "Description" in the context menu).
- 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. - 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. - Validate. The "Multilingual value" text appears in the image field.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|