|
@@ -102,13 +102,15 @@ class Inflector {
|
|
* @var array
|
|
* @var array
|
|
*/
|
|
*/
|
|
private static $uncountable = array(
|
|
private static $uncountable = array(
|
|
|
|
+ 'audio',
|
|
'equipment',
|
|
'equipment',
|
|
- 'data',
|
|
|
|
'deer',
|
|
'deer',
|
|
'fish',
|
|
'fish',
|
|
|
|
+ 'gold',
|
|
'information',
|
|
'information',
|
|
'money',
|
|
'money',
|
|
'rice',
|
|
'rice',
|
|
|
|
+ 'police',
|
|
'series',
|
|
'series',
|
|
'sheep',
|
|
'sheep',
|
|
'species',
|
|
'species',
|
|
@@ -138,7 +140,7 @@ class Inflector {
|
|
*/
|
|
*/
|
|
public static function plural($value, $count = null)
|
|
public static function plural($value, $count = null)
|
|
{
|
|
{
|
|
- if ( ! is_null($count) and $count <= 1) return $value;
|
|
|
|
|
|
+ if ( ! is_null($count) and $count == 1) return $value;
|
|
|
|
|
|
$irregular = array_flip(static::$irregular);
|
|
$irregular = array_flip(static::$irregular);
|
|
|
|
|
|
@@ -200,4 +202,4 @@ class Inflector {
|
|
return $value;
|
|
return $value;
|
|
}
|
|
}
|
|
|
|
|
|
-}
|
|
|
|
|
|
+}
|