<?php$value = '[EMAIL PROTECTED]';
sprintf(__('User with e-mail address %s', true), $value);
?>

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

On Sat, May 3, 2008 at 1:07 PM, Ivans <[EMAIL PROTECTED]> wrote:

>
> Consider flash message you need show to your visitor during
> registration process because user with that e-mail address already
> exists in your users table.
>
> "User with e-mail address "[EMAIL PROTECTED]" already exists in our
> database. Please try to use another e-mail address".
>
> YOU CAN'T, because __() function is very primitive. It doesn't take
> additional parameters which could replace some placeholders like %s in
> msgstr. You can just append some echo at the end of returned (echoed)
> string comming from __() function and your message than looks like
> machine translated.
>
> <?__("email_exists"); echo $some_email?>
>
> Crazy.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to