Merge branch 'master' of ssh://git.autonomic.zone:2222/autonomic-cooperative/opencase
This commit is contained in:
commit
6857bb8d4c
@ -2,8 +2,14 @@
|
|||||||
|
|
||||||
namespace Drupal\opencase;
|
namespace Drupal\opencase;
|
||||||
|
|
||||||
|
|
||||||
class Pluraliser {
|
class Pluraliser {
|
||||||
|
const NO_CHANGE = ['Staff'];
|
||||||
public static function pluralise($text) {
|
public static function pluralise($text) {
|
||||||
|
if (in_array($text, self::NO_CHANGE)) {
|
||||||
|
return $text;
|
||||||
|
} else {
|
||||||
return $text . "s";
|
return $text . "s";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user