From da0896fe42df508be15a3e4b6ed6cf054d859360 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Fri, 2 Apr 2021 09:00:27 +0200 Subject: [PATCH] set plurals for and credit Catalan translation --- CHANGELOG.md | 2 +- CREDITS.md | 1 + js/privatebin.js | 2 +- lib/I18n.php | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35c2a00..a5e832c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # PrivateBin version history * **1.4 (not yet released)** - * ADDED: Translation for Hebrew, Lithuanian and Indonesian + * ADDED: Translation for Hebrew, Lithuanian, Indonesian and Catalan * CHANGED: Upgrading libraries to: DOMpurify 2.0.14 * **1.3.4 (2020-03-22)** * CHANGED: Minimum required PHP version is 5.6, due to a change in the identicon library and to use php's native hash_equals() diff --git a/CREDITS.md b/CREDITS.md index c750b87..8b24f16 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -49,3 +49,4 @@ Sébastien Sauvage - original idea and main developer * Yaron Shahrabani - Hebrew * Moo - Lithuanian * whenwesober - Indonesian +* retiolus - Catalan diff --git a/js/privatebin.js b/js/privatebin.js index de8cb4d..9beb3d9 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -795,7 +795,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { return n % 10 === 1 && n % 100 !== 11 ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2); case 'sl': return n % 100 === 1 ? 1 : (n % 100 === 2 ? 2 : (n % 100 === 3 || n % 100 === 4 ? 3 : 0)); - // bg, de, en, es, hu, it, nl, no, pt + // bg, ca, de, en, es, hu, it, nl, no, pt default: return n !== 1 ? 1 : 0; } diff --git a/lib/I18n.php b/lib/I18n.php index 45e8dd5..6299f22 100644 --- a/lib/I18n.php +++ b/lib/I18n.php @@ -334,7 +334,7 @@ class I18n return $n % 10 == 1 && $n % 100 != 11 ? 0 : ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? 1 : 2); case 'sl': return $n % 100 == 1 ? 1 : ($n % 100 == 2 ? 2 : ($n % 100 == 3 || $n % 100 == 4 ? 3 : 0)); - // bg, de, en, es, hu, it, nl, no, pt + // bg, ca, de, en, es, hu, it, nl, no, pt default: return $n != 1 ? 1 : 0; } diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index c28b44d..3e2bc93 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -72,7 +72,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 4909811..dfdee50 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ endif; ?> - +