all groups > dotnet internationalization > september 2006 >
You're in the

dotnet internationalization

group:

RESX files and VS.NET



RESX files and VS.NET martingagne NO[at]SPAM gmail.com
9/23/2006 8:08:00 PM
dotnet internationalization: Hi all!

In a project I have one form (MyForm) with three resource files:
MyForm.resx, MyForm.fr.resx and MyForm.en.resx. The resource file
MyForm.resx contains a lot of stuff including all labels and messages
in English because I started my project in English.

So when I go to the MyForm.en.resx file, there is nothing in it even if
I try to add new entries. If I add to MyForm.en.resx an entry which is
a copy of an entry in MyForm.resx, VS.NET will keep the one in
MyForm.resx and delete the copy in MyForm.en.resx and it will keep the
"label1.text" in the French version because of course the value is
not the same as in English.

I don't like at all this behavior. Why VS.NET deletes and generates
entries in the MyForm.resx? Is it possible to turn off that ? Am I
using the tool in the proper way? My goal is to have two identical RESX
files for English and French with different values.

Thanks for your help!

Martin
Re: RESX files and VS.NET martingagne NO[at]SPAM gmail.com
9/25/2006 10:11:34 AM
Hi Marin,

I'd like to see VS.NET generate two identical RESX files for French and
English version of my application/form/usercontrol. Once done, I could
send RESX files to a professional transaltor... Hopefully, I'd like to
use VS.NET functionnalities.

I understand that I can do all this process manually but I still prefer
to use VS.NET to do that... I suppose that I don't catch something
about Localization in .NET... Also, I have to keep the property
Localization at True in order to use regional settings...

Best Regards,
Martin

[quoted text, click to view]
RE: RESX files and VS.NET marinm NO[at]SPAM online.microsoft.com
9/25/2006 4:33:24 PM
Hi Martin,
The behavior you are seeing is the result of setting the form property
"Localizable" to True. Setting Localizable to True will generate the
localized value in the default .resx file. It's possible to turn that off
by setting Localizable to False, however, that turns off all localization
functionality. You would then not be able to localize your other .resx
files using the designer and would have to do all the work manually without
any help from the designer.
Hope this answers your question,
Marin Millar [MSFT]
Re: RESX files and VS.NET Mihai N.
9/26/2006 1:27:39 AM
[quoted text, click to view]
Just copy the English resx on top of the French one.
There is nothing to catch, I don't like the VS behavior either, but this is
how it is.


[quoted text, click to view]
Correct.


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Re: RESX files and VS.NET marinm NO[at]SPAM online.microsoft.com
9/26/2006 4:41:31 PM
Thanks for the feedback Martin. I forwarded this to the team working on
our next designer. Marin Millar [MSFT]
AddThis Social Bookmark Button