friendica-addons/rendertime/lang/cs/strings.php

8 lines
281 B
PHP
Raw Permalink Normal View History

2014-09-06 15:59:46 +00:00
<?php
if(! function_exists("string_plural_select_cs")) {
function string_plural_select_cs($n){
$n = intval($n);
2023-04-09 05:58:49 +00:00
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; }
}}