Localization with resource files?

  • Thread starter Thread starter Mats-Lennart Hansson
  • Start date Start date
M

Mats-Lennart Hansson

Hi,
I want to create a windows application in c# (1.1 or 2.0 doesn't matter). I
want the user to able to change the application language, and I want the
changes to take effect immediately.

Should this be done with resource files and CultureInfo, or is there a
better way. What is *the* way to solve these kind of problems?

Thanks,

Mats-Lennart
 
Yes, creating resource files is the best way to localize a site, in my
opinion. Another approach I've seen is to store content in a database
and use data binding, but that introduces additional code and database
work. With resource files you just set the CultureInfo (which you need
to do anyway) and you're pretty much done. Also, resx files are XML w/c
is a good format for sharing with other applications or a translation
service.

-Carl
 

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

Back
Top