I wonder if it is possible to simply make "getString" work for retrieving localized string in constructor in the next patch. The code would be much cleaner without the "new ResourceModel" or "getLocalizer().getString...".
igor.vaynberg wrote: > > i just committed a patch for WICKET-1103 which greatly improves i18n in > wicket. > > first: you can have validators provide their own bundles. eg > MyValidator.properties that is next to MyValidator.java. These keys > are searched last - after the application.properties - which will > allow you to override validator bundle values if needed. > > second: there is now support for package-level properties, which live > in a bundle called package.properties. this means that you can have > each logical application module have its own global bundle rather then > having to stick everything into application.properties. > > this is a first pass so i am looking forward to any problems you guys > find. enjoy. > > -igor > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/improved-resource-bundles-in-1.4-tp20241339p24259941.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org