Groups | Blog | Home
all groups > dotnet internationalization > march 2007 >

dotnet internationalization : Resources disappearing when adding new ones


nicotxan
3/20/2007 9:33:13 AM
Hello,

We are developing a software, and want to have it with several
languages. The problem we experience is that when having a language
resource done, and want to add a new one, the other ones get
overwritten, and all the elements we had write down disappear.

It is very disappointing, we've tried different ways to do it (always
through Visual Studio), and can't get the problem solved.

Any help would be appreciated.

Hoping to hear anything from you.

Best regards,

Mallol
Mihai N.
3/21/2007 12:00:30 AM
[quoted text, click to view]

There is not enough info.
Windows version? VS version? What are you doing, exactly?

Anyway, the recomended way to handle multiple languages is to have a
resource-only dll for each language, not all in one file.
It will save you a lot of pain in the long run.


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
nicotxan
3/21/2007 12:14:11 AM
My system info is:

Microsoft XP Professional SP2
Visual Studio .NET 2003 (using C#)

I mean that I insert elements in the resources table for a language,
and then when setting a new one, the elements of the previous one get
deleted, and have to repeat it whenever I add a new language.

Anyway, how do I add new languages by adding single resource-only
dlls?

Thank you for your attention.

Regards.

Mihai N. ha escrit:
[quoted text, click to view]
Mihai N.
3/21/2007 1:01:03 AM
[quoted text, click to view]

Ah!
For C#/VB.NET VS will create multiple resx files "under the hood", one
for each language. When you add a new language it will basically add a new
resx file, and it also becomes the active one.
And when you build the thing you end up with multiple dlls, as recomended.
So when you add a new language, the old one is not deleted.
You can always switch between languages.

At least this is what happens when you use the normal VS way of handling
resources. If you do some custom stuff, I don't know.


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
nicotxan
3/23/2007 12:41:28 AM
OK,

thank you Mihai. Finally I solved my problem by generating a resource
file for each language and for each project in my solution.

Thank you very much for your help.

Best regards,

Mallol

Mihai N. ha escrit:
[quoted text, click to view]
AddThis Social Bookmark Button