translation instructions

Some instructions on how to deploy new translation files on you own server.

so, when you receive the files, you have to:

0.- fetch the two translation files. In this instructions, I'm going to use the english to spanish translation files . You can pick whatever file you want. There are two translation files, one for the "installer" part of the application, and one for the application itself. You can fetch the english to spanish translations here:

1.- make the translations. open the files, and replace whatever content is within the <target> tags with your own language's translation of what is written in english at the <source> tags.

2.- find out which code your language corresponds to at http://www.loc.gov/standards/iso639-2/php/code_list.php (choose your language code from the ISO 639-1 Code column). IMPORTANT NOTE if you're translating for a country's specific version of a language, you'll also need to find your country code here and build a country-specific language code by using <two_letters_language_code_lowercase>_<two_letters_country_code_uppercase>. For example:

  • Spanish as spoken in spain: es_ES
  • English as spoken in great britaul: en_GB

3.- add the language code info to your files. locate the line:

  <file source-language="EN" target-language="es" datatype="plaintext" original="messages" ... product-name="messages">

and replace the value of the "target-language" attribute by your language's iso 639-1 code. (or language_country combo)

4.- rename your translation files according to your language code. rename them to: messages.xy.xml, where xy is your language code. (or messages.xy_CT.xml, where CT is the country code)

5.- put them in their proper locations

  • apps/installer/i18n/messages.es.xml
  • apps/siwapp/i18n/messages.es.xml

(this is an example using the "es" language code, which is the one corresponding to spanish).

6.- don't forget!! send me the files to jzarate at gmail.com , so I can add them to the application's trunk