the thing is, that in most languages (especially english)
you only have to alter the last view letters in order to get the
plural

so thats probably why the "s" is removed in the end, but not from
"Datas"
although you did set up some irregular Plural for it

by the way:
$irregularPlural = array(
        'data_comemorativa' => 'datas_comemorativas'
)
would be more appropriate than your second approach

maybe you have to tweak the pluralization here a little bit

mark

On 17 Jul., 22:13, Thiago Elias <thiagopt...@gmail.com> wrote:
> Hi all,
>
> I'm new in cake, and I've been experiencing some problems with composed
> plural in cakephp 1.2 (the last stable release)
>
> e.g.:
> DataComemorativa
> should be
> DatasComemorativas..
>
> Datas Comemorativas in Portuguese means Special Dates (or something like
> that).
>
> The matter is: I can't make cakePHP recognize it, even using the
> inflections.php
>
> I've tried to set
>
> $irregularPlural = array(
>         'data_comemorativa' => 'datas_comemorativas'
> )
>
> or even
>
> $irregularPlural = array(
>         'data' => 'datas',
>         'comemorativa' => 'comemorativas'
> )
>
> but unfortunatelly, cakePHP didn't make it.
>
> It always trying to find model *DatasComemorativa* instead *DataComemorativa
> *
>
> Does anyone knows how to make it that way ?!
>
> Thanks for the help.
>
> Atenciosamente,
> Thiago Elias.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to