How to Internationalize ( i18n ) your JSF (JavaServer Faces) Applications- i18n and JSF 2.0 Video Tutorial

http://www.youtube.com/watch?v=mYmQ4q4Ysdoendofvid [starttext] This is a Video Tutorial explains By the way, to see the high quality version of these videos or even download the source code, you can go to the website at the beginning of the video: http://jsf.mcnz.com

This tutorial picks up from the previous one that introduces us to various JSF custom tags. Here we look at how the JSF framework addresses common challenges that arise when creating web based applications, namely the challenge of supporting multiple languages and country codes in your applications. Here we use a combination of property files and the key JSF custom tags required to properly internationalize (i18n) your web based applications.

Note that this tutorial demonstrates the loadbundle tag. You can alternatively set up a global configuration setting for your property files and resource bundles in the faces-config.xml file.

By the way, don't use dot notation in your property files. In JSF 2.0, the expression language will try and do some crazy interpretation on dot separated words. (Never use dots aka. periods, '.', as delimiters. JSF 2.0 EL will cough up on them)

I've used underscores, and my property files look something like this:

###### i18n_en.properties English Translations ######
hw_title = JSF Made Easy
hw_helloworld = Hello World.Check out the link below!
hw_link = http://www.google.com
hw_linkdescription = It's google dot calm

By the way, to see the high quality version of these videos or even download the source code, you can go to the website at the beginning of the video:

http://jsf.mcnz.com

[endtext]

Check out this stream