Thursday, May 31, 2012

how to have dynamic multilingual text strings

HI,

I wonder how I can handle this:

I have a multilingual project and would like to have a text string like this:

__('This is a dummy text and here I want to have a %variable% inside the text string');

I am working with .po files
msgid " This is a dummy text and here I want to have a %variable% inside the text string' "
msg ""

How do I put a placeholder into those text strings?
And how do I replace the placeholder with the wanted value?

Thanks for any tips!!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: