Multilingual Support in Windows Forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to create multilingual support in a Windows form like you can
do in a web page by using resource files?
 
Unless I missed something, it doesn't look like there is any simple way like
web pages. Do you know of any examples?
 
I managed to put together an application a while back, but I don't
have it handy. As I recall it wasn't too hard to internationalize...
just put all of the strings in a resource file.

So, sorry, no, but as I said it wasn't all that difficult....
 
You might want to check out this book. You *can* just replace strings, but
this talks about a lot of other considerations, like layout, bitmaps, gifs,
right-to-left languagse, etc. It's very good and very clear and concise.

http://www.amazon.com/NET-Internati...8860814?ie=UTF8&s=books&qid=1176877129&sr=8-1

For WinForms, there is a property on the form (Localizable?) you can set.
Then you can change the property [Language I think], and change what you
want -- it writes the differences to a resources file. (Try to always
change it back to the default language, so you don't mess something up that
you didn't mean to.)

When you run it, if you set the culture to that language, you can see your
stuff. For example, to see the forms in France French:

Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-fR");

This is a start. There's a whole lot more cool stuff in that book, about
machine translation, having someone else do the translastion and control
placement, how to manage the resource files, etc. Pretty cool.

Robin S.
---------------------------------
 
The form localization is exactly what I was looking for.

tsx

RobinS said:
You might want to check out this book. You *can* just replace strings, but
this talks about a lot of other considerations, like layout, bitmaps, gifs,
right-to-left languagse, etc. It's very good and very clear and concise.

http://www.amazon.com/NET-Internati...8860814?ie=UTF8&s=books&qid=1176877129&sr=8-1

For WinForms, there is a property on the form (Localizable?) you can set.
Then you can change the property [Language I think], and change what you
want -- it writes the differences to a resources file. (Try to always
change it back to the default language, so you don't mess something up that
you didn't mean to.)

When you run it, if you set the culture to that language, you can see your
stuff. For example, to see the forms in France French:

Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-fR");

This is a start. There's a whole lot more cool stuff in that book, about
machine translation, having someone else do the translastion and control
placement, how to manage the resource files, etc. Pretty cool.

Robin S.
---------------------------------
Mike said:
Unless I missed something, it doesn't look like there is any simple way
like
web pages. Do you know of any examples?
 
Back
Top