• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic