Update plural condition in strings.php after converter update

This commit is contained in:
Hypolite Petovan 2021-01-29 20:02:54 -05:00
parent 3bb10b82a1
commit bcd3a274f1
23 changed files with 23 additions and 23 deletions

View file

@ -3,7 +3,7 @@
if(! function_exists("string_plural_select_cs")) {
function string_plural_select_cs($n){
$n = intval($n);
return ($n == 1 && $n % 1 == 0) ? 0 : ($n >= 2 && $n <= 4 && $n % 1 == 0) ? 1: ($n % 1 != 0 ) ? 2 : 3;;
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
}}
;
$a->strings["Item not found."] = "Položka nenalezena.";