Author: chatellier Date: 2008-12-18 11:49:33 +0000 (Thu, 18 Dec 2008) New Revision: 1288 Modified: lutinutil/trunk/src/main/java/org/codelutin/i18n/Language.java Log: Use recursive properties on language bundle Modified: lutinutil/trunk/src/main/java/org/codelutin/i18n/Language.java =================================================================== --- lutinutil/trunk/src/main/java/org/codelutin/i18n/Language.java 2008-12-15 02:11:01 UTC (rev 1287) +++ lutinutil/trunk/src/main/java/org/codelutin/i18n/Language.java 2008-12-18 11:49:33 UTC (rev 1288) @@ -21,10 +21,6 @@ package org.codelutin.i18n; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.codelutin.i18n.bundle.I18nBundleManager; - import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; @@ -36,6 +32,11 @@ import java.util.MissingResourceException; import java.util.Properties; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.codelutin.i18n.bundle.I18nBundleManager; +import org.codelutin.util.RecursiveProperties; + /** * This class is used by the i18n class. It encapsulates the translation * resource for a given language. @@ -78,7 +79,7 @@ // make sure the bundlemanager is init bundleManager.init(); // load resources from bundles - resource = new Properties(); + resource = new RecursiveProperties(); // get bundles for this locale try { bundleManager.load(this, resource);