By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,706 Members | 1,637 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,706 IT Pros & Developers. It's quick & easy.

Internationalisation Project VB.net 2005 RESX

P: n/a
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
May 4 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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

"FBS" <F.***@wanadoo.fr> schreef in bericht
news:44***********************@news.free.fr...
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

May 4 '06 #2

P: n/a
Cor Ligthert [MVP] wrote:
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.

--
Herfried K. Wagner [MVP]
May 4 '06 #3

P: n/a
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.

--
Herfried K. Wagner [MVP]
May 4 '06 #4

P: n/a
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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
Cor Ligthert [MVP] wrote:
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.

--
Herfried K. Wagner [MVP]

May 4 '06 #5

P: n/a
Cor,

"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
May 4 '06 #6

P: n/a
>
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
May 5 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.