<?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: Introducing Zend_Translate</title>
	<atom:link href="http://www.zendcasts.com/introducing-zend_translate/2009/11/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/</link>
	<description>free Zend Framework screencasts. Video tutorials to get you up to speed with different parts of the Zend Framework and enterprise PHP development.</description>
	<lastBuildDate>Wed, 01 Feb 2012 00:49:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Mauricio Vinicius</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-24741</link>
		<dc:creator>Mauricio Vinicius</dc:creator>
		<pubDate>Fri, 21 Oct 2011 20:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-24741</guid>
		<description>The best tutorial about Translator ever...
Thank you for helping all the zend developers...</description>
		<content:encoded><![CDATA[<p>The best tutorial about Translator ever&#8230;<br />
Thank you for helping all the zend developers&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sorben Aila</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-21104</link>
		<dc:creator>Sorben Aila</dc:creator>
		<pubDate>Wed, 20 Jul 2011 05:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-21104</guid>
		<description>Nice tutorial - it works on the index page, but how do i get the translate method in another class (Application_Modules_Default_Form_Login) it allways says: Method translate does not exist</description>
		<content:encoded><![CDATA[<p>Nice tutorial &#8211; it works on the index page, but how do i get the translate method in another class (Application_Modules_Default_Form_Login) it allways says: Method translate does not exist</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-20354</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Tue, 28 Jun 2011 21:01:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-20354</guid>
		<description>Thank you again for that nice screencast. Helped me a lot with translation handling. Could not use the whole routing part but that&#039;s OK with me ;)</description>
		<content:encoded><![CDATA[<p>Thank you again for that nice screencast. Helped me a lot with translation handling. Could not use the whole routing part but that&#8217;s OK with me <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frenky</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-18233</link>
		<dc:creator>frenky</dc:creator>
		<pubDate>Sat, 07 May 2011 23:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-18233</guid>
		<description>PIAv5u http://gdjI3b7VaWpU1m0dGpvjRrcu9Fk.com</description>
		<content:encoded><![CDATA[<p>PIAv5u <a href="http://gdjI3b7VaWpU1m0dGpvjRrcu9Fk.com" rel="nofollow">http://gdjI3b7VaWpU1m0dGpvjRrcu9Fk.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhirendra</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-12213</link>
		<dc:creator>dhirendra</dc:creator>
		<pubDate>Fri, 12 Nov 2010 09:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-12213</guid>
		<description>I have used for language translation given code.
It works for english and spanish.
only one character ¿ not showing on browser if we place any character before it  then show.
I have used character set &#039;iso-8859-1&#039;
and language file in csv format</description>
		<content:encoded><![CDATA[<p>I have used for language translation given code.<br />
It works for english and spanish.<br />
only one character ¿ not showing on browser if we place any character before it  then show.<br />
I have used character set &#8216;iso-8859-1&#8242;<br />
and language file in csv format</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elvis</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-12081</link>
		<dc:creator>Elvis</dc:creator>
		<pubDate>Tue, 09 Nov 2010 09:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-12081</guid>
		<description>Hi, all very good , but I have trouble with Russian language , I  saved file ru.csv in utf-8
and instead text I see empty,  
?# Russian
about;О компании

but if I change  &quot;O компании&quot; on &quot;TEXT TEXT&quot; all work good , please help me :)</description>
		<content:encoded><![CDATA[<p>Hi, all very good , but I have trouble with Russian language , I  saved file ru.csv in utf-8<br />
and instead text I see empty,<br />
?# Russian<br />
about;О компании</p>
<p>but if I change  &#8220;O компании&#8221; on &#8220;TEXT TEXT&#8221; all work good , please help me <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergey Romanov</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-11834</link>
		<dc:creator>Sergey Romanov</dc:creator>
		<pubDate>Wed, 03 Nov 2010 16:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-11834</guid>
		<description>This part of the code

$lang = $request-&gt;getParam(&#039;lang&#039;, &#039;&#039;);
if(strtolower($lang) !== &#039;en&#039; &amp;&amp; strtolower($lang) !== &#039;fr&#039;)
$request-&gt;setParam(&#039;lang&#039;, &#039;en&#039;);

May be replaced to

$lang = strtolower($request-&gt;getParam(&#039;lang&#039;, &#039;en&#039;));</description>
		<content:encoded><![CDATA[<p>This part of the code</p>
<p>$lang = $request-&gt;getParam(&#8216;lang&#8217;, &#8221;);<br />
if(strtolower($lang) !== &#8216;en&#8217; &amp;&amp; strtolower($lang) !== &#8216;fr&#8217;)<br />
$request-&gt;setParam(&#8216;lang&#8217;, &#8216;en&#8217;);</p>
<p>May be replaced to</p>
<p>$lang = strtolower($request-&gt;getParam(&#8216;lang&#8217;, &#8216;en&#8217;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ekta</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-11690</link>
		<dc:creator>Ekta</dc:creator>
		<pubDate>Sun, 31 Oct 2010 10:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-11690</guid>
		<description>hello how could we take parameters with lang parameter while using ajax the url seems as &quot;tag31/public/admin/customer/viewcustomer/lang/en_US/customer_id/199&quot;
the actual parameter string look like this:
 [module] =&gt; admin [controller] =&gt; customer [action] =&gt; viewcustomer [lang] =&gt; lang [en_US] =&gt; customer_id ) nothing is going work .please rectify it</description>
		<content:encoded><![CDATA[<p>hello how could we take parameters with lang parameter while using ajax the url seems as &#8220;tag31/public/admin/customer/viewcustomer/lang/en_US/customer_id/199&#8243;<br />
the actual parameter string look like this:<br />
 [module] =&gt; admin [controller] =&gt; customer [action] =&gt; viewcustomer [lang] =&gt; lang [en_US] =&gt; customer_id ) nothing is going work .please rectify it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Lively</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-11161</link>
		<dc:creator>Scott Lively</dc:creator>
		<pubDate>Fri, 15 Oct 2010 14:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-11161</guid>
		<description>Jon, Great tutorial!  Thanks for sharing.  I have a quick question which is how do you set up your translation file to include commas, semi-colons and double quotes in your text? I&#039;m using Microsoft Excel and saving as a .csv.  I&#039;ve tried all types of escape characters and enclosing the strings in double quotes etc. but can&#039;t seem to get it to work.  Any hints?  Thanks again.</description>
		<content:encoded><![CDATA[<p>Jon, Great tutorial!  Thanks for sharing.  I have a quick question which is how do you set up your translation file to include commas, semi-colons and double quotes in your text? I&#8217;m using Microsoft Excel and saving as a .csv.  I&#8217;ve tried all types of escape characters and enclosing the strings in double quotes etc. but can&#8217;t seem to get it to work.  Any hints?  Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ferdinand AMOI</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-9474</link>
		<dc:creator>Ferdinand AMOI</dc:creator>
		<pubDate>Sun, 15 Aug 2010 14:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-9474</guid>
		<description>Je voudrais savoir si vous ne pouvez faire un tutoriel en combinant Zend_Translate et Zend_Navigation.</description>
		<content:encoded><![CDATA[<p>Je voudrais savoir si vous ne pouvez faire un tutoriel en combinant Zend_Translate et Zend_Navigation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-8638</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Mon, 19 Jul 2010 10:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-8638</guid>
		<description>I followed a numerous tutorials here on zendcasts, including the one about the navigation and translate.

Translating works fine, but clicking on a link from youre menu sets the language back to &#039;en&#039;.

I came up with this solution (not the nicest one, but maybe someone has a better one):

frontController = Zend_Controller_Front::getInstance();
		$router = $this-&gt;frontController-&gt;getRouter();
		
		$language = $request-&gt;getParam(&#039;language&#039;,&#039;&#039;);
		
		if($language !== &#039;en&#039; &amp;&amp; $language !== &#039;nl&#039; &amp;&amp; $language !== &#039;de&#039; &amp;&amp; $language !== &#039;fr&#039; &amp;&amp; $language !== &#039;be&#039;)
		{
			$request-&gt;setParam(&#039;language&#039;,&#039;en&#039;);
		}
		
		$language = $request-&gt;getParam(&#039;language&#039;);
		
		switch($language)
		{
			case &#039;en&#039;:
				$locale = &#039;en_US&#039;;
			break;
			case &#039;nl&#039;:
				$locale = &#039;nl_NL&#039;;
			break;
			case &#039;de&#039;:
				$locale = &#039;de_DE&#039;;
			break;
			case &#039;fr&#039;:
				$locale = &#039;fr_FR&#039;;
			break;
			case &#039;be&#039;:
				$locale = &#039;nl_BE&#039;;
			break;
		}

		$setLanguage = new Zend_Locale();
		$setLanguage-&gt;setLocale($locale);
		Zend_Registry::set(&#039;Zend_Locale&#039;, $setLanguage);
		
		$translate = new Zend_Translate(&#039;gettext&#039;, APPLICATION_PATH . &#039;/languages/&#039;. $locale . &#039;.mo&#039; , $locale);
		Zend_Registry::set(&#039;Zend_Translate&#039;, $translate);
		
		$router-&gt;removeDefaultRoutes();
		$router-&gt;addRoute(
			&#039;languagecontroller&#039;,
			new Zend_Controller_Router_Route(&#039;/:language/:controller/:action&#039;,
			array(&#039;language&#039; =&gt; $language,
				&#039;controller&#039; =&gt; &#039;index&#039;,
				&#039;action&#039; =&gt; &#039;index&#039;
				)
			)
		);	
    }
}</description>
		<content:encoded><![CDATA[<p>I followed a numerous tutorials here on zendcasts, including the one about the navigation and translate.</p>
<p>Translating works fine, but clicking on a link from youre menu sets the language back to &#8216;en&#8217;.</p>
<p>I came up with this solution (not the nicest one, but maybe someone has a better one):</p>
<p>frontController = Zend_Controller_Front::getInstance();<br />
		$router = $this-&gt;frontController-&gt;getRouter();</p>
<p>		$language = $request-&gt;getParam(&#8216;language&#8217;,&#8221;);</p>
<p>		if($language !== &#8216;en&#8217; &amp;&amp; $language !== &#8216;nl&#8217; &amp;&amp; $language !== &#8216;de&#8217; &amp;&amp; $language !== &#8216;fr&#8217; &amp;&amp; $language !== &#8216;be&#8217;)<br />
		{<br />
			$request-&gt;setParam(&#8216;language&#8217;,'en&#8217;);<br />
		}</p>
<p>		$language = $request-&gt;getParam(&#8216;language&#8217;);</p>
<p>		switch($language)<br />
		{<br />
			case &#8216;en&#8217;:<br />
				$locale = &#8216;en_US&#8217;;<br />
			break;<br />
			case &#8216;nl&#8217;:<br />
				$locale = &#8216;nl_NL&#8217;;<br />
			break;<br />
			case &#8216;de&#8217;:<br />
				$locale = &#8216;de_DE&#8217;;<br />
			break;<br />
			case &#8216;fr&#8217;:<br />
				$locale = &#8216;fr_FR&#8217;;<br />
			break;<br />
			case &#8216;be&#8217;:<br />
				$locale = &#8216;nl_BE&#8217;;<br />
			break;<br />
		}</p>
<p>		$setLanguage = new Zend_Locale();<br />
		$setLanguage-&gt;setLocale($locale);<br />
		Zend_Registry::set(&#8216;Zend_Locale&#8217;, $setLanguage);</p>
<p>		$translate = new Zend_Translate(&#8216;gettext&#8217;, APPLICATION_PATH . &#8216;/languages/&#8217;. $locale . &#8216;.mo&#8217; , $locale);<br />
		Zend_Registry::set(&#8216;Zend_Translate&#8217;, $translate);</p>
<p>		$router-&gt;removeDefaultRoutes();<br />
		$router-&gt;addRoute(<br />
			&#8216;languagecontroller&#8217;,<br />
			new Zend_Controller_Router_Route(&#8216;/:language/:controller/:action&#8217;,<br />
			array(&#8216;language&#8217; =&gt; $language,<br />
				&#8216;controller&#8217; =&gt; &#8216;index&#8217;,<br />
				&#8216;action&#8217; =&gt; &#8216;index&#8217;<br />
				)<br />
			)<br />
		);<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: White</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-7174</link>
		<dc:creator>White</dc:creator>
		<pubDate>Wed, 05 May 2010 12:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-7174</guid>
		<description>Btw, there is also a resource for setting up routes with the config file. Refer to Zend_Application_Resource_Router on http://framework.zend.com/manual/en/zend.application.available-resources.html</description>
		<content:encoded><![CDATA[<p>Btw, there is also a resource for setting up routes with the config file. Refer to Zend_Application_Resource_Router on <a href="http://framework.zend.com/manual/en/zend.application.available-resources.html" rel="nofollow">http://framework.zend.com/manual/en/zend.application.available-resources.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-6013</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 12 Mar 2010 00:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-6013</guid>
		<description>Nice Tutorial!
I&#039;m not only learned about Zend_Translate, but also how to create my own routers and controller plugins. 

Jon, you&#039;re a great teacher.</description>
		<content:encoded><![CDATA[<p>Nice Tutorial!<br />
I&#8217;m not only learned about Zend_Translate, but also how to create my own routers and controller plugins. </p>
<p>Jon, you&#8217;re a great teacher.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simple</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-5562</link>
		<dc:creator>Simple</dc:creator>
		<pubDate>Mon, 22 Feb 2010 16:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-5562</guid>
		<description>sorry It was asked already looked the upper posts but missed it =)</description>
		<content:encoded><![CDATA[<p>sorry It was asked already looked the upper posts but missed it =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-5558</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Mon, 22 Feb 2010 14:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-5558</guid>
		<description>xdebug!</description>
		<content:encoded><![CDATA[<p>xdebug!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simple</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-5556</link>
		<dc:creator>Simple</dc:creator>
		<pubDate>Mon, 22 Feb 2010 13:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-5556</guid>
		<description>hey Jon a little offtop. But how did u get ur var_dump() to print out nicely, U din&#039;t even put like pre tag, as I saw. thanks</description>
		<content:encoded><![CDATA[<p>hey Jon a little offtop. But how did u get ur var_dump() to print out nicely, U din&#8217;t even put like pre tag, as I saw. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-5422</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Mon, 15 Feb 2010 20:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-5422</guid>
		<description>Hi Mylonov,

I&#039;m using XDebug</description>
		<content:encoded><![CDATA[<p>Hi Mylonov,</p>
<p>I&#8217;m using XDebug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mylonov</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-5403</link>
		<dc:creator>mylonov</dc:creator>
		<pubDate>Sun, 14 Feb 2010 23:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-5403</guid>
		<description>hi!

nice screencast - really helped me to got through ZF details.

can i ask what are you using to beautify var_dump() output?</description>
		<content:encoded><![CDATA[<p>hi!</p>
<p>nice screencast &#8211; really helped me to got through ZF details.</p>
<p>can i ask what are you using to beautify var_dump() output?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e.s.t</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-5035</link>
		<dc:creator>e.s.t</dc:creator>
		<pubDate>Tue, 26 Jan 2010 22:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-5035</guid>
		<description>This #$%#$ reply script, stripped some things from my comment. What I meant was: 
[title]Generators[/title] , (replace square brackets).</description>
		<content:encoded><![CDATA[<p>This #$%#$ reply script, stripped some things from my comment. What I meant was:<br />
[title]Generators[/title] , (replace square brackets).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e.s.t</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-5034</link>
		<dc:creator>e.s.t</dc:creator>
		<pubDate>Tue, 26 Jan 2010 22:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-5034</guid>
		<description>@Jochen

It is well explained in documentation, so look for it. 
Basically, if you initiate Zend_Translate before reading from xml, and register it in Zend_Registry, Zend_Navigation will find all translations automatically. 
It (Zend_Navigation) will look for keys, like if you have in xml:
Generators 
the key for translation is &#039;Generators&#039;. To simply put, it works out of the box.</description>
		<content:encoded><![CDATA[<p>@Jochen</p>
<p>It is well explained in documentation, so look for it.<br />
Basically, if you initiate Zend_Translate before reading from xml, and register it in Zend_Registry, Zend_Navigation will find all translations automatically.<br />
It (Zend_Navigation) will look for keys, like if you have in xml:<br />
Generators<br />
the key for translation is &#8216;Generators&#8217;. To simply put, it works out of the box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jochen</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-5017</link>
		<dc:creator>Jochen</dc:creator>
		<pubDate>Mon, 25 Jan 2010 23:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-5017</guid>
		<description>Can anybody explain how to dynamically translate labels coming from the navigation.xml?</description>
		<content:encoded><![CDATA[<p>Can anybody explain how to dynamically translate labels coming from the navigation.xml?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bootstrapping Zend_Translate with a LangSelector Plugin -HackIX</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-4745</link>
		<dc:creator>Bootstrapping Zend_Translate with a LangSelector Plugin -HackIX</dc:creator>
		<pubDate>Sun, 17 Jan 2010 16:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-4745</guid>
		<description>[...] thanks to Zend Cast for the inspi­ra­tion! Series Nav­i­ga­tion«How to make POEdit detect source strings in Zend [...]</description>
		<content:encoded><![CDATA[<p>[...] thanks to Zend Cast for the inspi­ra­tion! Series Nav­i­ga­tion«How to make POEdit detect source strings in Zend [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-4703</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Fri, 15 Jan 2010 16:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-4703</guid>
		<description>Did a write up on how to configure POEdit with Zend Framework for those of you that want to work with the gettext (.po / .mo) adapter.

http://blog.hackix.com/2010/01/configuring-poedit-for-zend-framework-projects/</description>
		<content:encoded><![CDATA[<p>Did a write up on how to configure POEdit with Zend Framework for those of you that want to work with the gettext (.po / .mo) adapter.</p>
<p><a href="http://blog.hackix.com/2010/01/configuring-poedit-for-zend-framework-projects/" rel="nofollow">http://blog.hackix.com/2010/01/configuring-poedit-for-zend-framework-projects/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e.s.t</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3959</link>
		<dc:creator>e.s.t</dc:creator>
		<pubDate>Wed, 16 Dec 2009 17:23:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3959</guid>
		<description>And as I said this entire example is useless if you want your Zend_Navigation to work correctly.</description>
		<content:encoded><![CDATA[<p>And as I said this entire example is useless if you want your Zend_Navigation to work correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e.s.t</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3954</link>
		<dc:creator>e.s.t</dc:creator>
		<pubDate>Wed, 16 Dec 2009 11:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3954</guid>
		<description>@Nicklas
It is probable that you have somewhere url helper with default route, like:

&lt;a href=&quot;url(
    array(&#039;module&#039; =&gt; &#039;admin&#039;), &#039;default&#039;, true) ?&gt;&quot;&gt;Administration&lt;/a&gt;

In this case default route doesn&#039;t exist, so you need to change to:

&lt;a href=&quot;url(
    array(&#039;module&#039; =&gt; &#039;admin&#039;), &#039;myRouteName&#039;, true) ?&gt;&quot;&gt;Administration&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>@Nicklas<br />
It is probable that you have somewhere url helper with default route, like:</p>
<p>&lt;a href=&quot;url(<br />
    array(&#8216;module&#8217; =&gt; &#8216;admin&#8217;), &#8216;default&#8217;, true) ?&gt;&#8221;&gt;Administration</p>
<p>In this case default route doesn&#8217;t exist, so you need to change to:</p>
<p>&lt;a href=&quot;url(<br />
    array(&#8216;module&#8217; =&gt; &#8216;admin&#8217;), &#8216;myRouteName&#8217;, true) ?&gt;&#8221;&gt;Administration</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3948</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Wed, 16 Dec 2009 06:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3948</guid>
		<description>sounds like you don&#039;t have a route in your router called &quot;default&quot; and you&#039;ve disabled the default routes... you need some kind of catch-all setup.</description>
		<content:encoded><![CDATA[<p>sounds like you don&#8217;t have a route in your router called &#8220;default&#8221; and you&#8217;ve disabled the default routes&#8230; you need some kind of catch-all setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicklas</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3937</link>
		<dc:creator>Nicklas</dc:creator>
		<pubDate>Tue, 15 Dec 2009 20:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3937</guid>
		<description>Hey, great video!
I try to implement parts in to my existing code and gets &quot;Route default is not defined &quot;. Any direct clues what this is?</description>
		<content:encoded><![CDATA[<p>Hey, great video!<br />
I try to implement parts in to my existing code and gets &#8220;Route default is not defined &#8220;. Any direct clues what this is?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Framework Blog &#187; Blog Archive &#187; Aus den Zend Framework Blogs</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3907</link>
		<dc:creator>Zend Framework Blog &#187; Blog Archive &#187; Aus den Zend Framework Blogs</dc:creator>
		<pubDate>Mon, 14 Dec 2009 06:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3907</guid>
		<description>[...] gibt einen neuen Zend Cast über Zend_Translate von Jon [...]</description>
		<content:encoded><![CDATA[<p>[...] gibt einen neuen Zend Cast über Zend_Translate von Jon [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whisher</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3848</link>
		<dc:creator>Whisher</dc:creator>
		<pubDate>Thu, 10 Dec 2009 13:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3848</guid>
		<description>Hi.
My trouble is a little different but I&#039;m at my wits end :(
I should set up a router with dynamic translation for a better SEO 
for instance 
en
live/write
it
dalvivo/scrivi
I ended up with this code
&lt;pre&gt;
public function routeStartup(Zend_Controller_Request_Abstract $request) 
    {   
        //$this-&gt;_layout = Zend_Controller_Action_HelperBroker::getStaticHelper(&#039;Layout&#039;); 
        // $this-&gt;_view = $this-&gt;_layout-&gt;getView(); 
         try{ 
            $i18n = Zend_Registry::get(&#039;i18n&#039;); 
            $locale = $i18n[&#039;locale&#039;]; 
            $lang =   $i18n[&#039;lang&#039;]; 
        } 
        catch(Zend_Exception $e){ 
            $locale = self::DEFAULT_LOCAL; 
            $lang =   self::DEFAULT_LANG; 
        } 
        
        
        $zl = new Zend_Locale(); 
        $zl-&gt;setLocale($locale); 
        Zend_Registry::set(&#039;Zend_Locale&#039;, $zl); 
        
        $fileName = APPLICATION_PATH . &#039;/configs/lang/&#039;. $lang . &#039;.php&#039;; 
        if(!file_exists($fileName)){ 
            $fileName = APPLICATION_PATH . &#039;/configs/lang/&#039;. self::DEFAULT_LANG . &#039;.php&#039;; 
        } 
        if(strpos($lang, &#039;_&#039;) !== false){ 
            list($lang,$region)= explode(&#039;_&#039;,$lang); 
        } 
        $translate = new Zend_Translate(&#039;array&#039;, $fileName , $lang); 
        Zend_Registry::set(&#039;Zend_Translate&#039;, $translate); 
        Zend_Form::setDefaultTranslator($translate); 
        $route = new Zend_Controller_Router_Route( 
            &#039;:module/:@controller/:@action/*&#039;, 
               array( 
               &#039;module&#039;=&gt;&#039;default&#039;, 
                &#039;controller&#039; =&gt; &#039;index&#039;, 
                 &#039;action&#039;     =&gt; &#039;index&#039; 
               ) 
        ); 
        
        $this-&gt;_router-&gt;addRoute(&#039;default&#039;, $route); 
    }
The trouble is with default module.
it works with 

en 
default/live/write 
it 
default/dalvivo/scrivi 
en 
admin/login 
it 
admin/logati 

but it doesn&#039;t work with 
en 
live/write 
it 
dalvivo/scrivi 

even if I have 
&#039;module&#039;=&gt;&#039;default&#039; 


Can you help me please ? 
Bye.

PS
Sorry for the quite OT</description>
		<content:encoded><![CDATA[<p>Hi.<br />
My trouble is a little different but I&#8217;m at my wits end <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
I should set up a router with dynamic translation for a better SEO<br />
for instance<br />
en<br />
live/write<br />
it<br />
dalvivo/scrivi<br />
I ended up with this code</p>
<pre>
public function routeStartup(Zend_Controller_Request_Abstract $request)
    {
        //$this-&gt;_layout = Zend_Controller_Action_HelperBroker::getStaticHelper('Layout');
        // $this-&gt;_view = $this-&gt;_layout-&gt;getView();
         try{
            $i18n = Zend_Registry::get('i18n');
            $locale = $i18n['locale'];
            $lang =   $i18n['lang'];
        }
        catch(Zend_Exception $e){
            $locale = self::DEFAULT_LOCAL;
            $lang =   self::DEFAULT_LANG;
        } 

        $zl = new Zend_Locale();
        $zl-&gt;setLocale($locale);
        Zend_Registry::set('Zend_Locale', $zl); 

        $fileName = APPLICATION_PATH . '/configs/lang/'. $lang . '.php';
        if(!file_exists($fileName)){
            $fileName = APPLICATION_PATH . '/configs/lang/'. self::DEFAULT_LANG . '.php';
        }
        if(strpos($lang, '_') !== false){
            list($lang,$region)= explode('_',$lang);
        }
        $translate = new Zend_Translate('array', $fileName , $lang);
        Zend_Registry::set('Zend_Translate', $translate);
        Zend_Form::setDefaultTranslator($translate);
        $route = new Zend_Controller_Router_Route(
            ':module/:@controller/:@action/*',
               array(
               'module'=&gt;'default',
                'controller' =&gt; 'index',
                 'action'     =&gt; 'index'
               )
        ); 

        $this-&gt;_router-&gt;addRoute('default', $route);
    }
The trouble is with default module.
it works with 

en
default/live/write
it
default/dalvivo/scrivi
en
admin/login
it
admin/logati 

but it doesn't work with
en
live/write
it
dalvivo/scrivi 

even if I have
'module'=&gt;'default' 

Can you help me please ?
Bye.

PS
Sorry for the quite OT</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Router Translate troubles with modules - Zend Framework Forum</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3844</link>
		<dc:creator>Router Translate troubles with modules - Zend Framework Forum</dc:creator>
		<pubDate>Thu, 10 Dec 2009 08:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3844</guid>
		<description>[...] I have no clue about this but maybe look at this [...]</description>
		<content:encoded><![CDATA[<p>[...] I have no clue about this but maybe look at this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelangelo van Dam</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3813</link>
		<dc:creator>Michelangelo van Dam</dc:creator>
		<pubDate>Wed, 09 Dec 2009 08:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3813</guid>
		<description>Hey Jon,


Another great ZendCast on a topic that I&#039;m faced with a lot here in Belgium. We need to provide web applications using English, Dutch, French and sometimes German (DFG being our official languages), so I&#039;m dealing a lot with Zend Translate.

My approach is to use an array containing the lang param as key and the locale as value, to make a swift transition between languages and locales.
$availableLanguages = array (
    &#039;en&#039; =&gt; &#039;en_US&#039;,
    &#039;nl&#039; =&gt; &#039;nl_BE&#039;,
    &#039;fr&#039; =&gt; &#039;fr_BE&#039;,
    &#039;de&#039; =&gt; &#039;de_BE&#039;,
);

When setting up translations specifications, I already add them to Zend_Translate en using setLocale() method to switch languages.

// language given as param $lang
// if language is not available default to en
$lang = strtolower($lang);
if (!in_array($lang, array_keys($availableLanguages)) {
    $lang = &#039;en&#039;;
}

$translate = new Zend_Translate(&#039;csv&#039;, APPLICATION_PATH . &#039;/configs/lang/en.csv&#039;, &#039;en_US&#039;);
$translate-&gt;addTranslation(APPLICATION_PATH . &#039;/configs/lang/nl.csv&#039;, &#039;nl_BE&#039;)
          -&gt;addTranslation(APPLICATION_PATH . &#039;/configs/lang/fr.csv&#039;, &#039;fr_BE&#039;)
          -&gt;addTranslation(APPLICATION_PATH . &#039;/configs/lang/de.csv&#039;, &#039;de_BE&#039;);

$translate-&gt;setLocale($defaultLocale);

This way you can add more languages to your application as they become available, while maintaining a structured way of development.

This also caches very good, even if the translation source is a database, web service or any other kind of &#039;expensive&#039; datasource.

Hope this works great for you all.

Michelangelo</description>
		<content:encoded><![CDATA[<p>Hey Jon,</p>
<p>Another great ZendCast on a topic that I&#8217;m faced with a lot here in Belgium. We need to provide web applications using English, Dutch, French and sometimes German (DFG being our official languages), so I&#8217;m dealing a lot with Zend Translate.</p>
<p>My approach is to use an array containing the lang param as key and the locale as value, to make a swift transition between languages and locales.<br />
$availableLanguages = array (<br />
    &#8216;en&#8217; =&gt; &#8216;en_US&#8217;,<br />
    &#8216;nl&#8217; =&gt; &#8216;nl_BE&#8217;,<br />
    &#8216;fr&#8217; =&gt; &#8216;fr_BE&#8217;,<br />
    &#8216;de&#8217; =&gt; &#8216;de_BE&#8217;,<br />
);</p>
<p>When setting up translations specifications, I already add them to Zend_Translate en using setLocale() method to switch languages.</p>
<p>// language given as param $lang<br />
// if language is not available default to en<br />
$lang = strtolower($lang);<br />
if (!in_array($lang, array_keys($availableLanguages)) {<br />
    $lang = &#8216;en&#8217;;<br />
}</p>
<p>$translate = new Zend_Translate(&#8216;csv&#8217;, APPLICATION_PATH . &#8216;/configs/lang/en.csv&#8217;, &#8216;en_US&#8217;);<br />
$translate-&gt;addTranslation(APPLICATION_PATH . &#8216;/configs/lang/nl.csv&#8217;, &#8216;nl_BE&#8217;)<br />
          -&gt;addTranslation(APPLICATION_PATH . &#8216;/configs/lang/fr.csv&#8217;, &#8216;fr_BE&#8217;)<br />
          -&gt;addTranslation(APPLICATION_PATH . &#8216;/configs/lang/de.csv&#8217;, &#8216;de_BE&#8217;);</p>
<p>$translate-&gt;setLocale($defaultLocale);</p>
<p>This way you can add more languages to your application as they become available, while maintaining a structured way of development.</p>
<p>This also caches very good, even if the translation source is a database, web service or any other kind of &#8216;expensive&#8217; datasource.</p>
<p>Hope this works great for you all.</p>
<p>Michelangelo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e.s.t</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3797</link>
		<dc:creator>e.s.t</dc:creator>
		<pubDate>Tue, 08 Dec 2009 23:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3797</guid>
		<description>Actually there is one big drawback of this:

I am building menus for navigation view helper from XML config file. ZF then creates links in menu only for default language (in this case en, because it is set as default lang in routes).

So if I switched from &#039;en&#039; to &#039;pl&#039; polish language i.e. http://example.com/pl/links I have menu with:

/en/contact
/en/another and ect.

I have to workaround this using:

        if (preg_match(&#039;(en&#124;pl)&#039;, substr($_SERVER[&#039;REQUEST_URI&#039;], 1, 2), $match)) {
            $lang = $match[0]; //LOOK HERE
            $locale = new Zend_Locale($availableLangs[$lang]);
        }
        $langModuleControllerActionRoute = new Zend_Controller_Router_Route(
            &#039;:lang/:module/:controller/:action/*&#039;,
            array(
            &#039;module&#039; =&gt; &#039;default&#039;,
            &#039;controller&#039; =&gt; &#039;index&#039;,
            &#039;action&#039;     =&gt; &#039;index&#039;,
            &#039;lang&#039; =&gt; $lang //AND HERE
            ),
            array (&#039;lang&#039; =&gt; $regex, &#039;module&#039; =&gt; &#039;[a-z]+&#039; )
        );</description>
		<content:encoded><![CDATA[<p>Actually there is one big drawback of this:</p>
<p>I am building menus for navigation view helper from XML config file. ZF then creates links in menu only for default language (in this case en, because it is set as default lang in routes).</p>
<p>So if I switched from &#8216;en&#8217; to &#8216;pl&#8217; polish language i.e. <a href="http://example.com/pl/links" rel="nofollow">http://example.com/pl/links</a> I have menu with:</p>
<p>/en/contact<br />
/en/another and ect.</p>
<p>I have to workaround this using:</p>
<p>        if (preg_match(&#8216;(en|pl)&#8217;, substr($_SERVER['REQUEST_URI'], 1, 2), $match)) {<br />
            $lang = $match[0]; //LOOK HERE<br />
            $locale = new Zend_Locale($availableLangs[$lang]);<br />
        }<br />
        $langModuleControllerActionRoute = new Zend_Controller_Router_Route(<br />
            &#8216;:lang/:module/:controller/:action/*&#8217;,<br />
            array(<br />
            &#8216;module&#8217; =&gt; &#8216;default&#8217;,<br />
            &#8216;controller&#8217; =&gt; &#8216;index&#8217;,<br />
            &#8216;action&#8217;     =&gt; &#8216;index&#8217;,<br />
            &#8216;lang&#8217; =&gt; $lang //AND HERE<br />
            ),<br />
            array (&#8216;lang&#8217; =&gt; $regex, &#8216;module&#8217; =&gt; &#8216;[a-z]+&#8217; )<br />
        );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan Felipe Alvarez Saldarriaga</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3515</link>
		<dc:creator>Juan Felipe Alvarez Saldarriaga</dc:creator>
		<pubDate>Sun, 22 Nov 2009 23:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3515</guid>
		<description>Hey Jon, great video :), I just found this another tutorial to achieve the same but using the config and the route chain object (http://www.m4d3l-network.com/2009/06/29/add-language-route-to-your-zend-framework-project/)</description>
		<content:encoded><![CDATA[<p>Hey Jon, great video <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , I just found this another tutorial to achieve the same but using the config and the route chain object (<a href="http://www.m4d3l-network.com/2009/06/29/add-language-route-to-your-zend-framework-project/" rel="nofollow">http://www.m4d3l-network.com/2009/06/29/add-language-route-to-your-zend-framework-project/</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3509</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Sun, 22 Nov 2009 18:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3509</guid>
		<description>Hi Kuzma,
I think it depends entirely on what you&#039;re caching. For Zend_Translate, since it&#039;s likely site-wide, I would probably initialize the cache in the bootstrap. if only some controller&#039;s were multi-lingual, then I would either use preDispatch or write a simple controller plugin that would load the caching code on those particular controllers.</description>
		<content:encoded><![CDATA[<p>Hi Kuzma,<br />
I think it depends entirely on what you&#8217;re caching. For Zend_Translate, since it&#8217;s likely site-wide, I would probably initialize the cache in the bootstrap. if only some controller&#8217;s were multi-lingual, then I would either use preDispatch or write a simple controller plugin that would load the caching code on those particular controllers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kuzma</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3507</link>
		<dc:creator>Kuzma</dc:creator>
		<pubDate>Sun, 22 Nov 2009 18:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3507</guid>
		<description>Hello!
Thank you for good tutorial.
I&#039;ve a simple question:
Is it a good way to initialize Zend Cache in preDispath in order to cache Zend Translate?
Or it&#039;s better to initialize cache in bootstrap and call it in preDispatch?
Thank you!</description>
		<content:encoded><![CDATA[<p>Hello!<br />
Thank you for good tutorial.<br />
I&#8217;ve a simple question:<br />
Is it a good way to initialize Zend Cache in preDispath in order to cache Zend Translate?<br />
Or it&#8217;s better to initialize cache in bootstrap and call it in preDispatch?<br />
Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3454</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Fri, 20 Nov 2009 06:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3454</guid>
		<description>@Colleen Sure, you can add multiple keywords.</description>
		<content:encoded><![CDATA[<p>@Colleen Sure, you can add multiple keywords.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colleen</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3450</link>
		<dc:creator>Colleen</dc:creator>
		<pubDate>Fri, 20 Nov 2009 03:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3450</guid>
		<description>what about text appearing other places besides views and using poedit.  Can poedit be configured to either use -&gt;translate (in views) or something else like _() in say controllers.</description>
		<content:encoded><![CDATA[<p>what about text appearing other places besides views and using poedit.  Can poedit be configured to either use -&gt;translate (in views) or something else like _() in say controllers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3436</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 19 Nov 2009 09:46:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3436</guid>
		<description>I watched your tutorial about setting up Zend Translate. I am using Zend Translate with gettext adapter for translating text on my website. 
Now I want to translate the url, so that the module, controller and action names are also translated. 
In my bootstrap I define a Zend_Controller_Router_Route_Module to translate the url, and this is working for the default controllers, but not for the module I have. when I translate this &#039;order&#039; module, I get the error that &#039;order&#039; is not a valid controller.
I found this issue: http://framework.zend.com/issues/browse/ZF-7298?page=com.atlassian.jirafisheyeplugin%3Acrucible-issuepanel
and I am using this patched version, but it still not working to translate the module/controller/action urls.
Can you help me with this problem?</description>
		<content:encoded><![CDATA[<p>I watched your tutorial about setting up Zend Translate. I am using Zend Translate with gettext adapter for translating text on my website.<br />
Now I want to translate the url, so that the module, controller and action names are also translated.<br />
In my bootstrap I define a Zend_Controller_Router_Route_Module to translate the url, and this is working for the default controllers, but not for the module I have. when I translate this &#8216;order&#8217; module, I get the error that &#8216;order&#8217; is not a valid controller.<br />
I found this issue: <a href="http://framework.zend.com/issues/browse/ZF-7298?page=com.atlassian.jirafisheyeplugin%3Acrucible-issuepanel" rel="nofollow">http://framework.zend.com/issues/browse/ZF-7298?page=com.atlassian.jirafisheyeplugin%3Acrucible-issuepanel</a><br />
and I am using this patched version, but it still not working to translate the module/controller/action urls.<br />
Can you help me with this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3434</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Thu, 19 Nov 2009 08:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3434</guid>
		<description>@Milos Woohoo! :)</description>
		<content:encoded><![CDATA[<p>@Milos Woohoo! <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milos</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3411</link>
		<dc:creator>Milos</dc:creator>
		<pubDate>Wed, 18 Nov 2009 13:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3411</guid>
		<description>Once again, thanks Jon for this useful screencast.
I personally like putting key-value pairs only for longer strings (ie. form fields description) for my defaulted language, while keeping simple phrases like &quot;Home&quot;, &quot;Contact&quot; or &quot;Sign Up&quot; intact.
One alternative solution for large applications is to have language files in {locale}-{module}.csv format, although you would probably want to use some other translation adapter in that case. My personal preference is database adapter that caches values in array adapter format, that way I can easily edit/add more languages directly from admin panel and even hire someone to do that without the need to edit any file.

@Aleksandar, umpirsky: vise nas je nego sto mislimo =)</description>
		<content:encoded><![CDATA[<p>Once again, thanks Jon for this useful screencast.<br />
I personally like putting key-value pairs only for longer strings (ie. form fields description) for my defaulted language, while keeping simple phrases like &#8220;Home&#8221;, &#8220;Contact&#8221; or &#8220;Sign Up&#8221; intact.<br />
One alternative solution for large applications is to have language files in {locale}-{module}.csv format, although you would probably want to use some other translation adapter in that case. My personal preference is database adapter that caches values in array adapter format, that way I can easily edit/add more languages directly from admin panel and even hire someone to do that without the need to edit any file.</p>
<p>@Aleksandar, umpirsky: vise nas je nego sto mislimo =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3398</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Tue, 17 Nov 2009 18:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3398</guid>
		<description>@Aleksandar Wow :) Odakle si? Daj da razmenimo kontakte.</description>
		<content:encoded><![CDATA[<p>@Aleksandar Wow <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Odakle si? Daj da razmenimo kontakte.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleksandar</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3395</link>
		<dc:creator>Aleksandar</dc:creator>
		<pubDate>Tue, 17 Nov 2009 15:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3395</guid>
		<description>@umpirsky pa srbin bre, normalno :D

Yeap that&#039;s true in the case u mentioned. But all I am saying is, that it simply isn&#039;t best practice, because if u analyze any opensource multilingual application u will discover the same concept which Jon used in this tutorial.</description>
		<content:encoded><![CDATA[<p>@umpirsky pa srbin bre, normalno <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Yeap that&#8217;s true in the case u mentioned. But all I am saying is, that it simply isn&#8217;t best practice, because if u analyze any opensource multilingual application u will discover the same concept which Jon used in this tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3385</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Tue, 17 Nov 2009 06:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3385</guid>
		<description>@Aleksandar Znaš Srpski??? :)

Well, maybe if your keys are not correct language phrases. But, for example, if you use gettext, then it&#039;s pretty common to use poedit to parse templates, and automatically pick all strings under $this-&gt;tranlate() helper and easyer generate po files. In that case, english po file (if english is your source language) will have same keys and values, which is, you&#039;ll agree a total waste of time and memorry. With this mechanism it&#039;s much easyer to add multilang to existing non-multilang site as well.</description>
		<content:encoded><![CDATA[<p>@Aleksandar Znaš Srpski??? <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Well, maybe if your keys are not correct language phrases. But, for example, if you use gettext, then it&#8217;s pretty common to use poedit to parse templates, and automatically pick all strings under $this-&gt;tranlate() helper and easyer generate po files. In that case, english po file (if english is your source language) will have same keys and values, which is, you&#8217;ll agree a total waste of time and memorry. With this mechanism it&#8217;s much easyer to add multilang to existing non-multilang site as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleksandar</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3379</link>
		<dc:creator>Aleksandar</dc:creator>
		<pubDate>Tue, 17 Nov 2009 01:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3379</guid>
		<description>@umpirsky I am not sure that I get u 100%. But keys and values on English will not be always the same, so it&#039;s much easier to just change the values only. For example consider this:

#Serbian csv file
error_message;Popunite sva polja oznacena crvenom

#English csv file
error_message;Please fill all fields marked in red</description>
		<content:encoded><![CDATA[<p>@umpirsky I am not sure that I get u 100%. But keys and values on English will not be always the same, so it&#8217;s much easier to just change the values only. For example consider this:</p>
<p>#Serbian csv file<br />
error_message;Popunite sva polja oznacena crvenom</p>
<p>#English csv file<br />
error_message;Please fill all fields marked in red</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zorta &#187; Zend_Translate Webcast</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3363</link>
		<dc:creator>Zorta &#187; Zend_Translate Webcast</dc:creator>
		<pubDate>Mon, 16 Nov 2009 09:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3363</guid>
		<description>[...] Zum Webcast    Kommentar abgeben &#124; Trackback        Keine Kommentare [...]</description>
		<content:encoded><![CDATA[<p>[...] Zum Webcast    Kommentar abgeben | Trackback        Keine Kommentare [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3360</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Mon, 16 Nov 2009 07:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3360</guid>
		<description>@Aleksandar Hm, ok, what is the right way to do it (without messing with yet another language - since it is a source language)?</description>
		<content:encoded><![CDATA[<p>@Aleksandar Hm, ok, what is the right way to do it (without messing with yet another language &#8211; since it is a source language)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aleksandar</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3343</link>
		<dc:creator>Aleksandar</dc:creator>
		<pubDate>Sun, 15 Nov 2009 15:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3343</guid>
		<description>Yep, umpirsky but It&#039;s not a good practice</description>
		<content:encoded><![CDATA[<p>Yep, umpirsky but It&#8217;s not a good practice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3326</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Sat, 14 Nov 2009 08:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3326</guid>
		<description>@Jon I rhink letting Zend_Translate to be null for en will do the job.</description>
		<content:encoded><![CDATA[<p>@Jon I rhink letting Zend_Translate to be null for en will do the job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3323</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 13 Nov 2009 13:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3323</guid>
		<description>mmm, that&#039;s a good question. I think that you might be able to get away with not needing the language, however it wouldn&#039;t properly illustrate the multi-lingual features of Zend_Translate (since we&#039;d basically just have the keys for a language without values and one with values)</description>
		<content:encoded><![CDATA[<p>mmm, that&#8217;s a good question. I think that you might be able to get away with not needing the language, however it wouldn&#8217;t properly illustrate the multi-lingual features of Zend_Translate (since we&#8217;d basically just have the keys for a language without values and one with values)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari K T</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3321</link>
		<dc:creator>Hari K T</dc:creator>
		<pubDate>Fri, 13 Nov 2009 08:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3321</guid>
		<description>ie Great like all the screen casts Jon .
You are really helping the Zend framework developers .
Thank you and you have a great future . 
Good luck.</description>
		<content:encoded><![CDATA[<p>ie Great like all the screen casts Jon .<br />
You are really helping the Zend framework developers .<br />
Thank you and you have a great future .<br />
Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: umpirsky</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3320</link>
		<dc:creator>umpirsky</dc:creator>
		<pubDate>Fri, 13 Nov 2009 07:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3320</guid>
		<description>Nice!

Just one thing. Are you sure you need en.csv? You are translating en-&gt;en, that have no sense, right?

Imagine how much extra work you&#039;ll have to maintain yet another unnecessary language.</description>
		<content:encoded><![CDATA[<p>Nice!</p>
<p>Just one thing. Are you sure you need en.csv? You are translating en-&gt;en, that have no sense, right?</p>
<p>Imagine how much extra work you&#8217;ll have to maintain yet another unnecessary language.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olagato</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3319</link>
		<dc:creator>Olagato</dc:creator>
		<pubDate>Fri, 13 Nov 2009 06:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3319</guid>
		<description>I mean on last comment the &quot;i18n Approach&quot;
(wrote &quot;i18n&quot; in nHTML tags)
Sorry.</description>
		<content:encoded><![CDATA[<p>I mean on last comment the &#8220;i18n Approach&#8221;<br />
(wrote &#8220;i18n&#8221; in nHTML tags)<br />
Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olagato</title>
		<link>http://www.zendcasts.com/introducing-zend_translate/2009/11/comment-page-1/#comment-3318</link>
		<dc:creator>Olagato</dc:creator>
		<pubDate>Fri, 13 Nov 2009 06:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=274#comment-3318</guid>
		<description>Nice zendcast! Thank you very much.

One suggestion: for next series on Zend_Translate, what about the &quot; Approach&quot;
http://devzone.zend.com/article/4513-Zend-Framework-and-Translation
I founded it very useful.</description>
		<content:encoded><![CDATA[<p>Nice zendcast! Thank you very much.</p>
<p>One suggestion: for next series on Zend_Translate, what about the &#8221; Approach&#8221;<br />
<a href="http://devzone.zend.com/article/4513-Zend-Framework-and-Translation" rel="nofollow">http://devzone.zend.com/article/4513-Zend-Framework-and-Translation</a><br />
I founded it very useful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

