Hello petry,

there r some rules to you:
first, i dont know why, it doesnt work on cake 1.2...

i had tried on cake 1.1.13 and works fine

Rules to pluralize  " homem -> homens"       " canal -> canais "    "
pastel-> pasteis " etc etc etc

$pluralRules = array('/(.*)m$/i' => '\1ns','/(.*)al$/i' => '\1ais','/
(.*)el$/i' => '\1eis','/(.*)il$/i' => '\1is','/(.*)ol$/i' => '\1ois','/
(.*)ul$/i' => '\1uis');
$singularRules = array('/(.*)ns$/i' => '\1m','/(.*)ais$/i' => '\1al','/
(.*)eis$/i' => '\1el','/(.*)is$/i' => '\1il','/(.*)ois$/i' => '\1ol','/
(.*)uis$/i' => '\1ul');


Bye



On 15 mar, 18:35, "NOSLOW" <[EMAIL PROTECTED]> wrote:
> Can anyone provide an example inflections configuration that would
> override 'data' --> 'datum to 'data' --> 'data'?
>
> In version 1.2 of inflections.php, I see the comment:
>
> /**
>  * This is a key only array of plural words that should not be
> inflected.
>  * Notice the last comma
>  *
>  * $uninflectedPlural = array('.*[nrlm]ese', '.*deer', '.*fish',
> '.*measles', '.*ois', '.*pox');
>  */
>
> First off, what am I noticing about the last comma? When creating an
> array, you delimit your list with commas...what's significant about
> the last one?
>
> I have a table name "sp_data" and when I use the bake command to bake
> my model, it shows up as "SpDatum". Everything I've tried in
> inflections.php doesn't work. Please help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to