Internationalisation Project VB.net 2005 RESX

F

FBS

Hello

I'm currently working on a winform project that must be in 3 languages
(French, English et Polish).

I know that I have to work with *.resx files, (1 for each language, 1 for
the default) but also 1 for each Form.


The problem I have is that I must change the form and modify the objects on
it (Textboxes, labels, comboboxes, etc) in the three language so as to have
the object recorded into the corresponding resx file.

It's a long job so I would like to know if there is a faster possibilty to
include objects into the resx files.

Moreover, How can I internationalize the messages shown in the messageboxes
that I have in my forms still with the 3 languages.

For example say "Bonjour" in French, "Hello" in English and "Czesc" in
Polish.

Thanks for your answers
 
C

Cor Ligthert [MVP]

FBS,

Working with those RESX files seems for me endless. A year ago Nick (regular
than in this newsgroup) tried it, het had after a while the same idea.

For me the most simple is to create an XML dataset/datatable. With a table
for every language, the only point is that you get a lot of columns.

Just my thought,


Dzien Dobry, Bonjour, Bye

Cor
 
H

Herfried K. Wagner [MVP]

Cor said:
Working with those RESX files seems for me endless. A year ago Nick (regular
than in this newsgroup) tried it, het had after a while the same idea

Mhm... For me it works just fine, especially in VS 2005.

To localize forms in VS 2005, simply set the form's 'Localizable'
property to true, select the language you want to localize in the
property window ('Language' property), then specify the controls' texts,
images, etc.

Localizing strings isn't that complicated too. "My Project" ->
"Resources" provides an easy way to edit default resources. In order to
create localized versions, simply create new ResX files and add them to
the project. The files' names specify the langage ("resources.resx" for
the invariant culture, "resources.en.resx" for 'en',
"resources.en-us.resx" for 'en-US', etc.). VS 2005 provides an
integrated editor for ResX files.

In addition localization of Windows Forms forms can be delegated to
other parties because resources can be edited comfortably using
"WinRes.exe", which is part of the .NET Framework SDK.
 
H

Herfried K. Wagner [MVP]

Addendum:
Localizing strings isn't that complicated too. "My Project" ->
"Resources" provides an easy way to edit default resources. In order to
create localized versions, simply create new ResX files and add them to
the project. The files' names specify the langage ("resources.resx" for
the invariant culture, "resources.en.resx" for 'en',
"resources.en-us.resx" for 'en-US', etc.). VS 2005 provides an
integrated editor for ResX files.

I forgot to mention that loading the localized strings is really easy in
VB 2005 too:

\\\
MsgBox("Hallo Welt")
///

can be replaced with

\\\
MsgBox(My.Resources.HelloWorld)
///

if 'HelloWorld' is the name of a string resource. 'My.Resources'
provides typed access to an application's resources. In the sample
above, the language of the resource string being loaded depends on the
current culture of the thread accessing 'My.Resources'.

The only thing VS 2005 doesn't support is propagating changes to
resources in the invariant culture resource file such as adding,
renaming, or removing resources to resource files for other languages.
 
C

Cor Ligthert [MVP]

Herfried,

I live still in the time there was only that ugly C# not ready for use
program.

Beside that it was needed to deploy all the languages in more folders and
more of those strange restrictions which you see when products are still not
ready.

I will first have a look at it before I will reply on this again. Although
my first view shows the same as the ugly C# program.

Cor
 
H

Herfried K. Wagner [MVP]

Cor,

Cor Ligthert said:
I live still in the time there was only that ugly C# not ready for use
program.

I am curious which "ugly C# program" you are referring to.
 
C

Cor Ligthert [MVP]

I am curious which "ugly C# program" you are referring to.

--
Not checked yet, there was in 2003 a sample self to build program that did
look like this and acts like this (it is not there as VBNet program). It
looked advanced as the by us known program to make HTML help. I am referring
to that.

:)

Cor
 

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

Top