473,499 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I am Getting Prboblem with Cultures In Windows XP Mechine

Hi All

DateTime populaing based on regional settings In ASP.NET Application

Iam using this Code:
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(HttpContext.Curr ent.Request.UserLanguages[0]);

Thread.CurrentThread.CurrentUICulture = new
CultureInfo(HttpContext.Current.Request.UserLangua ges[0]);

Some Cultures disply the Format
When i am using Windows XP Mechine It's Giving Error Message Like this.
Culture name "zu" is not supported. Parameter name: name

These are the New Cultures for which the following error Message is thrown.
Culture name "zu" is not supported. Parameter name: name
Zulu - zu

Maltese
Xhosa xh
Welsh - cy-gb
Tswana -tn
Serbian sr-ba
serbian(Latin)- sr
sami,southern(sweaden)
sami,southern(Norway)
sami,Skolt - se-fi
sami,Notherm
Quechua(Peru)-qu-pe
Quechua(Peru)-qu-pe
Northenrn sotho -ns-za
Maori
Maltese - mt
Kyrgyz(cyrillic)
Croatian - hr-ba
Bosnian(Latin)

Thank You
Venu
Nov 18 '05 #1
3 1955
I would check :
- is this supported at all ? (GetCultures allows to list all cultures).
- if yes does it work with zu-zu, afaik the culture is both a "language" and
a "country" (countries may have the same language but different countries
may have different format for dates, times etc...)

You could also use Klingon or whatever, IMO it's bad to create blindly from
UserLanguages, you have a minimal amount of checking to do first.

As a side not you may want to explain what you try to do. Do you have really
a version for all these languages ? IMO it's not that good if not as you'll
finally ends with a site that show some content that is in a foreign
language but with "fragments" that are related to my actual language.

I would say "be consistent" first (ie.e if you display english content to
maltese users, display english dates, not maltese ones).

Patrice

--

"Karunakararao" <ka************@i-vantage.com> a écrit dans le message de
news:uJ*************@tk2msftngp13.phx.gbl...
Hi All

DateTime populaing based on regional settings In ASP.NET Application

Iam using this Code:
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(HttpContext.Curr ent.Request.UserLanguages[
0]);
Thread.CurrentThread.CurrentUICulture = new
CultureInfo(HttpContext.Current.Request.UserLangua ges[0]);

Some Cultures disply the Format
When i am using Windows XP Mechine It's Giving Error Message Like this.
Culture name "zu" is not supported. Parameter name: name

These are the New Cultures for which the following error Message is thrown. Culture name "zu" is not supported. Parameter name: name
Zulu - zu

Maltese
Xhosa xh
Welsh - cy-gb
Tswana -tn
Serbian sr-ba
serbian(Latin)- sr
sami,southern(sweaden)
sami,southern(Norway)
sami,Skolt - se-fi
sami,Notherm
Quechua(Peru)-qu-pe
Quechua(Peru)-qu-pe
Northenrn sotho -ns-za
Maori
Maltese - mt
Kyrgyz(cyrillic)
Croatian - hr-ba
Bosnian(Latin)

Thank You
Venu

Nov 18 '05 #2
Hi Patrice,

yeah, you are right, but my requirement is, just need to show the date
format according to the selected Regional settings.

2004/10/12 04:15:51 nm

Regional Settings : Afrikaans

Regards
Venu


"Patrice" <no****@nowhere.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl...
I would check :
- is this supported at all ? (GetCultures allows to list all cultures).
- if yes does it work with zu-zu, afaik the culture is both a "language"
and
a "country" (countries may have the same language but different countries
may have different format for dates, times etc...)

You could also use Klingon or whatever, IMO it's bad to create blindly
from
UserLanguages, you have a minimal amount of checking to do first.

As a side not you may want to explain what you try to do. Do you have
really
a version for all these languages ? IMO it's not that good if not as
you'll
finally ends with a site that show some content that is in a foreign
language but with "fragments" that are related to my actual language.

I would say "be consistent" first (ie.e if you display english content to
maltese users, display english dates, not maltese ones).

Patrice

--

"Karunakararao" <ka************@i-vantage.com> a écrit dans le message de
news:uJ*************@tk2msftngp13.phx.gbl...
Hi All

DateTime populaing based on regional settings In ASP.NET Application

Iam using this Code:
Thread.CurrentThread.CurrentCulture =

CultureInfo.CreateSpecificCulture(HttpContext.Curr ent.Request.UserLanguages[
0]);

Thread.CurrentThread.CurrentUICulture = new
CultureInfo(HttpContext.Current.Request.UserLangua ges[0]);

Some Cultures disply the Format
When i am using Windows XP Mechine It's Giving Error Message Like this.
Culture name "zu" is not supported. Parameter name: name

These are the New Cultures for which the following error Message is

thrown.
Culture name "zu" is not supported. Parameter name: name
Zulu - zu

