In my baked view/edit/index screens, the __() internationalization
function is used with values coming from the DB inside $html->link.
For example:
echo $html->link(__($placement['Status']['status'], true),
array('controller'=> 'statuses', 'action'=>'view', $placement['Status']
['id']));

when the values are NULL (which is allowed in some cases), it spits
out this in my view, for each null field:

Project-Id-Version: CakePHP 1.2.x.x POT-Creation-Date: PO-Revision-
Date: 2006-12-23 03:28-0600 Last-Translator: Larry E. Masters Language-
Team: CakePHP I18N & I10N Team MIME-Version: 1.0 Content-Type: text/
plain; charset=utf-8 Content-Transfer-Encoding: 8bit Plural-Forms:
nplurals=2; plural=(n != 1); X-Poedit-Language: English X-Poedit-
Country: UNITED STATES X-Poedit-SourceCharset: utf-8

I found this in the core.po file:
msgid ""
msgstr ""
"Project-Id-Version: CakePHP 1.2.x.x\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2006-12-23 03:28-0600\n"
"Last-Translator: Larry E. Masters <phpnut (at) gmail (dot) com>\n"
"Language-Team: CakePHP I18N & I10N Team <[EMAIL PROTECTED]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Language: English\n"
"X-Poedit-Country: UNITED STATES\n"
"X-Poedit-SourceCharset: utf-8\n"

So I figured, the null is matching on msgid "", and spitting that
stuff out.
I don't know anything about gettext, but I removed the above and
rebuilt the core.mo file in an attempt to get rid of this. No luck.

Works fine if I remove the __() stuff, but heck.. I'm going to have
around 130 affected files * however many fields to seek and destroy.
I'd rather fix the problem with the internationalization gunk.

Anyone seen this? I'm running the latest 1.2.
Thanks
Scott


--~--~---------~--~----~------------~-------~--~----~
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