Re: i18n - __() function and variable content
If you have to put some variable in i18n function:
echo sprintf(__("Add as %s", true), $content);
But, $content var should be already translated, so it's up to you how
you do it, because I don't know the rest of your code ;-)
On Nov 15, 12:19 am, "Mariano C." <mariano.calan...@gmail.com> wrote:
> I have a code like:
>
> echo "Add as ".$content;
>
> I have to internationzalize this snippet of code, i need to put in
> i18n process even the $content variable, how can I do that?
>
> Best Regards
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home