For example: there is a node:/content/geometrixx/en/services, so you can see the page is English. But the developer how to use JCR API to get the language?
Anyone experience on it please comment here, thanks a lot.
Solved! Go to Solution.
Views
Replies
Total Likes
If you have a Page object already, you can just do page.getLanguage(false). See http://docs.adobe.com/docs/fr/aem/6-0/develop/ref/javadoc/com/day/cq/wcm/api/Page.html#getLanguage(b...)
Regards,
Justin
Views
Replies
Total Likes
If you have a Page object already, you can just do page.getLanguage(false). See http://docs.adobe.com/docs/fr/aem/6-0/develop/ref/javadoc/com/day/cq/wcm/api/Page.html#getLanguage(b...)
Regards,
Justin
Views
Replies
Total Likes
Hello,
You can use LanguageUtil.class.
Views
Replies
Total Likes
Thanks for your reply, How to get the jar to invoke it's method?
Views
Replies
Total Likes
Now i get the jar, and i invode this method " LanguageUtil.getLanguageRoot(path)", but the result is not my need. For example: " LanguageUtil.getLanguageRoot(/content/geometrixx/en/services);" it will return "/content/geometrixx/en". Actually if there is any API to get language, like the country code or language name "en" "fr" and so on.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies