英文:
What is the ISO 639x Value for Dutch?
问题
我们的程序使用ISO 639x代码来轻松命名语言文件。
然而,在https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Language_Culture_Names,_Codes,_and_ISO_Values中,荷兰语 - 荷兰的代码为空。如何找到正确的代码?
谢谢
更新
我最终在Delphi XE3中创建了一个新项目,然后选择“语言”并尝试添加新语言,以下框将显示所有语言的所有代码,包括荷兰荷兰:
英文:
Our program uses the ISO 639x code to name the language files easily.
However, in https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Language_Culture_Names,_Codes,_and_ISO_Values, the code for Dutch - The Netherlands is empty. How to find the correct code?
THanks
Update
I finally create a new project in Delphi XE3, then select "Language" and try to add a new language, the following box will show all the code for all languages, including Dutch Netherlands:
答案1
得分: 2
根据Wikipedia,荷兰语,佛兰芒语
的ISO 639-x代码(您要找的是这个吗?)如下:
639-1 639-2/T 639-2/B 639-3 nl
nld
dut
nld
请注意,佛兰芒语与密切相关的西弗拉芒语不要混淆,后者在ISO 639-3中被称为"Vlaams"(荷兰语中的"佛兰芒语"),其ISO 639-3代码为vls
。
英文:
According to Wikipedia the ISO 639-x codes for Dutch, Flemish
(is that the one you're looking for?) are:
> 639-1 | 639-2/T | 639-2/B | 639-3
> ------|---------|---------|------
> nl
| nld
| dut
| nld
>
> Flemish is not to be confused with the closely related West Flemish which is referred to as Vlaams (Dutch for "Flemish") in ISO 639-3 and has the ISO 639-3 code vls
答案2
得分: 0
我最终找到了该值 - 它是LOCALE_SABBREVLANGNAME
,如Learn / Windows / Apps / Win32 / Desktop Technologies / Desktop App User Interface / Internationalization / LOCALE_SABBREV* Constants所述:
语言的缩写名称。在大多数情况下,名称是通过从ISO标准639中取两个字母的语言缩写,然后根据需要添加第三个字母以指示子语言而创建的。例如,与英语(美国)区域设置对应的语言的缩写名称是ENU。
// $0413是荷兰语的区域ID
TmpStr := GetLocaleStr($0413, LOCALE_SABBREVLANGNAME, ''); // 返回'NLD'
英文:
I finally found the value - it is LOCALE_SABBREVLANGNAME
as per Learn / Windows / Apps / Win32 / Desktop Technologies / Desktop App User Interface / Internationalization / LOCALE_SABBREV* Constants:
> Abbreviated name of the language. In most cases, the name is created by taking the two-letter language abbreviation from ISO Standard 639 and adding a third letter, as appropriate, to indicate the sublanguage. For example, the abbreviated name for the language corresponding to the English (United States) locale is ENU.
// $0413 is the locale ID for Dutch
TmpStr := GetLocaleStr($0413, LOCALE_SABBREVLANGNAME, ''); // return 'NLD'
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论