Quickly adding localization to an XPages app

I needed to quickly make an application available in multiple languages. Luckily I had all strings already gathered in a properties file. So the following things I needed to add:

  • A translated version of the strings properties file
  • Some sort of navigation to choose another language than the browser default one.

For the first step Google Translate was my friend. Step two was not so hard either:

context.setLocaleString(‘en’)
context.reloadPage()

So a couple of minutes work and a surprised customer 🙂

Capture

Advertisements