• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Internatonalization in Liferay

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
saumil baxi
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic