473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Localization and RFC 1766

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

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

Jul 21 '05 #1
4 2080
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]
- mv*@spam.guard.caspershouse.com

<di********@discussion.microsoft.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Has C# librarys a class of constants that referr to all the RFC 1766
langauge codes?

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

Jul 21 '05 #2
Would save me having to reinvent the wheel if these existed in the
CultureInfo as constants or something.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

<di********@discussion.microsoft.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Has C# librarys a class of constants that referr to all the RFC 1766
langauge codes?

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


Jul 21 '05 #3
<di********@discussion.microsoft.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
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.

Jul 21 '05 #4
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.Globalizati on.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
-------------------------
Replace _year_ with _ to get the real email
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: | last post by:
Has C# librarys a class of constants that referr to all the RFC 1766 langauge codes? Ie., "En-us" , "En-Uk" etc
6
by: Rental | last post by:
I'm having the sam problem as described below with the Localization toolkit. Does anyone know if there is a solution to this problem. --->When attempting to generate resource dlls with...
2
by: Julia | last post by:
Hi, We want to migrate out asp application to asp.net and take advantage on localization. I want to ask how it is advice to structure the site directory I am going to use resource only...
8
by: Olivier Matrot | last post by:
I encounter a problem with Localization features in ASP.NET 2.0. Is seems that the framework is not able to manage neutral cultures such as 'fr', or 'de'. Those are the culture sent by default from...
5
by: CMM | last post by:
I don't seem to "get" ASP.NET 2.0's Localization features. I've read up on everything... and of course, everything is explained in cursory softball terms- not any "real-world" usage way. I hope...
2
by: bruno | last post by:
I need to localize my ASP.NET app and I just used "Tools" --"generate local resources" command and everything works fine in my WebForms. Resource file name is: MyWebForm.aspx.resx under a subDir...
0
by: shapper | last post by:
Hello, Sometime ago I followed an article (I believe MSDN) related with localization in Asp.Net 2.0. To make pages localization I create a class named Localization: 1 Public Class...
3
by: Corey B | last post by:
I have an ASP.NET application that was built in ASP.NET v1.1. It has a SQL Server back end database. I have been asked to provide an estimate for the level of effort required to produce a Chinese...
3
by: Computer Guru | last post by:
I have a VB.NET 2005 application with several forms and a couple hundred "strings." I've been looking into all the localization improvements in VB.NET, and I can't seem to find anything that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.