From 8266a1490a08d22a080ff29ecd041bd8dbf85e5e Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Fri, 30 Apr 2021 21:24:44 +0200 Subject: Fix Polish plurals expression --- view/pl/hmessages.po | 2 +- view/pl/hstrings.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/view/pl/hmessages.po b/view/pl/hmessages.po index d9bf0b4fa..8ade52e19 100644 --- a/view/pl/hmessages.po +++ b/view/pl/hmessages.po @@ -15,7 +15,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2));\n" "X-Generator: Poedit 2.3\n" #: ../../Zotlabs/Access/Permissions.php:56 diff --git a/view/pl/hstrings.php b/view/pl/hstrings.php index 8b0a4da0d..4372ccaab 100644 --- a/view/pl/hstrings.php +++ b/view/pl/hstrings.php @@ -2,7 +2,7 @@ if(! function_exists("string_plural_select_pl")) { function string_plural_select_pl($n){ - return ($n==1 ? 0 : $n%10>=2 && $n%10<=4 && ($n%100<12 || $n%100>14) ? 1 : 2); + return ($n==1 ? 0 : ($n%10>=2 && $n%10<=4 && ($n%100<12 || $n%100>14) ? 1 : 2)); }} App::$rtl = 0; App::$strings["plural_function_code"] = "(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2)"; -- cgit v1.2.3