diff options
Diffstat (limited to 'core/libraries/I18n.php')
-rw-r--r-- | core/libraries/I18n.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/libraries/I18n.php b/core/libraries/I18n.php index 7bb2eff6..7c1bafd9 100644 --- a/core/libraries/I18n.php +++ b/core/libraries/I18n.php @@ -93,7 +93,7 @@ class I18n_Core { */ public function translate($message, $options=array()) { $locale = empty($options['locale']) ? $this->_config['default_locale'] : $options['locale']; - $count = empty($options['count']) ? null : $options['count']; + $count = isset($options['count']) ? $options['count'] : null; $values = $options; unset($values['locale']); $this->log($message, $options); @@ -188,8 +188,6 @@ class I18n_Core { private function pluralize($locale, $entry, $count) { if (!is_array($entry)) { return $entry; - } else if ($count == null) { - $count = $locale == "en" ? 0 : 1; } $plural_key = self::get_plural_key($locale, $count); |