pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodrigo Castillo <rcastil...@gmail.com>
Subject Re: Multilanguage resources
Date Mon, 30 Aug 2010 20:55:11 GMT
Looks great.

Just a couple questions before I check the src code, is it possible to
localize this attribute resource string/url (checking the api 1.5.1,
may be using some of the multiple language attribute in WTKXSerializer
class) ?, or will it just take the resource that you are coding in?

Thanks a lot

On Mon, Aug 30, 2010 at 12:18 PM, Greg Brown <gkbrown@mac.com> wrote:
> An include with its own resource file is probably the best way to define your login dialog:
> <foo:MainWindow xmlns:wtkx="http://pivot.apache.org/wtkx"
>    xmlns:foo="com.foo">
>    <wtkx:define>
>        <wtkx:include wtkx:id="loginDialog" src="login_dialog.wtkx" resources="com.foo.LoginDialog"/>
>    </wtkx:define>
> </MainWindow>
> On Aug 30, 2010, at 12:10 PM, Rodrigo Castillo wrote:
>> Hi, I'm trying to develop my own basic component library over pivot,
>> but I realize that, the only way to provide multi-language  resources
>> to components is through wtkxserializer constructor, so if I have a
>> main window and I want to add a login "component" there are to ways to
>> complete this as I can see: merge both main windows and login
>> component json multi-language in only one file (we broke the component
>> encapsulation) that is should be passed to the "main wtkxserializer",
>> and loading login component with wtkx:include or wtkx:define, or each,
>> main window and login component have they own json multi-language file
>> and also each one should use a separate wtkxserializer  and add
>> components by some programmatic way, witch is not so complicated but
>> it requires more control.
>> Do you know if there is other way to accomplish this?, for example:
>> pass more than one json file to the wtkxserializer to avoid merge.
>> Greetings.

View raw message