- Target: Intermediate level web-developers (Java-platform).
- Sample application on Internationalization with JSF
- Video Tutorial on Internationalization with JSF
- To support Internationalization, in the web-pages, the text messages and the control texts make use of the keys for the values/messages. In the value fields, keys are mentioned/provided as the values. Later, based on the current locale/language, the keys are replaced with the appropriate texts for the current locale/language
- In some property files, keys and their corresponding values are listed
- For each language, one property file is provided
- The file names usually end with .properties
- Example: contents of the Property files:
search.text.new=New SearchorderBtn.text = Confirm Order
- Wherever orderBtn.text is used for values, will be replaced with “Confirm Order”
- If the file name is messages.properties, the file can be loaded into the JSP pages as follows:
- Example use of the property file from JSP pages
- You are also required to list the default languages (that your application supports) in the faces-config.xml file
From: http://sitestree.com/?p=4998
Categories:Java Short Notes
Tags:
Post Data:2010-04-09 07:54:07
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada