the 1st method is the correct one, because you .po file needn't need
to know all $name possibilities
then you can translate "Edit %s" to "Whatever %s" you want, and %s can
be tomatoes or potatoes or carrots or ...

On 11 juin, 18:20, Gilles Dubois <[EMAIL PROTECTED]> wrote:
> In CakePHP, in particular in the scaffolding, there are many lines of
> code with, for example, sprintf(__("Edit %s", true), $name)) who, in
> my opinion, do not function, while __(sprintf ("Edit %s", $name),
> true) gives the awaited result. What do you think about it?


--~--~---------~--~----~------------~-------~--~----~
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