Commit 96c6f54d authored by Ghislain Loas's avatar Ghislain Loas

dev #56034 endle english plural

parent 57fb2c7f
......@@ -29,18 +29,16 @@ THE SOFTWARE.
* Used to generate on-the-fly method names and attributes for Storm_Model_Abstract mainly
*/
class Storm_Inflector {
protected static $_singular = [
'/eux$/i' => 'eu',
protected static $_singular = ['/eux$/i' => 'eu',
'/aux$/i' => 'al',
'/s$/i' => ''
];
'/ies$/i' => 'y',
'/s$/i' => ''];
protected static $_plural = [
'/eu$/i'=> 'eux',
protected static $_plural = ['/eu$/i'=> 'eux',
'/al$/i'=> 'aux',
'/s$/i'=> 's',
'/$/'=> 's'
];
'/$/'=> 's',
'/y$/i' => 'ies'];
protected static
$_uncountable = ['avis'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment