
Language Translation and VB.NET
YW :) I did it recently, and I'm a total newbie with .Net also. It took me a
couple of hours to locate and implement all the{*filter*}details. When you
create a form and set it as Localizable, you'll notice the IDE creates a
resource file named {formname}.resx. When you set the form to a different
language (for example, "French(France)", it will create a copy of the
resource file named {formname}.fr-FR.resx. While the form is set as French,
translating, moving and resizing the controls will update that file. When
you build the project, you will get a set of files all named
{projectname}.resources.dll, each in a subdirectory bearing the name of the
corresponding "culture". The "default" culture is taken from the IDE's
language (in your case, probably "en-US"). Changing the program's culture
before the form is loaded (in the form class initialization code or in the
Main subroutine) makes it select the appropriate subdir to load the resource
DLL from. It sounds more complex than it really is. .Net uses "culture"
instead of "language" because it also controls the formats for numbers,
currency and date/time strings. As a matter of fact, you'll find that
storing date and time values in a culture-independant way (for international
apps and/or databases) is a chore.
--
Pierre Szwarc
Paris, France
PGP key ID 0x75B5779B
------------------------------------------------
Science is true. Don't be misled by facts.
------------------------------------------------
| Pierre,
|
| Thanks for the help.