Hi, I think you could use plural forms to do that (see GWT documentation on i18n). I'm using a bit simpler way: public interfce MyMessage extends Messages { MyMessages INST = GWT.create(MyMessages.class); String[] TEXTS = {INST.text1(), INST.text2()}; String tetx1(); String text2(); } Hope it helps.
Honza Dne pátek, 21. září 2012 16:02:45 UTC+2 Willy napsal(a): > > Hi all, > I'm quite new to GWT world and I've some issues. > In this post I ask for help with localization. > I've used an interface that extends Messages, like that: > ... > >> public interface MyMessages extends Messages { >> String text1(); >> String text2(); >> String text3(); >> } >> > ... > > and so far works all properly. > > Problems born when I try to localize an array of strings like that: > > static String[] status = >> { >> "READY", >> "UNREADY" >> } >> > > that I use in this way: > > btn.setText(status[0]); > > > There is a standard way to localize an array strings? > > Thanks a lot, > willy > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bB8FC3eqxUsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.