- Address part of https://github.com/friendica/friendica/issues/13699#issuecomment-
1848363608
*
* @param string $singular
* @param string $plural
- * @param int $count
+ * @param float $count
* @param array $vars Variables to interpolate in the translation string
*
* @return string
* @throws \Exception
*/
- public function tt(string $singular, string $plural, int $count, ...$vars): string
+ public function tt(string $singular, string $plural, float $count, ...$vars): string
{
$s = null;
*
* @return bool
*/
- private function stringPluralSelectDefault(int $n): bool
+ private function stringPluralSelectDefault(float $n): bool
{
- return $n != 1;
+ return intval($n) != 1;
}
/**