andreasgal/gaia — pull request #1124 by arcturus (2012-04-02 15:36:01+00:00)
Title: Loading l10n property files by locale instead of a single file.

Hi,

Just added the capability of having the l10n translation separated in different files based on locale.

With this instead of having a single huge file, we will have as many files as locales supporte, making fast to parse and translate the whole process.

Also helps each translator to deal with a specific file, instead of all of them working agains the same one.

Right now, and trying to keep the compatibility with current code will fallback to the current format if is not able find the file for the specific locale.

How it works?

Simple, same concept that the current system:

Will try to split the resource in path plus name and will try to load the files in this order:

mytranslations//contacts.properties
mytranslations/contacts.properties

That means that we will have a directory structure under 'mytranslations' with all supported locales.

Hope this helps!
Francisco.