Thanks Eric. Fred
On Mon, Jan 5, 2009 at 22:31, Eric Ayers <zun...@google.com> wrote: > I hope you've worked through this by now, but the problem you're seeing is > because each property key needs to be unique. You need to name your > properties differently, such as: > > EVENTTYPE_1 = concert > > EVENTTYPE_2 = parade > > CATEGORY_1 = entertainment > > CATEGORY_2 = sports > > CATEGORY_3 = arts > > CATEGORY_4 = services > > EVENTTYPES=EVENTTYPE_1, EVENTTYPE_2 > > CATEGORIES=CATEGORY_1,CATEGORY_2,CATEGORY_3,CATEGORY_4 > > On Tue, Dec 23, 2008 at 7:09 AM, Fred Janon <fja...@gmail.com> wrote: > >> I use several listboxes with a numeric key and a text as the value. I need >> to internationalize the text. I don't know if there is a way to code that in >> a property file. I tried the following but all the maps are all mapped with >> the last values at runtime. >> >> Application.properties >> >> 1 = concert >> 2 = parade >> EVENTTYPES = 1, 2 >> >> 1 = entertainment >> 2 = sports >> 3 = arts >> 4 = services >> CATEGORIES = 1, 2, 3, 4 >> >> Application.java >> Map EVENTTYPES(); >> Map CATEGORIES(); >> >> Runtime: >> >> [INFO] Event types Key: 1 value: entertainment // Should be "concert" >> [INFO] Event types Key: 2 value: sports // Should be "parade >> >> [INFO] Categories Key: 1 value: entertainment >> [INFO] Categories Key: 2 value: sports >> [INFO] Categories Key: 3 value: arts >> [INFO] Categories Key: 4 value: services >> >> Use: >> >> Map<String, String> eventtypes = StringManager.Constants().EVENTTYPES(); >> Map<String, String> categories = StringManager.Constants().CATEGORIES(); >> >> I don't know if there is a way to do that in a properties file. >> >> Thanks >> >> Fred >> >> >> >> > > > -- > Eric Z. Ayers - GWT Team - Atlanta, GA USA > http://code.google.com/webtoolkit/ > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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 -~----------~----~----~----~------~----~------~--~---