Friday, June 1, 2012

Wicket i18n

Wicket's default i18n implementation is component based. It will look for a properties file matching the component and then outward from there.

References:
  1. cwiki.apache.org/WICKET/i18n-and-resource-bundles.html
  2. day-to-day-stuff.blogspot.com/2008/05/wicket-internationalization.html
  3. www.informit.com/guides/content.aspx
However, to customize the i18n data source, add a line in Application implementation's init():

getResourceSettings().addStringResourceLoader(new CustomStringResourceLoader()); 

where CustomStringResourceLoader is a concrete custom implementation of IStringResourceLoader.

Reference:
  1. apache-wicket.1842946.n4.nabble.com/Howto-load-StringResources-from-Database-for-Iternationalization-td1893587.html

No comments:

Post a Comment