Regarding Localization
Reply
![]() |
|
From:
![]() indian847
|
Hi, I am trying to localize my web application. My application always gets the strings from my default assembly. I am able to debug and see that CurrentCulture and CurrentUICulture are being set properly to the selected language. Satellite assemblies are being created properly. But ResourceManager.Getstring() is going to my default assembly and picking data. I am working on Microsoft Windows XP Professional version 2002 , service pack 1 I tried the same application on windows 2003 server. There its working as expected.(Picking data from respective locale resource .dll�s) Please let me know if I have to change any configuration settings or Browser settings for my application on my XP system. Code: Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(DropDownList1.SelectedItem.ToString()); Thread.CurrentThread.CurrentUICulture = new CultureInfo(DropDownList1.SelectedItem.ToString()); LocRM= new ResourceManager("testres.MyRes", typeof(WebForm1).Assembly); Label1.Text = LocRM.GetString("MyLabel"); This is how I am setting CurrentCulture and CurrentUICulture When I tried the same lines of code in a windows application its working as expected and picking the data properly. The same code in a web application is not able to point to proper resource files. In a different machine both form of applications are working properly. Will there be any configuration settings for a web application that I am missing in my machine. <o:p></o:p> |
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|