From 2c43e117a129fa3cd6828a69d9ebc133c1987229 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 19 Sep 2015 16:34:23 +0200 Subject: [PATCH] Updated Translation (markdown) --- Translation.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Translation.md b/Translation.md index 5b86d40..0515ce1 100644 --- a/Translation.md +++ b/Translation.md @@ -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: