mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
AWC-1718 - fix I18N issue with dynamic message (property resource) bundles
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7563 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,11 +24,9 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.web.app;
|
package org.alfresco.web.app;
|
||||||
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.MissingResourceException;
|
import java.util.MissingResourceException;
|
||||||
import java.util.PropertyResourceBundle;
|
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
|
|
||||||
@@ -199,12 +197,7 @@ public final class ResourceBundleWrapper extends ResourceBundle
|
|||||||
// TODO - make path configurable in one place ...
|
// TODO - make path configurable in one place ...
|
||||||
// Note: path here is XPath for selectNodes query
|
// Note: path here is XPath for selectNodes query
|
||||||
path = PATH + "/cm:" + customName;
|
path = PATH + "/cm:" + customName;
|
||||||
InputStream is = messageService.getRepoResourceBundle(Repository.getStoreRef(), path, locale);
|
customBundle = messageService.getRepoResourceBundle(Repository.getStoreRef(), path, locale);
|
||||||
if (is != null)
|
|
||||||
{
|
|
||||||
customBundle = new PropertyResourceBundle(is);
|
|
||||||
is.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Throwable t)
|
catch (Throwable t)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user