Home All Groups Group Topic Archive Search About

Bug: Localization for Button Control in inherited UserControl

Author
17 Nov 2006 9:54 AM
benjamin.soulier
Hi everyone,

After trying to make this work for a while I didn't get a chance to
obtain what i was supposed to, so here is the description of the bug (I
think) I found :

Steps to reproduce :
1. Create a new Windows Application project.
2. Create a UserControl (ex: UCMenu) and set it to localizable in
design time.
3. Put one Label and one Button on it(ex. name: buttonToLook), set on
them different Text properties values depending on languages (ex:
(default) & fr).
4. Expose Text properties of all 4 controls with localizable attribute
on it ([Localizable(true)]).
4. Create a UserControl (ex. name: UCInheritedUCMenu) inheriting from
UCMenu, set it to localizable in design time.
5. Put UCInheritedUCMenu on the project main form (and set form also to
Localizable).
6. In Program.cs, set Thread.CurrentThread.CurrentUICulture to "fr".
7. Run the application and notice that only buttonToLook does not take
its localisable value (you can add other controls on UCInheritedUCMenu
or form to see that only buttonToLook is not localized).
8. Comment Text property exposure for buttonToLook and run the
application again : text of button is now localized.

Thanks for all your help.
Hope You'll give a correction for this :-)

AddThis Social Bookmark Button