Localization and RFC 1766

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Has C# librarys a class of constants that referr to all the RFC 1766
langauge codes?

Ie., "En-us" , "En-Uk" etc
 
There is nothing in the framework that exposes this now. However, it
does seem to get it from the OS. How, I do not know yet.

Hope this helps.
 
Would save me having to reinvent the wheel if these existed in the
CultureInfo as constants or something.



Nicholas Paldino said:
There is nothing in the framework that exposes this now. However, it
does seem to get it from the OS. How, I do not know yet.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Has C# librarys a class of constants that referr to all the RFC 1766
langauge codes?

Ie., "En-us" , "En-Uk" etc
 
Has C# librarys a class of constants that referr to all the RFC 1766
langauge codes?

Ie., "En-us" , "En-Uk" etc

You may want to ask in microsoft.public.dotnet.internationalization.
 
Has C# librarys a class of constants that referr to all the RFC 1766
langauge codes?

Ie., "En-us" , "En-Uk" etc

CultureInfo []allcult;
allcult=CultureInfo.GetCultures(System.Globalization.CultureTypes.AllCultures
);
foreach( CultureInfo MyCult in allcult )
Console.WriteLine( MyCult.Name )

TwoLetterISOLanguageName can give you the ISO 639 two letter abreviation
of the language.

See System.Globalization for more info in this direction.


Mihai
 
Back
Top