Localisation query

B

BabuLives

hai,

By using the following i can get the localised information for the
particular form in which am writing this code but what should i do if i
want to get the same language data for the other forms also..

Thread.CurrentThread.CurrentCulture = new CultureInfo("hi-IN");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("hi-IN");
ResourceManager rm = new
ResourceManager("WebSatellite.ResourceFile",Assembly.GetExecutingAssembly());
string st=rm.GetString("lblMessage");
lblMessage.Text=rm.GetString("lblMessage");


Regards,
Satheesh
 
K

Karl Seguin

if I understand correctly, you want to persist the culture information
throughout multiple web requests?

I've written a 3 part series on creating multilingual websites, it goes
beyond using the built-in resourceManager. You might find it all
interesting, but for now, check out:
http://www.openmymind.net/index.aspx?documentId=4#urlrewrite

it talks about how to use Global.asax and UrlRewriting to pass around the
culture.

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top