globalization - Asp.Net Culture name without region/country name and default settings -


I am working on a multi-lang site. I want to get and set up with culture and uiculture with the culturename country name. If the browser chooses English or Lang English, then it will return N no en-US or N-GB . Because I use a local resource file per language and I have to send the SQL code as a parameter in the form of a code as a parameter.

  Thread.Centreththread.Certaint Culture Thread.ContratTrade.Carchant Culture.Name Thread.ContentTrade.CurrentUniquelCourse   

All these N-GB, D-Day, D-Eti ... I just want the first part and use this people. The link has names, but the browser notes that to return it, I just want and use the ordinary part. How can I do this?

It is resolved (:

EDIT: Now, how can I read the browser culture and if I do not have it, how can I set up the culture As I have n , D , ru and the visitor's browser sends me fr , I want Take a look at the property:

- For example:

 < Code> var cult = new system.Globalization.CultureInfo ("en-US"). Two-liter ISO languagename;   

Write N "N" so you can send it in stored procedures.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -