This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Internatonalization in Liferay Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Internatonalization in Liferay" Watch "Internatonalization in Liferay" New topic
Author

Internatonalization in Liferay

saumil baxi
Ranch Hand

Joined: Apr 18, 2008
Posts: 58
HI,
Does any one know how to achieve Internationalization in Liferay in External war. I dont want to do it in ext environment .

Thanks,
Saumil
Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
Hi Saumil,

Liferay supports multi-languages (22 languages)

Abstract from Liferay Book:

It is quite easy to configure the web site with multilingual support. You can simply add the Language portlet to any Page and allow end-users to quickly select a different localization with one click. Let's do it as follows:

1. To change the current language into German language, you simply click on the icon, "Deutsch (Deutschland)", in the Language portlet.

2. The whole web site will appear in German language, and a sample is shown in the following figure.


Books: Liferay Portal 6.1 Systems Development
saumil baxi
Ranch Hand

Joined: Apr 18, 2008
Posts: 58
Thanks for the reply.
But how do I configure the properties files in the external war.
Where should I keep my properties file in my application .
Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
One example:

Removing an Unwanted Language (Abstract from the Liferay Book)

By default, Liferay supports all the following languages.

locales=ar_SA,ca_AD,ca_ES,zh_CN,zh_TW,cs_CZ,nl_NL,en_US,fi_FI,fr_FR,de_DE,el_GR,hu_HU,it_IT,ja_JP,ko_KR,fa_IR,pt_BR,ru_RU,es_ES,sv_SE,tr_TR,vi_VNIf

you want to support English, German and Chinese only, you can simply remove the unwanted locales, and your locales value looks like
this:

locales=en_US,de_DE,zh_CN
saumil baxi
Ranch Hand

Joined: Apr 18, 2008
Posts: 58
Hi,
I think there is some miscommunication. i have created my own application in a separate WAR. How do I configure Internationalization in that application without taking help of ext environment . I am talking in point of coding . where should i keep my properties file . Please let me know if you want any more info.

Thanks
Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
Hi Saumil,

It is very useful for you to develop portlet with multi-languages supported

When you develop new portlet either Struts or Spring MVC (or JSF), you can use above languages settings.

Liferay keeps multi-languages supported simple.

Good Luck!
 
 
subject: Internatonalization in Liferay