pluraliser ignores selected words e,g, "staff"
This commit is contained in:
parent
eb9335b250
commit
183537db39
@ -2,8 +2,14 @@
|
||||
|
||||
namespace Drupal\opencase;
|
||||
|
||||
|
||||
class Pluraliser {
|
||||
const NO_CHANGE = ['Staff'];
|
||||
public static function pluralise($text) {
|
||||
if (in_array($text, self::NO_CHANGE)) {
|
||||
return $text;
|
||||
} else {
|
||||
return $text . "s";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user