[ https://jira.nuxeo.com/browse/NXP-6578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thierry Martins updated NXP-6578: --------------------------------- Attachment: nuxeo-webengine-core-5.4.1-I20110125_0115-NXP-6578.jar > Fix internationalization in WebEngine for languages without message bundles > --------------------------------------------------------------------------- > > Key: NXP-6578 > URL: https://jira.nuxeo.com/browse/NXP-6578 > Project: Nuxeo Enterprise Platform > Issue Type: Bug > Components: WebEngine > Affects Versions: 5.4.0.1 > Reporter: Thierry Martins > Assignee: Bogdan Stefanescu > Attachments: nuxeo-webengine-core-5.4.1-I20110125_0115-NXP-6578.jar > > > WebEngine shoud fallback to default messages when no bundle exists for a > given language. > Possible fix: > diff --git > a/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/model/Messages.java > > b/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/model/Messages.java > --- > a/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/model/Messages.java > +++ > b/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/model/Messages.java > @@ -59,6 +59,9 @@ > MessagesBundle bundle = messages.get(language); > if (bundle == null) { > Map<String, String> map = provider.getMessages(language); > + if (map == null) { > + return defaultMessages; > + } > MessagesBundle parentBundle = parent != null ? > parent.getMessagesBundle(language) : null; > bundle = new MessagesBundle(parentBundle, map); > messages.put(language, bundle); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://jira.nuxeo.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets