Skip to content

Instantly share code, notes, and snippets.

@suissa
Created February 16, 2012 03:09
Show Gist options
  • Save suissa/1841372 to your computer and use it in GitHub Desktop.
Save suissa/1841372 to your computer and use it in GitHub Desktop.
Inflector para plural pt-br
<?php
Inflector::rules('singular', array('rules' => array('/(.*)ns$/i' => '\1m','/(.*)res$/i' => '\1r'), 'irregular' => array(), 'uninflected' => array()));
Inflector::rules('plural', array('rules' => array('/(.*)m$/i' => '\1ns','/(.*)r$/i' => '\1res'), 'irregular' => array(), 'uninflected' => array()));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment