Wednesday, September 24, 2008

Re: Variables in localization strings

Hi,

El 24/09/2008, a las 17:38, lemp escribió:

> French: __("objectif", true) . " " . $year;
>
> English: $year . " " . __("objectif", true);

The __() function supports the sprintf format, so

> French: sprintf(__("objectif %s", true));
>
> English: sprintf(__("%s objectif", true));


--
Fran Iglesias
frankie@buabua.com

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: