Best would be to save the po file in UTF-8 (without BOM).

On Jun 12, 8:22 pm, "Aaron Thies" <[EMAIL PROTECTED]> wrote:
> I am creating a French site in Cake 1.2 and the i18n stuff is working
> good.  My issue is with the __() function.  When I have a character
> like &eacute; in msgstr of my default.po file it will display the
> character this represents correctly with __("someTag"), but when I
> return the value __("someTag", true) this does not work?  The only
> difference in the definition for __() is one is a "return" and one is
> an "echo".  Any idea?
>
> cake/basics.php...
>
>         function __($singular, $return = false) {
>                 if(!class_exists('I18n')) {
>                         uses('i18n');
>                 }
>                 $calledFrom = debug_backtrace();
>                 $dir = dirname($calledFrom[0]['file']);
>
>                 if($return === false) {
>                         echo I18n::translate($singular, null, null, 5, null, 
> $dir);
>                 } else {
>                         return I18n::translate($singular, null, null, 5, 
> null, $dir);
>                 }
>         }
>
> --
> Aaron Thies
>
> "When you're married you'll understand the value of fresh produce."
> - Tony Soprano


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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