i18n display keys instead of values | Community
Skip to main content
Level 3
February 19, 2016
Question

i18n display keys instead of values

  • February 19, 2016
  • 6 replies
  • 2333 views

Hello,

 

We are facing a issue with i18n in our component dialogs in AEM6.1

It display the key instead of the values.

We followed the documentation (code sample below)

<componentName.key jcr:primaryType="sling:MessageEntry" sling:key="componentName.key" sling:message="The component value"/>

 

Restarting the bundle (Apache Sling Internationalization Supportorg.apache.sling.i18n) after installing the project fixes the issues.

Is there a way to always restart that bundle on code deploy? Is there a better fix? Are we missing something?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

Level 3
February 22, 2016

Is there a way to restart a bundle every time a package is installed in the package manager?

Jitendra_S_Toma
Level 10
February 22, 2016

Does a bundle which you want to re-start isn't part of your package manager?. If it is part of PM, then no need to re-stat bundle explicitly. After package manager installations, bundles automatically get refreshed.

---Jitendra

Level 3
February 22, 2016

No, the bundle I want to restart is the default i18n from AEM.

Apache Sling Internationalization Support (org.apache.sling.i18n)

Jitendra_S_Toma
Level 10
February 23, 2016

Hi,

OSGI Bundle API does provide a way to play with Bundle like start, stop etc. All you need to have is bundle ID.

User BundleContext to getBundle, And, bundle provides start/stop methods. This should be done in the bunlde-activator class.

API :https://osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html

---Jitendra

Level 3
February 23, 2016

Thank you, I didn't know about Bundle Activator.

I worked.

Jitendra_S_Toma
Level 10
February 23, 2016

Let me know if you got what you are trying to achieve.

murilod74686477 wrote...

Thank you, I didn't know about Bundle Activator.

I worked.