PC SOFT

WINDEV的在线文档

  • 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
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Multilingual feature in the controls (window, page, report)

Overview
In a multilingual application or site, the multilingual feature is proposed for the following elements:
  • the captions.
  • the input and display masks.
  • the images.
  • the help.
At run time, WinDev, WinDev Mobile or WebDev will automatically select the caption, the mask or the image corresponding to the runtime language of the project.

Reminder: The default runtime language of the project is defined in the project description ("Project .. Project description ", "Languages" tab). See Multilingual applications for more details.Reminder: The default runtime language of the project is defined in the project description:
  • on the "项目" pane, in the "项目" group, click "描述".
  • display the "Languages" tab.
See Multilingual applications for more details.

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,
    • ...
  • Report controls:
    • static control,
    • RTF,
    • Preset control,
    • Link.
When the running window or the page or when printing the report, the caption corresponding to the runtime language of the project (of the window, page or report) will be automatically used.

To enter multilingual captions in a control

  • 1st method:
    1. Display the description of the control ("Description" from the popup 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 ("Display .. Language displayed...").Select the language in which the caption must be modified: on the "显示" pane, in the "选项" group, expand "显示的语言" and select the requested language.
    2. Select the control. The selection handles appear around the control.
    3. Click the control again. The mouse cursor turns into an edit cursor.
      • in a window:
      • in a report:
      • in a page:
    4. Enter the new caption of the control.
    5. Validate the input by pressing the [Enter] key.
    6. Repeat the previous operations for all the 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:
  • Window controls:
    • combo box,
    • edit control,
    • table column.
  • Controls of a page:
    • formatted display control,
    • edit control,
    • table column.
  • Report controls:
    • item control,
    • calculated control,
    • preset control,
    • array columns.

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 the window or the page is run or when the report is printed, the mask corresponding to the runtime language of the project (of the window, page or report) will be automatically used. See Input masks and display masks for more details.

WinDevWindows用户代码(MCU)

Using multilingual input or display masks (numeric values)

To use multilingual input or display masks (numeric values):
  1. Display the description of the project ("Project .. Project description").Display the project description: on the "项目" pane, in the "项目" group, click "描述".
  2. In the "Languages" tab, define the corresponding linguistic options for each language. To do so, select the requested language in the table of languages and choose the requested options for each type of numeric data. The linguistic options selected by default are the ones of Windows.
    For each type of numeric data, you have the ability to define the parameters that will be applied (decimal separator, thousand separator, currency symbol, time format, AM or PM symbol, ...).
    Validate the description window of the project.
  3. In each numeric edit control or table column (in the windows or pages), you have the ability to select "Mask defined by the project". In this case, depending on the language used when running the application, the mask used will be the one specified in the project options.
    Note: The "Mask defined by the project" option is selected by default when creating new controls.
    Benefit: This option allows you to automatically use the same multilingual configuration in all the numeric controls of the application. The management of the multilingual formats is centralized in the project description.
Caution: The reports do not use this management mode (see the paragraph below).

Using multilingual input or display masks (special cases)

In some specific cases, the masks defined in the project description may not correspond to the requested result. In this case, you have the ability to define a specific multilingual mask.

To use multilingual input or display masks (special cases):

  1. Display the description of the control ("Description" from the popup menu).
  2. Click the iconfound 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.
Note: This operation can also be performed in the report controls. In this version, the report controls ignore the linguistic 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:
  • Window controls:
    • 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 of a page:
    • background image of button controls.
    • image of image controls, clickable image controls
    • background images of cell controls.
  • Report controls:
    • 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 when the images contain a text that must be translated for example.

When the window or the page is running or when the report is printed, the mask corresponding to the runtime language of the project (of the window, page or report) will be automatically used.

Managing multilingual images

To manage the multilingual images:
  1. Display the description of the control ("Description" from the popup menu).
  2. Click the iconfound beside the "Image" or "Background image" option ("General" or "Border, Bckgrd" tab).
    By default, the same file is associated with all the languages supported by the window, page or report.
    Click the iconfound beside the "Image" or "Background image" option ("General" or "Style" tab).
    By default, the same file is associated with all the languages supported by the window, page or report.
  3. For each language, click the [...] button and select the image corresponding to the language.
    Note: The display options (display mode, transparency, position and symmetry) are applied to all of the selected images.
  4. Validate. The "Multilingual value" caption appears in the description of the image.

Multilingual help
WinDevWindows用户代码(MCU) In the window controls, for each language supported by the window, you have the ability to define:
  • a different help message.
  • a different tooltip.
  • a different text for the help window.
When running the window, the help corresponding to the runtime language of the project (or window) will be automatically used.

WinDevWindows用户代码(MCU)

Managing a multilingual help system

To manage a multilingual help system:
  1. Display the description of the control ("Description" from the popup menu).
  2. Display the "Help" tab.
  3. Enter the help message, the tooltip, the title and the text of the help window for each language supported by the window.