From 8cf0c86ebbd8c71b5257bb866a771dc9455ba4a3 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 2 Nov 2019 17:18:22 +0100 Subject: [PATCH] simplify case statement, update documentation --- CHANGELOG.md | 1 + CREDITS.md | 3 ++- js/privatebin.js | 1 - lib/I18n.php | 1 - tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2296225..785cdfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # PrivateBin version history * **1.4 (not yet released)** + * ADDED: Translation for Ukrainian (#533) * ADDED: Option to send a mail with the link, when creating a paste (#398) * FIXED: Password disabling option (#527) * **1.3.1 (2019-09-22)** diff --git a/CREDITS.md b/CREDITS.md index 873b0e3..2fb559e 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -43,4 +43,5 @@ Sébastien Sauvage - original idea and main developer * Michael van Schaik - Dutch * Péter Tabajdi - Hungarian * info-path - Czech -* BigWax - Bulgarian \ No newline at end of file +* BigWax - Bulgarian +* AndriiZ - Ukrainian \ No newline at end of file diff --git a/js/privatebin.js b/js/privatebin.js index 71290f8..6ddbf11 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -629,7 +629,6 @@ jQuery.PrivateBin = (function($, RawDeflate) { case 'pl': return n === 1 ? 0 : (n % 10 >= 2 && n %10 <=4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2); case 'ru': - return n % 10 === 1 && n % 100 !== 11 ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2); case 'uk': return n % 10 === 1 && n % 100 !== 11 ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2); case 'sl': diff --git a/lib/I18n.php b/lib/I18n.php index 7bc674b..7102908 100644 --- a/lib/I18n.php +++ b/lib/I18n.php @@ -303,7 +303,6 @@ class I18n case 'pl': return $n == 1 ? 0 : ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? 1 : 2); case 'ru': - return $n % 10 == 1 && $n % 100 != 11 ? 0 : ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? 1 : 2); case 'uk': return $n % 10 == 1 && $n % 100 != 11 ? 0 : ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? 1 : 2); case 'sl': diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 6cc3105..48f3448 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 6029350..8d4b47c 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ endif; ?> - +