Problem localizing inherited form

  • Thread starter Thread starter Markus Hjärne
  • Start date Start date
M

Markus Hjärne

Hi,

I have a problem trying to localize an inherited form using VS2003. I have
inherited a form from a non-localized base form in a third-party assembly.
Since all controls in the base form is protected there's no problem changing
for example the Text property of inherited Label controls in the designer.
But when I make my inherited form localizable (by setting the Localizable
property of the inherited form to true), change the Language to Swedish,
change a label text to Swedish and then switch back to the Default language,
the label still has the Swedish text, not the inherited English text from
the base form.

Has anybody had the same experience and come up with a solution?

Thankful for any help on this.

/Markus Hjärne

PS
This was originally posted at microsoft.public.dotnet.internationalization,
but
there doesn't seem to be much activity in that group, so I repost it here.
 
Hi Markus,

Thanks for your post.

Yes, with a simple sample regarding your scenario, I can reproduce out this
problem. In Inherited Form, the new added control will work well. However,
if we change the localized inherited control property, although it will be
serialized to the localized culture resx file, it also overwrites the
default resx file property value. So when we switch back to default
language, the designer will still get the localized value.

I think this should be a VS.net designer serialization issue. I recommand
you submit a bug request to our product team at the link below:
http://lab.msdn.microsoft.com/ProductFeedback/

Then our product team will work with you on it. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Jeffrey,

what exactly do you mean by "rebuild the form"? Do you mean rebuild the
project the form is a part of? Yes, I've done that.

/Markus
 
Thanks for taking your time. I have submitted a bug request as you
suggested.

/Markus
 
I've also found out that the bug is still present in VS2005, although
slightly changed. When I change to Swedish, change the label text and then
toggle Language to (Default) and then back to Swedish, the label text has
been reverted to the base label text.

/Markus
 
Hi Markus ,

I think it is better feedback this issue in your bug request. Then our
product team will work with you and see your concern. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Yes, I see. Let's wait for the feedback of our product team on this issue.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top