G Guest Nov 20, 2003 #1 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
N Nicholas Paldino [.NET/C# MVP] Nov 20, 2003 #2 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.
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.
G Guest Nov 20, 2003 #3 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 Click to expand... Click to expand...
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 Click to expand... Click to expand...
M Marc Bernard Nov 20, 2003 #4 Has C# librarys a class of constants that referr to all the RFC 1766 langauge codes? Ie., "En-us" , "En-Uk" etc Click to expand... 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 Click to expand... You may want to ask in microsoft.public.dotnet.internationalization.
M Mihai N. Nov 21, 2003 #5 Has C# librarys a class of constants that referr to all the RFC 1766 langauge codes? Ie., "En-us" , "En-Uk" etc Click to expand... 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
Has C# librarys a class of constants that referr to all the RFC 1766 langauge codes? Ie., "En-us" , "En-Uk" etc Click to expand... 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