HighTechTalks DotNet Forums  

RESX files and VS.NET

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss RESX files and VS.NET in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
martingagne@gmail.com
 
Posts: n/a

Default RESX files and VS.NET - 09-23-2006 , 11:08 PM






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


Reply With Quote
  #2  
Old   
Marin Millar
 
Posts: n/a

Default RE: RESX files and VS.NET - 09-25-2006 , 12:33 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]


Reply With Quote
  #3  
Old   
martingagne@gmail.com
 
Posts: n/a

Default Re: RESX files and VS.NET - 09-25-2006 , 01:11 PM



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

Marin Millar wrote:
Quote:
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]


Reply With Quote
  #4  
Old   
Mihai N.
 
Posts: n/a

Default Re: RESX files and VS.NET - 09-26-2006 , 04:27 AM



Quote:
I'd like to see VS.NET generate two identical RESX files for French and
English version of my application/form/usercontrol.
....
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...
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.


Quote:
Also, I have to keep the property
Localization at True in order to use regional settings...
Correct.


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email


Reply With Quote
  #5  
Old   
Marin Millar
 
Posts: n/a

Default Re: RESX files and VS.NET - 09-26-2006 , 12:41 PM



Thanks for the feedback Martin. I forwarded this to the team working on
our next designer. Marin Millar [MSFT]


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.