Labels – A simple locales tool

Building websites for the EU institutions, a common feature requested for web apps is a multi-lingual interface. I’ve designed a really simple helper class to handle labels and language versions.

The class can be downloaded here.

To use the class, simply import it into your project

Then, load your xml based labels list into the class:

From now on, your labels are available through the class using their ids :

If the user changes the locale, just reload the corresponding label list and voilà.