Delivery Tier I18N support 

If you want dynamic I18N support maintenable via the CMS, you should use Dynamic Resource Bundles.  


I18N support in the Hippo's delivery tier (HST) is very simple. Take the following steps:

To the web.xml add:

  <!-- I18N  -->

To your src/main/resources add the I18N bundles, for example:



To the ' hst:hosts' add the default locale, for example:

<sv:property sv:name="hst:locale" sv:type="String">

and to the Mounts that should have a different locale add the hst:locale as well, For example:

<sv:node sv:name="nl">
  <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:property sv:name="hst:locale" sv:type="String">

Now, in your templates you can use fmt:message tag without first setting the locale. This is done by the HST already. For example:


<fmt:message key="home.title"/>


<@fmt.message key="home.title"/>

Note that you thus should not use <fmt:setLocale value="some_locale" scope="page | request | session | application"/>. An exception is for rss feeds, as these always need the locale 'en-US' : <fmt:setLocale value="en-US"/>