PC SOFT

WINDEV的在线文档

  • Nation and 加载报错
  • Identifier of languages
  • Changing language
  • Change of language and help file
  • Change of language and user groupware
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Defines or identifies the display language (captions, messages, ...) used for the windows, pages, reports and controls. This function enables you to develop international applications that can be distributed in several languages.

Notes:

  • By default, the language in which the captions and messages are displayed corresponds to the default language, selected in the "Language" tab of the project ("Default language" from the popup menu of the list of languages).
  • 改变字符集 allows you to find out and modify the character set used. When changing language (国家), if the new language is using a different character set, this character set must be changed by 改变字符集.
  • See Correspondence between languages, sub-languages, character sets and nations for more details.

18版本和更高版本
WinDevWindows Store apps This function is now available in Windows Store apps mode.
18新版本
WinDevWindows Store apps This function is now available in Windows Store apps mode.
WinDevWindows Store apps This function is now available in Windows Store apps mode.
例子
WinDevWindows Store apps用户代码(MCU)
// -- Menu choice: &File..&Languages..&English
// Change the language via a menu
国家国家.英国
使用WIN_IntMenu

语法

Modifying the runtime language 隐藏详细信息

国家(<Language Number>)
<Language Number>: Integer or Integer constant
Identifier of the language to use (value defined in the project editor). The list of identifiers is specified in the Notes.

The change will be effective when the next window or page is opened.

The change will be effective:
  • WinDev immediately if "Change language immediately after the call to Nation" is selected in the "Advanced" tab of the project description.

Retrieving the number of the current language 隐藏详细信息

<Result> = 国家()
<Result>: Integer or Integer constant
Identifier of the language currently used (see the Notes).

注意

Nation and 加载报错

加载报错 is independent of 国家. If an error file is available for each language supported by the application (or the site), this WDM file must be reloaded after each change of language performed by 国家.

Identifier of languages

The identifiers of the languages are as follows:

IdentifierConstantLanguage
1国家.德国
German
2国家.美国
American
3国家.英国
English
4国家.澳大利亚
Australian
5国家.法国
French
6国家.丹麦
Danish
7国家.西班牙
Spanish
8国家.芬兰
Finnish
9国家.加拿大法语地区
French Canadian
10国家.冰岛
Icelandic
11国家.意大利
Italian
12国家.荷兰
Dutch
13国家.挪威
Norwegian
14国家.葡萄牙国家.葡萄牙
Portuguese
15国家.葡萄牙语巴西国家.葡萄牙语巴西
Brazilian Portuguese
16国家.俄罗斯
Russian
17国家.瑞典
Swedish
18国家.捷克
Czech
19国家.阿拉伯
Arabic
20国家.波斯尼亚
Bosnian
21国家.保加利亚
Bulgarian
22国家.中国繁体
Chinese
23国家.中国
Simplified Chinese
24国家.韩国
Korean
25国家.克罗埃西亚
Croatian
26国家. 爱沙尼亚
Estonian
27国家.希腊
Greek
28国家.希伯来
Hebrew
29国家.匈牙利
Hungarian
30国家.爱尔兰
Irish
31国家.日本
Japanese
32国家.拉脱维亚
Latvian
33国家.立陶宛
Lithuanian
34国家.波兰
Polish
35国家.罗马尼亚
Romanian
36国家.塞尔维亚
Serbian
37国家.斯洛伐克
Slovakian
38国家.斯洛维尼亚
Slovenian
39国家.泰国
Thai
40国家.土耳其
Turkish
41国家.越南
Vietnamese
42
16版本和更高版本
国家.南非荷兰
16新版本
国家.南非荷兰
国家.南非荷兰
Afrikaans
43
16版本和更高版本
国家.孟加拉
16新版本
国家.孟加拉
国家.孟加拉
Bengali
44
16版本和更高版本
国家.白俄罗斯
16新版本
国家.白俄罗斯
国家.白俄罗斯
Belorussian
45
16版本和更高版本
国家.加泰罗尼亚
16新版本
国家.加泰罗尼亚
国家.加泰罗尼亚
Catalan
46
16版本和更高版本
国家.印度尼西亚
16新版本
国家.印度尼西亚
国家.印度尼西亚
Indonesian
47
16版本和更高版本
国家.马其顿
16新版本
国家.马其顿
国家.马其顿
Macedonian
48
16版本和更高版本
国家.旁遮普
16新版本
国家.旁遮普
国家.旁遮普
Punjabi
49
16版本和更高版本
国家.信德语
16新版本
国家.信德语
国家.信德语
Sindhi
50
17版本和更高版本
国家.印地语
17新版本
国家.印地语
国家.印地语
Hindi
Custom languages
201
Language 1
202
Language 2
203
Language 3
204
Language 4
205
Language 5
206
Language 6
207
Language 7
208
Language 8
209
Language 9
210
Language 10
211
Language 11
212
Language 12

Changing language

  • 国家 changes the runtime language.
The change will be effective when the next window or page is opened.The change will be effective:
  • WinDev immediately if "Change language immediately after the call to Nation" is selected in the "Advanced" tab of the project description. If this option is not checked, the change of language will be performed when the next window is opened.
After the call to 国家, the windows, the pages, ... display the titles, the captions, ... in the requested language.To modify the language of the current window or page, the window (or the page) must be redisplayed by 使用 (or by PageUse or FramesetUse) after the call to 国家.To modify the language of the current window or page, you must:
  • WinDev check "Change language immediately after the call to Nation" in the "Advanced" tab of the project description.
  • redisplay the window (or the page) with 使用 (or with PageUse or FramesetUse) after the call to 国家.

  • Translation not found: If the translation of a window, page, message, ... was not performed for the specified language (the element is not associated with this language), the mechanism of preferred languages is used to display the requested information in a language close to the requested one. See Managing the application language by programming for more details.
  • Changing language via a menu option: If the change of language is performed via a menu option, this menu remains in the language selected by default. To modify the language of the menu, you must redisplay:
    • WinDev the relevant window with 使用 after the call to 国家.

  • Changing language via a menu option: If the change of language is performed via a menu option:
    • WinDev the menu automatically changes language if "Change language immediately after the call to Nation" is checked in the "Advanced" tab of the project description.
    • the menu remains in the language selected by default. To modify the language of the menu, you must redisplay:
      • WinDev the relevant window with 使用 after the call to 国家.

WinDev

Change of language and help file

In the help editor of WinDev, the name of the help file can be built from a numeric identifier corresponding to 国家.

In this case, to start the help file corresponding to the current language, all you have to do is use the following code:

// Start the help in CHM format
W帮助"MyFile"+国家+".chm"

WinDev

Change of language and user groupware

If you are using the user groupware, the windows specific to the user groupware are supplied in two languages: French and English.

To change the language dynamically, you must configure the user groupware specifically. See User groupware and multilingual feature for more details.

组件
WinDev wd200vm.dll
Linux wd200vm.so