title: How to load component-specific resource bundle for translation?
body: <p>I followed the instructions on this page (<a href="http://docs.adobe.com/docs/en/cq/current/developing/cq5-translator.html" rel="nofollow">http://docs.adobe.com/docs/en/cq/current/developing/cq5-translator.html</a>) in order to try to give my component access to a translatable string bundle.  I followed these instructions (<a href="http://www.wemblog.com/2011/12/how-to-use-multi-language-translation.html" rel="nofollow">http://www.wemblog.com/2011/12/how-to-use-multi-language-translation.html</a>) 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?</p>
  
  <p>Relevant JSP code:</p>
  
  <pre><code>&lt;cq:setContentBundle language="se" source="static" /&gt;&lt;%
  Locale pageLocale = currentPage.getLanguage(false); 
  ResourceBundle resourceBundle = slingRequest.getResourceBundle("hello-world-strings", pageLocale);
      I18n i18n = new I18n(resourceBundle);
  %&gt;
  
  &lt;div style="margin:1em;padding:.8em;box-shadow:inset 0px 0px .5em #ddd;border:solid 1px #aaa;"&gt;
      &lt;h1&gt;Translation Testing Output&lt;/h1&gt;
      OUT: &lt;%= i18n.get("name") %&gt;
  &lt;/div&gt;
  </code></pre>