Hi there,
I realize that under the path: /libs/wcm/core/resources/languages here list lots of language.
1) These language are the AEM only support language list?
2)How to use API to get these language and return HashMap<String, String> ? In other word, how to get AEM support language and country item list?
Anyone could help point out the way? Thanks a lot in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
From my point of view these items there are just translations of language and country code to an english country and a language name, there are not outgoing references to other parts of the repository. So most likeley they are just used in the user preferences dialog. But in my projects I never used these list.
And afaik there is no direct API available to read this list, but it should be easy to do it yourself.
kind regards,
Jörg
Views
Replies
Total Likes
Hi,
From my point of view these items there are just translations of language and country code to an english country and a language name, there are not outgoing references to other parts of the repository. So most likeley they are just used in the user preferences dialog. But in my projects I never used these list.
And afaik there is no direct API available to read this list, but it should be easy to do it yourself.
kind regards,
Jörg
Views
Replies
Total Likes
Hi there,
Try and go through the wemblog links mentioned below and see if they solve the purpose:
http://www.wemblog.com/2012/06/how-to-add-new-supported-language-in-cq.html
http://www.wemblog.com/2011/12/how-to-add-supported-language-to-wcm.html
Thanks!
Views
Replies
Total Likes
A Jorg pointed out - they are just JCR resources. Use the JCR API to query these and add them to a map (or what ever you want to do) using Java logic. If you are going to query these from within an OSGi bundle, be sure to avoid using the getAdministrativeResourceResolver. This method is deprecated in AEM 6.
Views
Replies
Total Likes
Hi Shekhar,
Thanks for your reply, but not to my question.
Views
Replies
Total Likes