* @return string
*/
public static function getResourceDir() {
- return \Civi::paths()->getPath('[civicrm.l10n]/.');
+ return CRM_Utils_File::addTrailingSlash(\Civi::paths()->getPath('[civicrm.l10n]/.'));
}
/**
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