Maltese
Xhosa xh
Welsh - cy-gb
Tswana -tn
Serbian sr-ba
serbian(Latin)- sr
sami,southern(sweaden)
sami,southern(Norway)
sami,Skolt - se-fi
sami,Notherm
Quechua(Peru)-qu-pe
Quechua(Peru)-qu-pe
Northenrn sotho -ns-za
Maori
Maltese - mt
Kyrgyz(cyrillic)
Croatian - hr-ba
Bosnian(Latin)

Thank You
Venu


Nov 18 '05 #3
You won't find all cultures. According to my test, you won't find Maltese or
Zulu. Try :
Dim c As System.globalization.CultureInfo

For Each c In
System.Globalization.CultureInfo.GetCultures(Globa lization.CultureTypes.AllC
ultures)

Response.Write(c.EnglishName & "," & c.Name & "<br>")

Next

IMO you have to test first if the browser setting is parf of the .NET
supported languages. If not, you'll have a decision to make about what you
want to do (default to another language or add your own support ?)....

Good luck.

Patrice

--

"Karunakararao" <ka************@i-vantage.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Patrice,

yeah, you are right, but my requirement is, just need to show the date
format according to the selected Regional settings.

2004/10/12 04:15:51 nm

Regional Settings : Afrikaans

Regards
Venu


"Patrice" <no****@nowhere.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl...
I would check :
- is this supported at all ? (GetCultures allows to list all cultures).
- if yes does it work with zu-zu, afaik the culture is both a "language"
and
a "country" (countries may have the same language but different countries may have different format for dates, times etc...)

You could also use Klingon or whatever, IMO it's bad to create blindly
from
UserLanguages, you have a minimal amount of checking to do first.

As a side not you may want to explain what you try to do. Do you have
really
a version for all these languages ? IMO it's not that good if not as
you'll
finally ends with a site that show some content that is in a foreign
language but with "fragments" that are related to my actual language.

I would say "be consistent" first (ie.e if you display english content to maltese users, display english dates, not maltese ones).

Patrice

--

"Karunakararao" <ka************@i-vantage.com> a écrit dans le message de news:uJ*************@tk2msftngp13.phx.gbl...
Hi All

DateTime populaing based on regional settings In ASP.NET Application
Iam using this Code:
Thread.CurrentThread.CurrentCulture =

CultureInfo.CreateSpecificCulture(HttpContext.Curr ent.Request.UserLanguages[ 0]);

Thread.CurrentThread.CurrentUICulture = new
CultureInfo(HttpContext.Current.Request.UserLangua ges[0]);

Some Cultures disply the Format
When i am using Windows XP Mechine It's Giving Error Message Like this. Culture name "zu" is not supported. Parameter name: name

These are the New Cultures for which the following error Message is

thrown.
Culture name "zu" is not supported. Parameter name: name
Zulu - zu

Maltese
Xhosa xh
Welsh - cy-gb
Tswana -tn
Serbian sr-ba
serbian(Latin)- sr
sami,southern(sweaden)
sami,southern(Norway)
sami,Skolt - se-fi
sami,Notherm
Quechua(Peru)-qu-pe
Quechua(Peru)-qu-pe
Northenrn sotho -ns-za
Maori
Maltese - mt
Kyrgyz(cyrillic)
Croatian - hr-ba
Bosnian(Latin)

Thank You
Venu



Nov 18 '05 #4

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

Similar topics

5
1142
by: Cameron Laird | last post by:
*DevSource* profiles "The State of the Scripting Universe" in <URL: http://www.devsource.com/article2/0,1759,1778141,00.asp >.
303
17412
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
1
1838
by: jyoti | last post by:
I have sucessfully able to copy file to a remote mechine in our network by writing some asp code. To make it sucessful, I had to keep destination folder in remote mechine as "Share" for IUSER...
4
1650
by: Karunakararao | last post by:
Hi All DateTime populaing based on regional settings In ASP.NET Application Iam using this Code: Thread.CurrentThread.CurrentCulture =...
3
2176
by: znappa | last post by:
Hi. Is there a way to get a list of supported cultures/languages for my application. By calling CultureInfo.GetCultures( CultureTypes.AllCultures )) I get the whole list of supported cultures en...
0
831
by: Thomas Kristiansen | last post by:
Hi IS there any way that I can use different cultures on Session level in one single .NET Web application ?? CU Thomas
1
1038
by: JezB | last post by:
Could anyone tell me how to implement custom cultures in ASP.NET 2.0, such that it automatically picks up application and page-level resources from the Resources and LocalResources application...
0
1098
by: Dave Harris | last post by:
After switching cultures for a thread, the Menu shortcuts are still showing the English word shift (as in Ctrl+Shift+M instead of Ctrl+Maj+M in French). Running this on a French version of windows...
0
1303
by: GB | last post by:
All, I raised a problem a while ago about custom cultures in .NET and an error whereby a "Resource lookup failed - infinite recursion detected" exception was raised. Usually this was raised when...
0
2665
by: Nays | last post by:
Hi All I would be very grateful for any help with a problem I am having with Custom Cultures. I need to change the date format of a specific culture. I have created a custom culture that...
0
7007
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
7171
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
7220
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
7386
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...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.