When completing the last tutorial, you may have noticed the text right at the top of the screen "Welcome to Jetspeed". The text comes from a Java localised resource file. This tutorial will show you how to create your own localised resources to easily support multiple languages without hard-coding messages in your Java source code.
In this tutorial, we will:
Lets get started. From the JPortal /tutorial distribution root directory, type:
maven -Dtutorial=2 jetspeed:deploy
Recommend bringing up these configuration files in your editor:
- 1. tutorials/2/TurbineResources.properties.merge
- 2. src/java/org/apache/jetspeed/tutorial/modules/localization/JportalLocalization_en.properties
- 3. src/java/org/apache/jetspeed/tutorial/modules/localization/JportalLocalization_fr.properties
- 4. tutorials/2/templates/vm/navigations/htmlbottom-jportal.vm
- 5. tutorials/2/JetspeedResources.properties.merge
since we will reference them in tutorial 2.