473,385 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Internationalisation Project VB.net 2005 RESX

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
6 2713
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
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
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
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
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
>
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Severino | last post by:
Hi all, we have developed a .NET component for use inside Windows Forms: this component has been written using VC++.NET (2003) and is working perfectly when inserted inside VC#.NET or VB.NET...
0
by: Severino | last post by:
Hi all, we have developed a .NET component for use inside Windows Forms: this component has been written using VC++.NET (2003) and is working perfectly when inserted inside VC#.NET or VB.NET...
5
by: Franck | last post by:
Hello, I've just moved to visual developper 2005 to do so, I also had to use the convert assistant. what it did; moving my file resx files that i had in a diresctory called resx to a new...
5
by: GaryDean | last post by:
(my original post was inaccurate but this post accurately describes what I think is a very bad vs2005 bug) short description... Deleting a dataset and recreating it from the dataadapter causes...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
1
by: Bob | last post by:
I had developped a class in Vs2003 Vb.net that would give me localized project ressources (not form ressources, these were in the individual forms). I had two files MyProjectResources.resx and...
2
by: jeffc | last post by:
I'm maintaining some older code, apparently created in Vis Studio 2003. I have Vis Studio 2005. When I open this solution, it says it has to convert all the projects. There are some problems...
2
by: Norman Diamond | last post by:
My C# code is I18N'ed by appropriately naming and editing .resx files. At execution time, it works. My C++ code is somewhat I18N'ed. When I put UI code in C++ I use .rc files. When I link to a...
0
by: =?Utf-8?B?U29vYnJhc3NlbiBUaG9wbGFu?= | last post by:
Hi to all, I have a dll that i named CoreLibrary.Basically to return messages from the dll to the calling application ,be it a windows application,web service or any other third party i call for...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.