Compare commits
2 Commits
737104d7bd
...
f48dae3371
Author | SHA1 | Date |
---|---|---|
naomi | f48dae3371 | |
naomi | 183537db39 |
|
@ -2,8 +2,14 @@
|
|||
|
||||
namespace Drupal\opencase;
|
||||
|
||||
|
||||
class Pluraliser {
|
||||
const NO_CHANGE = ['Staff'];
|
||||
public static function pluralise($text) {
|
||||
return $text . "s";
|
||||
if (in_array($text, self::NO_CHANGE)) {
|
||||
return $text;
|
||||
} else {
|
||||
return $text . "s";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue