Export (0) Print
Expand All

CultureInfo.ThreeLetterISOLanguageName Property

Gets the ISO 639-2 three-letter code for the language of the current CultureInfo.

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)

public virtual string ThreeLetterISOLanguageName { get; }
/** @property */
public String get_ThreeLetterISOLanguageName ()

public function get ThreeLetterISOLanguageName () : String

Property Value

The ISO 639-2 three-letter code for the language of the current CultureInfo.

For example, the three-letter abbreviation for English is "eng".

The following code example displays several properties of the neutral cultures.

using System;
using System.Globalization;

public class SamplesCultureInfo  {

   public static void Main()  {

      // Displays several properties of the neutral cultures.
      Console.WriteLine( "CULTURE ISO ISO WIN DISPLAYNAME                              ENGLISHNAME" );
      foreach ( CultureInfo ci in CultureInfo.GetCultures( CultureTypes.NeutralCultures ) )  {
         Console.Write( "{0,-7}", ci.Name );
         Console.Write( " {0,-3}", ci.TwoLetterISOLanguageName );
         Console.Write( " {0,-3}", ci.ThreeLetterISOLanguageName );
         Console.Write( " {0,-3}", ci.ThreeLetterWindowsLanguageName );
         Console.Write( " {0,-40}", ci.DisplayName );
         Console.WriteLine( " {0,-40}", ci.EnglishName );
      }

   }

}


/*
This code produces the following output.  This output has been cropped for brevity.

CULTURE ISO ISO WIN DISPLAYNAME                              ENGLISHNAME
ar      ar  ara ARA Arabic                                   Arabic
bg      bg  bul BGR Bulgarian                                Bulgarian
ca      ca  cat CAT Catalan                                  Catalan
zh-CHS  zh  zho CHS Chinese (Simplified)                     Chinese (Simplified)
zh-CHT  zh  zho CHT Chinese (Traditional)                    Chinese (Traditional)
cs      cs  ces CSY Czech                                    Czech
da      da  dan DAN Danish                                   Danish
de      de  deu DEU German                                   German
el      el  ell ELL Greek                                    Greek
en      en  eng ENU English                                  English
es      es  spa ESP Spanish                                  Spanish
fi      fi  fin FIN Finnish                                  Finnish

*/

import System.* ;
import System.Globalization.* ;

public class SamplesCultureInfo
{
     public static void main(String[] args)
    {
        // Displays several properties of the neutral cultures.
        Console.WriteLine("CULTURE ISO ISO WIN DISPLAYNAME                  " 
            + "            ENGLISHNAME");
        
        for (int iCtr = 0; 
            iCtr < (CultureInfo.GetCultures(CultureTypes.NeutralCultures).
            length); iCtr++) {
            CultureInfo ci = 
                CultureInfo.GetCultures(CultureTypes.NeutralCultures)[iCtr];
            Console.Write("{0,-7}", ci.get_Name());
            Console.Write(" {0,-3}", ci.get_TwoLetterISOLanguageName());
            Console.Write(" {0,-3}", ci.get_ThreeLetterISOLanguageName());
            Console.Write(" {0,-3}", ci.get_ThreeLetterWindowsLanguageName());
            Console.Write(" {0,-40}", ci.get_DisplayName());
            Console.WriteLine(" {0,-40}", ci.get_EnglishName());
        }
    } //main 
} //SamplesCultureInfo

/*
This code produces the following output.  This output has been cropped 
for brevity.

CULTURE ISO ISO WIN DISPLAYNAME                              ENGLISHNAME
ar      ar  ara ARA Arabic                                   Arabic
bg      bg  bul BGR Bulgarian                                Bulgarian
ca      ca  cat CAT Catalan                                  Catalan
zh-CHS  zh  zho CHS Chinese (Simplified)                     Chinese 
(Simplified)
zh-CHT  zh  zho CHT Chinese (Traditional)                    Chinese
(Traditional)
cs      cs  ces CSY Czech                                    Czech
da      da  dan DAN Danish                                   Danish
de      de  deu DEU German                                   German
el      el  ell ELL Greek                                    Greek
en      en  eng ENU English                                  English
es      es  spa ESP Spanish                                  Spanish
fi      fi  fin FIN Finnish                                  Finnish
*/

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft