469,347 Members | 1,691 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,347 developers. It's quick & easy.

problem with localization

I saw a reply in this group about localization that pointed to a Microsoft
Walk-through. I decided to actually go through the walkthrough and had a
problem. The site is
http://msdn2.microsoft.com/library/y...US,VS.80).aspx.

The problem is in the code:
' Declare a Resource Manager instance.
Dim LocRM As New ResourceManager("WindowsApplication1.WinFormString s",
GetType(Form1).Assembly)
' Assign the string for the "strMessage" key to a message box.
MessageBox.Show(LocRM.GetString("strMessage"))
Prior to this code, three resource files were created to store the text
"Hello World", "Bonjour le Monde", and "Hallo Welt".
The problem is that the command LocRM.GetString("strMessage") for French,
instead of returning "Bonjour le Monde", returns "Bonjour le MondeBonjour
le Monde". The German resource return four copies of "Hallo Welt".

Any idea what the problem is.

Chuck Gantz
Feb 8 '06 #1
3 1132
Chuck,

You know that the expiriences with this part of Net are not so high, it is
very complex to use, to maintain and to deploy. For the rest I know no
problems.

It is easier to handle this with your own seperated XML file, which can be a
dataset or whatever, which has than a table per language.

However just my and from others read expiriences here.

Cor
Feb 9 '06 #2
CMM
Actually localization via resource files is pretty good in VS2005. But,
still not as good and as mature (or as intuitive) as it should be after all
these years.

--
-C. Moya
www.cmoya.com
Feb 9 '06 #3
CMM
I haven't gone through the walkthrough... but, my first suggestion is to
doublecheck your resource files. Make sure your strings are properly
entered.. I have found that if you're editing them in the grid you might
mistakenly *append* text to it and not even realize it. Go into the field
and hit HOME to jump to the start of the string and then -> right-arrow
through it.

Sounds stupid... but it's happened to me. ;-)

P.S. What are you using 2003 or 2005?

--
-C. Moya
www.cmoya.com
Feb 9 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Amin Schoeib | last post: by
2 posts views Thread by bruno | last post: by
reply views Thread by shapper | last post: by
3 posts views Thread by Corey B | last post: by
3 posts views Thread by Computer Guru | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.