Ok, I know this trick would be better handled by my application logic.
But so, why this syntax for "__n" function? why to this function
really needs a singular parameter in addition to plural parameter?
I mean, if it do force me to specify a singular, and a plural for
specific cases, it should works with both cases.
Even cause theres no sense to "__n" have a parameter for singular
string as "__" function already do this job.
As I mentioned, It could not be a problem with I18n::translate
function but it looks like a Basic::__n one.
On Mar 31, 8:20 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> But showing add coments, instead of show comments is a matter of logic
> of your application, I18N isn't intended to do it.
>
> if (count($comments) == 0) {
> // show add comment} else {
>
> // show comment/comments (here comes the __n)
>
> }
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---