** README Translations **

# Contents

* [Files involved](#files)
* [Translate (or change existing texts)`](#translate)


# <a name="files"></a>Files involved

Name                                | Type              | Description
------------------------------------|-------------------|------------
`translations/messages.de.php`      | PHP source        | translations for German
`translations/messages.en.php`      | PHP source        | translations for English



# <a name="translate"></a>Translate (or change existing texts)

The translation files are located in the sub directory `translations` . The translation mechanism loads all files in this directory that comply with the pattern `messages.[language].php`, whereby language is one of the ISO 639-1 two-letter codes, for example `en` or `de`.

## Files `messages.de.php` and `messages.en.php`

You may change the texts on the right side (after the characters `=>`).

## Translation for a new language

You may translate the whole interface to a new language by copying an existing translation file, renaming the new file to  `messages.[new language].php` (for example `messages.fr.php`) and just translate all the texts on the right side (after the characters `=>`) into the new language (for example French).  
Pay attention to the encoding of the new file: it must be UTF-8.

Afterwards you must add the new translation to the constructor of the class QrbTranslator by calling addResource() with the new file.
