From f0d0daffcc295bc8081dda9f3116e67651b63fa4 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Tue, 5 Apr 2022 07:22:07 +0200 Subject: [PATCH] enable and credit new Finnish translation --- CHANGELOG.md | 4 ++-- CREDITS.md | 12 ++++++------ js/privatebin.js | 6 +++--- lib/I18n.php | 4 ++-- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af5b7238..9526c7df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # PrivateBin version history - * **1.4 (not yet released)** - * ADDED: Translations for Corsican, Estonian and Lojban + * **1.4 (2022-04-09)** + * ADDED: Translations for Corsican, Estonian, Finnish and Lojban * ADDED: new HTTP headers improving security (#765) * ADDED: Download button for paste text (#774) * ADDED: Opt-out of federated learning of cohorts (FLoC) (#776) diff --git a/CREDITS.md b/CREDITS.md index 536042b1..e40e45ab 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -2,18 +2,17 @@ ## Active contributors -Simon Rupf - current developer and maintainer -rugk - security review, doc improvment, JS refactoring & various other stuff -R4SAS - python client, compression, blob URI to support larger attachments +* Simon Rupf - current developer and maintainer +* rugk - security review, doc improvment, JS refactoring & various other stuff +* R4SAS - python client, compression, blob URI to support larger attachments ## Past contributions -Sébastien Sauvage - original idea and main developer - +* Sébastien Sauvage - original idea and main developer * Alexey Gladkov - syntax highlighting * Greg Knaddison - robots.txt * MrKooky - HTML5 markup, CSS cleanup -* Simon Rupf - WebCrypto, unit tests, containers images, database backend, MVC, configuration, i18n +* Simon Rupf - WebCrypto, unit tests, container images, database backend, MVC, configuration, i18n * Hexalyse - Password protection * Viktor Stanchev - File upload support * azlux - Tab character input support @@ -56,3 +55,4 @@ Sébastien Sauvage - original idea and main developer * sarnane - Estonian * foxsouns - Lojban * Patriccollu di Santa Maria è Sichè - Corsican +* Markus Mikkonen - Finnish diff --git a/js/privatebin.js b/js/privatebin.js index f302818b..21ba5438 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -627,7 +627,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { * @prop {string[]} * @readonly */ - const supportedLanguages = ['bg', 'ca', 'co', 'cs', 'de', 'es', 'et', 'fr', 'he', 'hu', 'id', 'it', 'jbo', 'lt', 'no', 'nl', 'pl', 'pt', 'oc', 'ru', 'sl', 'uk', 'zh']; + const supportedLanguages = ['bg', 'ca', 'co', 'cs', 'de', 'es', 'et', 'fi', 'fr', 'he', 'hu', 'id', 'it', 'jbo', 'lt', 'no', 'nl', 'pl', 'pt', 'oc', 'ru', 'sl', 'uk', 'zh']; /** * built in language @@ -793,7 +793,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { /** * per language functions to use to determine the plural form * - * @see {@link https://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html} + * @see {@link https://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html} * @name I18n.getPluralForm * @function * @param {int} n @@ -823,7 +823,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, ca, de, en, es, et, hu, it, nl, no, pt + // bg, ca, de, en, es, et, fi, hu, it, nl, no, pt default: return n !== 1 ? 1 : 0; } diff --git a/lib/I18n.php b/lib/I18n.php index 1321c4a2..7b64655e 100644 --- a/lib/I18n.php +++ b/lib/I18n.php @@ -305,7 +305,7 @@ class I18n /** * determines the plural form to use based on current language and given number * - * From: https://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html + * From: https://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html * * @access protected * @static @@ -336,7 +336,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, ca, de, en, es, et, hu, it, nl, no, pt + // bg, ca, de, en, es, et, fi, hu, it, nl, no, pt default: return $n != 1 ? 1 : 0; } diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 41fa2deb..581ab81b 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -73,7 +73,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index df2031b9..49d111b1 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -51,7 +51,7 @@ endif; ?> - +