Q: How to best make use of Localization

  • Thread starter Visual Systems AB \(Martin Arvidsson\)
  • Start date
V

Visual Systems AB \(Martin Arvidsson\)

Hi!

I am using App_Globalresource to store all the common resource for controls,
that works just great.

But, i have pages with text that needs to be different depending on the
language that is specifyed in the internet explorer.

I need a nice way to tell the master page to get the text page from example
the /en-us/ folder or the /se-fi/ folder. Is there a nice and simple way to
handle this?

Regards
Martin
 
G

Guest

You can dynamically change the language using code like this:

System.Globalization.CultureInfo culture = new
System.Globalization.CultureInfo(“se-fiâ€);
System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
System.Threading.Thread.CurrentThread.CurrentCulture = culture;

Alexey Borzenkov (http://alexborzenkov.iespana.es/)
 

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
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top