From 21b3ba38e710ccf08b95491aa3880548f3e2e866 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sun, 31 Jan 2021 12:05:02 +0100 Subject: Fix polish plurals function --- view/pl/hstrings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/pl') diff --git a/view/pl/hstrings.php b/view/pl/hstrings.php index 943fe36f3..85bb3d0e5 100644 --- a/view/pl/hstrings.php +++ b/view/pl/hstrings.php @@ -2,10 +2,10 @@ 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)); + 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))"; +App::$strings["plural_function_code"] = "(n==1 ? 0 : (n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2))"; App::$strings["Can view my channel stream and posts"] = "Może wyświetlać strumień i posty z mojego kanału"; App::$strings["Can send me their channel stream and posts"] = "Może przesyłać mi strumień swojego kanału i posty"; App::$strings["Can view my default channel profile"] = "Może wyświetlać mój domyślny profil kanału"; -- cgit v1.2.3