Liferay has a multilanguage architecture and enables users to add content with many translations. Moreover, it gives users out-of-the-box functionality to change languages. Apart from this, the content portal also contains many labels that also have their own translation. It means that the Liferay design has a functionality in which it is possible to translate labels or fields. If we look into the sources (portal-impl/src/content
), there are a lot of files with the following names: Language_en.properties
, Language_de.properties
, Language_pl.properties
, and so on. The ISO 639-1 standard defines a set of possible codes for every language, such as en for English, de for German, and so on. The Liferay Portal supports up to 47 languages, which are defined in the portal-impl/src/portal.properties
file called locales. Default translations do not always meet our expectations. Thus, in this recipe, we will show you how to change the existing labels using the hook plugin...
Liferay 6.x Portal Enterprise Intranets Cookbook
Liferay 6.x Portal Enterprise Intranets Cookbook
Overview of this book
Table of Contents (19 chapters)
Liferay 6.x Portal Enterprise Intranets Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Installation and Basic Configuration
Authentication and Registration Process
Working with a Liferay User / User Group / Organization
Liferay Site Configuration
Roles and Permissions
Documents and Media in Liferay
Working with Content
Search and Content Presentation Tools
Liferay Workflow Capability
Collaboration Tools
Quick Tricks and Advanced Knowledge
Basic Performance Tuning
Index
Customer Reviews