On Sun, Jun 26, 2011 at 1:58 AM, Ryan Schmidt <google-2010@ryandesign.com> wrote:
On Jun 25, 2011, at 07:49, Prabha Vathi wrote:For CakePHP 1.3 you need:
> 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.
<?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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
--
-- Prabhavathi
--
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:
Post a Comment