Globalization feature in the Webcenter is good and find the below video to get more idea.
Here we can easily change the labels in the different language. But not the content in the pages. It depends on where the content comes from, If it comes from UCM or some other content server you need to translate the content in the content server as well or pass the language to the content query.
Note : The portal framework will behave generic and it will change all the text and labels in the Admin console according to the language set.
Here we can easily change the labels in the different language. But not the content in the pages. It depends on where the content comes from, If it comes from UCM or some other content server you need to translate the content in the content server as well or pass the language to the content query.
Note : The portal framework will behave generic and it will change all the text and labels in the Admin console according to the language set.
use this snippet in the custom phase listener or in the value change listener of the Template bean.
String language = Locale.getDefault().getLanguage();
Locale newLocale = new Locale(this.language);
FacesContext context = FacesContext.getCurrentInstance();
context.getViewRoot().setLocale(newLocale);
short summary :
1. Use resource bundles for everything
2. for the navigation model, in the title you can't use expression language BUT you can use expression when creating the template of your site so instead of adding a real title in the nav model, specify a key matching the value in the bundle. This way you can use EL in your template that renders the navigation
3. When you create custom taskflows, use resource bundles.
4. when you want to change labels in existing webcenter taskflows, customize the resource bundle.
Hi gopinath,thank you for your video about globalization in webcenter. Could you share your source code in the video? My email is caihua.zhang.swufe@gmail.com. Thanks.
ReplyDeleteWill send you shorly
ReplyDeleteThis comment has been removed by the author.
DeleteHi please send me the source code at shankrana@gmail.com, I'm really new to it and would like to learn this. Thanks in advance GopiNath.
DeleteShashank
Hi, a very nice article on globalization, however, I have written a very good article on the same topic, read this true face of globalization..
ReplyDeletehttp://www.youngconcepts.in/2012/05/globalization-truth.html
Hi,
ReplyDeleteCan you send it to my mail also?
phuu.tek@gmail.com
Also, can you share how do you globalise those item which are found in the default catalog?
It would be an interesting topic as the video has never spoken about this.
Thanks. keep on blogging
Hi,
ReplyDeleteCould you please send me the source code also to me?
Email : meerahussainmsc@gmail.com
Thanks
Hi,
ReplyDeleteI am very interested your article,
can you share the source code to me?
email: aaarrriii@yahoo.com
Thanks.