What is the ISO 639x Value for Dutch?

139 Views Asked by At

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:

enter image description here

2

There are 2 best solutions below

2
On

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

0
On

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'