Expand my Community achievements bar.

MSM New language (Indonesian) vs Page.getLanguage()

Avatar

Level 1

Hi, I've used the recommended language code (ISO-639-1) + country code (ISO 3166) for Indonesian - which is id_ID. 

Reference: http://docs.adobe.com/docs/en/cq/current/administering/multi_site_manager.html#Adding%20a%20new%20la...

After I set the page language to (id_id), I tried to get the page locale programmatically using Page.getLanguage() and pageProperties.getInherited("jcr:language", ""), but both methods return me in_id instead of id_id.

In the jcr:content node, the jcr:language is stored as id_id which is correct. Any idea why it is retrieved as in_id instead?

0 Replies