<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CakePHP 1.2 i18n/l10n</title>
	<atom:link href="http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=cakephp-12-i18nl10n</link>
	<description>Front-End Engineer</description>
	<lastBuildDate>Sat, 08 May 2010 03:21:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: The Di Lab</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-102</link>
		<dc:creator>The Di Lab</dc:creator>
		<pubDate>Tue, 18 Aug 2009 13:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-102</guid>
		<description>Okay, 

This is my solution

http://www.the-di-lab.com/?p=72</description>
		<content:encoded><![CDATA[<p>Okay, </p>
<p>This is my solution</p>
<p><a href="http://www.the-di-lab.com/?p=72" rel="nofollow">http://www.the-di-lab.com/?p=72</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-98</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Thu, 30 Apr 2009 03:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-98</guid>
		<description>Since I made this blog post the official CakePHP manual has been upgraded to include a normal entry for l10n.

http://book.cakephp.org/view/161/Localization-Internationalization</description>
		<content:encoded><![CDATA[<p>Since I made this blog post the official CakePHP manual has been upgraded to include a normal entry for l10n.</p>
<p><a href="http://book.cakephp.org/view/161/Localization-Internationalization" rel="nofollow">http://book.cakephp.org/view/161/Localization-Internationalization</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gediminas</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-97</link>
		<dc:creator>Gediminas</dc:creator>
		<pubDate>Wed, 29 Apr 2009 10:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-97</guid>
		<description>uses(&#039;L10n&#039;); &lt;- why u using it before class?
class OrderController extends AppController {
...
}
--
locale/eng/LC_MESSAGES/default.po (English) &lt;- what is &quot;locale&quot;, and &quot;LC_MESSAGES&quot; ?
--
where write this, and what this doing?
__(&quot;closeWindow&quot;);
__(&quot;closeWindow&quot;, true);

at all, can u write normal tutorial?</description>
		<content:encoded><![CDATA[<p>uses(&#8216;L10n&#8217;); &lt;- why u using it before class?<br />
class OrderController extends AppController {<br />
&#8230;<br />
}<br />
&#8211;<br />
locale/eng/LC_MESSAGES/default.po (English) &lt;- what is &#8220;locale&#8221;, and &#8220;LC_MESSAGES&#8221; ?<br />
&#8211;<br />
where write this, and what this doing?<br />
__(&#8220;closeWindow&#8221;);<br />
__(&#8220;closeWindow&#8221;, true);</p>
<p>at all, can u write normal tutorial?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kym</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-81</link>
		<dc:creator>Kym</dc:creator>
		<pubDate>Fri, 09 Jan 2009 02:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-81</guid>
		<description>Ive got a weird problem here, I have a default.po that works fine with some msgid/msgstr pair, but when I add new ones these new ones doesnt work, they show the msgid when called.

For example:

		link(
				$html-&gt;image(&#039;delete.png&#039;, array(&#039;alt&#039; =&gt; &#039;Edit&#039;)),
				array(&#039;action&#039; =&gt; &#039;delete&#039;, &#039;id&#039; =&gt; $post[&#039;Post&#039;][&#039;id&#039;]),
				null, __(&#039;post.delete.ask&#039;, true), false
		); ?&gt;

The msgid &#039;post.delete.ask&#039; I just added to default.po, and it doesn&#039;t show the corresponding msgstr. But if i change it to &#039;comment.ask.delete&#039; it does show the correctly msgstr.

Its happening for all new msgid/msgstr pair, no matter where I write then on default.po.
I&#039;m using the same editor I used to write all the pair (eclipse).

msgid &quot;post.delete.ask&quot;
msgstr &quot;Deseja realmente deletar este post?&quot;
msgid &quot;comment.delete.ask&quot;
msgstr &quot;Deseja realmente deletar este comentário?&quot;


Any hints? :(</description>
		<content:encoded><![CDATA[<p>Ive got a weird problem here, I have a default.po that works fine with some msgid/msgstr pair, but when I add new ones these new ones doesnt work, they show the msgid when called.</p>
<p>For example:</p>
<p>		link(<br />
				$html-&gt;image(&#8216;delete.png&#8217;, array(&#8216;alt&#8217; =&gt; &#8216;Edit&#8217;)),<br />
				array(&#8216;action&#8217; =&gt; &#8216;delete&#8217;, &#8216;id&#8217; =&gt; $post['Post']['id']),<br />
				null, __(&#8216;post.delete.ask&#8217;, true), false<br />
		); ?&gt;</p>
<p>The msgid &#8216;post.delete.ask&#8217; I just added to default.po, and it doesn&#8217;t show the corresponding msgstr. But if i change it to &#8216;comment.ask.delete&#8217; it does show the correctly msgstr.</p>
<p>Its happening for all new msgid/msgstr pair, no matter where I write then on default.po.<br />
I&#8217;m using the same editor I used to write all the pair (eclipse).</p>
<p>msgid &#8220;post.delete.ask&#8221;<br />
msgstr &#8220;Deseja realmente deletar este post?&#8221;<br />
msgid &#8220;comment.delete.ask&#8221;<br />
msgstr &#8220;Deseja realmente deletar este comentário?&#8221;</p>
<p>Any hints? <img src='http://aaronthies.com/wp/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CakePHP - i18n and l10n - development</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-80</link>
		<dc:creator>CakePHP - i18n and l10n - development</dc:creator>
		<pubDate>Fri, 26 Dec 2008 22:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-80</guid>
		<description>[...] CakePHP 1.2 i18n/l10n - Aaron Thies [...]</description>
		<content:encoded><![CDATA[<p>[...] CakePHP 1.2 i18n/l10n &#8211; Aaron Thies [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emnu</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-75</link>
		<dc:creator>emnu</dc:creator>
		<pubDate>Thu, 06 Nov 2008 01:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-75</guid>
		<description>gustav,
it works...
TQ so much</description>
		<content:encoded><![CDATA[<p>gustav,<br />
it works&#8230;<br />
TQ so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustav</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-74</link>
		<dc:creator>Gustav</dc:creator>
		<pubDate>Wed, 05 Nov 2008 21:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-74</guid>
		<description>@emnu:
Try:
__(&quot;Utama&quot;, true)

__(&quot;Utama&quot;) will echo, if you use __(&quot;Utama&quot;, true) it will just return the value.</description>
		<content:encoded><![CDATA[<p>@emnu:<br />
Try:<br />
__(&#8220;Utama&#8221;, true)</p>
<p>__(&#8220;Utama&#8221;) will echo, if you use __(&#8220;Utama&#8221;, true) it will just return the value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emnu</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-71</link>
		<dc:creator>emnu</dc:creator>
		<pubDate>Wed, 05 Nov 2008 07:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-71</guid>
		<description>how do i write something like this

$html-&gt;link(__(&#039;Utama&#039;), &#039;/bills/index&#039;);

TQ</description>
		<content:encoded><![CDATA[<p>how do i write something like this</p>
<p>$html-&gt;link(__(&#8216;Utama&#8217;), &#8216;/bills/index&#8217;);</p>
<p>TQ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-66</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 30 Aug 2008 19:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-66</guid>
		<description>Thanks to the CakePHP group (http://groups.google.com/group/cake-php) the answer is yes.

Just user sprintf() (or printf())...

In your View:
printf(__(&quot;age_old&quot;, true), 55);

In your .po:
msgid &quot;age_old&quot;
msgstr &quot;I am %d years old&quot;

Look at http://de.php.net/sprintf for further information.</description>
		<content:encoded><![CDATA[<p>Thanks to the CakePHP group (<a href="http://groups.google.com/group/cake-php" rel="nofollow">http://groups.google.com/group/cake-php</a>) the answer is yes.</p>
<p>Just user sprintf() (or printf())&#8230;</p>
<p>In your View:<br />
printf(__(&#8220;age_old&#8221;, true), 55);</p>
<p>In your .po:<br />
msgid &#8220;age_old&#8221;<br />
msgstr &#8220;I am %d years old&#8221;</p>
<p>Look at <a href="http://de.php.net/sprintf" rel="nofollow">http://de.php.net/sprintf</a> for further information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avo</title>
		<link>http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/comment-page-1/#comment-65</link>
		<dc:creator>Avo</dc:creator>
		<pubDate>Sat, 30 Aug 2008 10:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://aaronthies.com/wp/2007/08/03/cakephp-12-i18nl10n/#comment-65</guid>
		<description>Is it possible to pass wraiables into __() function.
po files seem to support variables in trasnlations, cakephp not.

Am i right?</description>
		<content:encoded><![CDATA[<p>Is it possible to pass wraiables into __() function.<br />
po files seem to support variables in trasnlations, cakephp not.</p>
<p>Am i right?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
