aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-04-30 21:24:44 +0200
committerMax Kostikov <max@kostikov.co>2021-04-30 21:24:44 +0200
commit8266a1490a08d22a080ff29ecd041bd8dbf85e5e (patch)
treec1d9fa1fbbe46cf585ad9362ed1520c567a3b12c
parent56554710ea7d0620d1d007fe849bc1da1bab7cdd (diff)
downloadvolse-hubzilla-8266a1490a08d22a080ff29ecd041bd8dbf85e5e.tar.gz
volse-hubzilla-8266a1490a08d22a080ff29ecd041bd8dbf85e5e.tar.bz2
volse-hubzilla-8266a1490a08d22a080ff29ecd041bd8dbf85e5e.zip
Fix Polish plurals expression
-rw-r--r--view/pl/hmessages.po2
-rw-r--r--view/pl/hstrings.php2
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)";