Updated Translation (markdown)

El RIDO 2015-09-19 16:34:23 +02:00
parent aa7a108bf3
commit 2c43e117a1

@ -42,6 +42,10 @@ Some languages can have more then one plural forms. Which form to use depending
Currently we do not inform the JS part about the available languages on the server, but instead these are statically encoded in the file `lib/zerobin.js` in the property `i18n.supportedLanguages` (around line 300). If you add a new language, remember to add it there, too.
If your new language does use more complex plurals then English, you need to add the [formula](http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html) for it in two places:
* [lib/i18n.php](https://github.com/elrido/ZeroBin/blob/master/lib/i18n.php) in class i18n, method _getPluralForm()
* [js/zerobin.js](https://github.com/elrido/ZeroBin/blob/master/js/zerobin.js) in class i18n, method getPluralForm()
For the language labels displayed in the optional language selection drop down menu, a file called `i18n/languages.json` was created. Most languages should already be included with a translated language label and its English translation.
If you provide translations for one of the languages not included in the list, you need to add it in there. Create a new property with a (not yet existing) ISO code and the language labels in its native form and translated to English, as in the example below: