diff --git a/CRM/Core/I18n.php b/CRM/Core/I18n.php index fe4e46110c25..1da5d2800551 100644 --- a/CRM/Core/I18n.php +++ b/CRM/Core/I18n.php @@ -448,7 +448,7 @@ protected function crm_translate_raw($text, $domain, $count, $plural, $context) if (isset($count) && isset($plural)) { if ($this->_phpgettext) { - $text = $this->_phpgettext->ngettext($text, $plural, $count); + $text = $this->_phpgettext->ngettext($text, $plural, (int) $count); } else { // if the locale's not set, we do ngettext work by hand