From: Sean C. <sc...@gm...> - 2005-10-28 15:21:45
|
On 10/27/05, Felix Berger <bf...@gm...> wrote: > Are you supposed to call that for every component individually in the nor= mal > use case or shouldn't it be taken from the currently set locale, see > > static ComponentOrientation getOrientation(Locale locale) > > So if you set the locale before you use any of the dialogs they should us= e the > proper layout after we made the necessary changes, at least I'd hope it w= ould > work like this. I'm a little confused on how this is supposed to work. It does seem logical that each component would "automatically" get its orientation from the Locale. But the book I'm reading provides example code that recursively traverses through nested components to set it. I need to look into this further. > Maybe I should warn you that our current I18n class lacks proper plural > support as it is offered by GNU gettext. Thanks for the warning. :) > I'd be interested to hear what other requirements come up. We are interes= ted > in improving the xnap commons code base, if the requirements prove to add= to > the general value of the components. I'll keep posting as I notice things. Thanks Felix! Sean |