On Jun 25, 2011, at 07:49, Prabha Vathi wrote:
> I have created default.po in locale, eng, LC_MESSAGES
> in core, i have this line.
>
> Configure::write('Config.language', 'eng');
>
> But when i use <?php __('congrat', true);?> this is not sending the msgstr to
> output.
For CakePHP 1.3 you need:
<?php __('congrat');?>
or:
<?php echo __('congrat', true);?>
For CakePHP 2.0 it will change and you will need:
<?php echo __('congrat');?>
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php