added translation for Czech, provided by @info-path, fixes #424

This commit is contained in:
El RIDO 2019-06-23 12:06:36 +02:00
parent c9680ed741
commit 8dc9db90c9
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
8 changed files with 185 additions and 3 deletions

View file

@ -420,7 +420,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
* @prop {string[]}
* @readonly
*/
const supportedLanguages = ['de', 'es', 'fr', 'it', 'hu', 'no', 'nl', 'pl', 'pt', 'oc', 'ru', 'sl', 'zh'];
const supportedLanguages = ['cs', 'de', 'es', 'fr', 'it', 'hu', 'no', 'nl', 'pl', 'pt', 'oc', 'ru', 'sl', 'zh'];
/**
* built in language
@ -571,6 +571,8 @@ jQuery.PrivateBin = (function($, RawDeflate) {
me.getPluralForm = function(n) {
switch (language)
{
case 'cs':
return n === 1 ? 0 : (n >= 2 && n <=4 ? 1 : 2);
case 'fr':
case 'oc':
case 'zh':