How to load component-specific resource bundle for translation?
I followed the instructions on this page (http://docs.adobe.com/docs/en/cq/current/developing/cq5-translator.html) in order to try to give my component access to a translatable string bundle. I followed these instructions (http://www.wemblog.com/2011/12/how-to-use-multi-language-translation.html) to setup the component's JSP file to use the translated strings. However, it's not working; the default value is always used. I'm not sure where it is attempting to pull the resource bundle from, but I would like it to pull from the i18n folder I've created directly under the component node. Any ideas what I am doing wrong?
Relevant JSP code:
<cq:setContentBundle language="se" source="static" /><% Locale pageLocale = currentPage.getLanguage(false); ResourceBundle resourceBundle = slingRequest.getResourceBundle("hello-world-strings", pageLocale); I18n i18n = new I18n(resourceBundle); %> <div style="margin:1em;padding:.8em;box-shadow:inset 0px 0px .5em #ddd;border:solid 1px #aaa;"> <h1>Translation Testing Output</h1> OUT: <%= i18n.get("name") %> </div>