Hi,
How can I do the Internationalization of tab control ? In the GUI painter there is no place for lookup keys neither Catalog in the list of item for a tab control. VisualWorks® Personal Use Edition, 7.9.1 of 18 octobre 2012 Vincent _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Vincent:
You're right, the various GUI components you can drop into a canvas aren't uniformly internationalized.
As a workaround for the moment, if you give a graphic component a unique name, you should be able to adjust it at runtime, perhaps in the postBuild method. You might have to look up the message yourself in the catalog of choice and then specify the answered string to the tab control label in the appropriate variable.
More to the point, we're doing work on cleaning up straggling internationalization features in 7.11. I can't be more specific about this one, because it overlaps the GUI/Tools work, but I expect to be working closely with that team over the course of the development of that release, and I'm aware that some of the widgets are less-evolved than others in this respect.
Thanks for bringing this up, I hope you can cobble together a suitable workaround for now.
Les Kooyman
Cincom Smalltalk Development From: [hidden email] on behalf of Vincent Lesbros Sent: Wed 3/20/2013 8:49 AM To: [hidden email] Subject: [vwnc] Internationalization of tab controls Hi, _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
The easiest solutions is to Create a menu(tabsMenu ) with the
international strings and then use the menu as the tab labels. Suppose you created the Tab control and assign the "tabs" as aspect. Then you create a method tabs tabs isNil ifTrue: [(tabs := SelectionInList with: self tabsMenu menuItems) selectionIndex: 1]. ^tabs Hope this helps --Mark Pirogovsky Kooyman, Les wrote: > [vwnc] Internationalization of tab controls > Vincent: > You're right, the various GUI components you can drop into a canvas > aren't uniformly internationalized. > As a workaround for the moment, if you give a graphic component a > unique name, you should be able to adjust it at runtime, perhaps in > the postBuild method. You might have to look up the message yourself > in the catalog of choice and then specify the answered string to the > tab control label in the appropriate variable. > More to the point, we're doing work on cleaning up straggling > internationalization features in 7.11. I can't be more specific about > this one, because it overlaps the GUI/Tools work, but I expect to be > working closely with that team over the course of the development of > that release, and I'm aware that some of the widgets are less-evolved > than others in this respect. > Thanks for bringing this up, I hope you can cobble together a suitable > workaround for now. > Les Kooyman > Cincom Smalltalk Development > > ------------------------------------------------------------------------ > *From:* [hidden email] on behalf of Vincent Lesbros > *Sent:* Wed 3/20/2013 8:49 AM > *To:* [hidden email] > *Subject:* [vwnc] Internationalization of tab controls > > Hi, > > How can I do the Internationalization of tab control ? > In the GUI painter there is no place for lookup keys neither Catalog > in the list of item for a tab control. > > > VisualWorks® Personal Use Edition, 7.9.1 of 18 octobre 2012 > > Vincent > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > > > ____________________________________________________________ > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc ____________________________________________________________ Woman is 60 But Looks 25 Mom publishes simple facelift trick that angered doctors... http://thirdpartyoffers.netzero.net/TGL3241/514a877ad92c47792164st02duc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |