lightoze/gwt-i18n-server — Issue #3: Bundle files searching
Author: atoy40
Created: 2012-02-17 15:32:54+00:00
State: open

Hello,
i'm testing your librarie, and i've detected a limitation :
properties files are only searched based on the name of the class you asked for. For example :

LocaleFactory.get(MyMessages.class) will only search for MyMessage_*.properties

But in client-side GWT, the deferred binding search into the whole Inheritance tree, for example, if you have :

interface AppMessages extends Messages {
}

interface MyWidgetMessages extends AppMessages {
String mykey();
}

and have a GWT.create(MyWidgetMessages.class), it'll search properties into :
- package/MyWidgetMessages_locale.properties
- package/AppMessages_locale.properties
and even :
- com/google/gwt/i18n/client/LocalizableResource_locale.properties

In my case, the last file is the only one i define for my whole app (i mean, one per locale for sure)

Do you planned to add this feature (i'll check on my side btw) ?
Anthony.