Thanks a lot, this is exactly what I need - and insanely fast!!! I begin to love this group ;-)
2009/4/1 Philip Constantinou <[email protected]>: > This is what I do: > String defaultName = StripesFilter.getConfiguration() > .getLocalizationBundleFactory().getFormFieldBundle( > getContext().getLocale()).getString("defaultName"); > getContext().getLocale() returns the locale based on the browser settings. > > On Apr 1, 2009, at 12:21 AM, Richard Hauswald wrote: > > Hello List, > how can I try to translate a word using the stripes i18n stuff? It's > important that I use the proper translation file, so if the user tells > he wants the stuff in english, I need to use the english translation, > if he wants it in german, the german one. I know how do do the normal > stuff inside my jsp and how to setup the i18n stuff. It's working like > charm. For those who are interested in details: > I get a List of TopLists from a web service. Each TopList contains a > List of LocalizableMessages. These Messages have a key and an object[] > for params. This worked well until the feature request came in to > translate the param as well. Now I want to pre check for each > parameter of my topList if there is an existing translation and if so, > just replace the original param with the translated one. > Thanks for you time, > Richard > > ------------------------------------------------------------------------------ > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > ------------------------------------------------------------------------------ _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
