that looks really great. thanks for sharing Michael
On Mar 10, 7:32 am, Sebastien <[email protected]> wrote: > Hi > I extracted the code to a dedicated > project:http://code.google.com/p/gwt-i18n-server/ > > Now It supports Constants, ConstantsWithLookup, Messages (plural > included). > > Regards, > Seb > > On 8 fév, 13:42, Lucas de Oliveira <[email protected]> wrote: > > > Hi all, > > sorry to bring back the post but I'm having problems while trying to use > > KtrI18N. > > The thing is that I have an Enum class that shouldn't know if the code is > > running on the client or server side. A little code: > > > public enum Status{ > > OPEN { > > @Override > > public String getI18N() { > > return labels.statusOpen(); > > } > > }, > > CLOSED { > > > @Override > > public String getI18N() { > > return labels.statusClosed(); > > } > > > } > > > Labels labels = KtrI18N.createConstants(Labels.class); > > public abstract String i18n(); > > > } > > > So this code should run both in client and server. The problem is: it > > doesn't work at the client side. I checked the KtrI18N website and there is > > an eclipse plugin to create the supersource trick for you, but I couldn't > > make it work. Any ideas? > > > thanks in advance, > > cheers! > > > -- > > Lucas de Oliveira Arantes -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
