HighTechTalks DotNet Forums  

Problems with localization

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss Problems with localization in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ed
 
Posts: n/a

Default Problems with localization - 03-03-2005 , 11:47 AM






I have to display content (specially currencies) in the Users local format.
Currently Iam doing below in my code (VB.NET)
----------------------------------------------------------------------------------

Imports System.Web
Imports System.Web.Mail
Imports System.Net
Imports System.IO
Imports System.Globalization
Imports System.Threading

Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim sLang As String
sLang = Request.UserLanguages(0)
Thread.CurrentThread.CurrentCulture = New CultureInfo(sLang)
End Sub
-----------------------------------------------------------------------------------------

My PC had US regional settings ... but I changed it to United Kingdom for
testing purpose by going to Settings>>control panel>>Regional settings . I
even rebooted my PC just to make sure .
If I do String.Format("{0:c}", 0) somehwhere in my code it displays as
$0.00 instead of £0.00 on the page
CUrrently my PC is running Windows 2000 professional. I am running the
application as localhost
Any Ideas of what I may be doing wrong......?

Thanks in advance

Reply With Quote
  #2  
Old   
MasterGaurav
 
Posts: n/a

Default Re: Problems with localization - 03-07-2005 , 01:37 AM






Check you Internet Explorer options:

Tools -> Internet Options -> Languages

It's possible that both of them are listed with en_UK at top.

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
----------------------------


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.