<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Routing international URLs in Symfony</title>
	<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/</link>
	<description>prototypical scriptings all over the place</description>
	<pubDate>Wed, 08 Sep 2010 01:24:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: sara</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-9197</link>
		<author>sara</author>
		<pubDate>Thu, 21 Jan 2010 17:13:29 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-9197</guid>
		<description>&lt;p&gt;I instaled this plugin, but I have this error&lt;/p&gt;

&lt;p&gt;"Fatal error: Declaration of csI18nRouting::generate() must be compatible with that of sfRouting::generate() "&lt;/p&gt;

&lt;p&gt;does anyone can help me&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I instaled this plugin, but I have this error</p>
<p>&#8220;Fatal error: Declaration of csI18nRouting::generate() must be compatible with that of sfRouting::generate() &#8220;</p>
<p>does anyone can help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piwaï</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2487</link>
		<author>Piwaï</author>
		<pubDate>Thu, 24 Jul 2008 10:11:50 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2487</guid>
		<description>&lt;p&gt;Your plugin is great, and I decided to extend it to correct some bugs, and add a few new features to use it for my open source web application.&lt;/p&gt;

&lt;p&gt;Here is my project : 
http://sourceforge.net/projects/plagiasi&lt;/p&gt;

&lt;p&gt;Here is the new plugin :
https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/plugins/csI18nRoutingPlugin-0.1.0-extended/&lt;/p&gt;

&lt;p&gt;Here is an exemple of usage to enable switching language of pages and keeping the same page :&lt;/p&gt;

&lt;p&gt;https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/apps/plagiasi/templates/layout.php
=&#62; starts line 24&lt;/p&gt;

&lt;p&gt;What do you think about it ? I think maybe you should add the plugin to the symfony website, and many you could take advantage of my changes.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Your plugin is great, and I decided to extend it to correct some bugs, and add a few new features to use it for my open source web application.</p>
<p>Here is my project :<br />
<a href="http://sourceforge.net/projects/plagiasi" rel="nofollow">http://sourceforge.net/projects/plagiasi</a></p>
<p>Here is the new plugin :<br />
<a href="https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/plugins/csI18nRoutingPlugin-0.1.0-extended/" rel="nofollow">https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/plugins/csI18nRoutingPlugin-0.1.0-extended/</a></p>
<p>Here is an exemple of usage to enable switching language of pages and keeping the same page :</p>
<p><a href="https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/apps/plagiasi/templates/layout.php" rel="nofollow">https://plagiasi.svn.sourceforge.net/svnroot/plagiasi/tags/v1.0/apps/plagiasi/templates/layout.php</a><br />
=&gt; starts line 24</p>
<p>What do you think about it ? I think maybe you should add the plugin to the symfony website, and many you could take advantage of my changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piwaï</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2415</link>
		<author>Piwaï</author>
		<pubDate>Sat, 21 Jun 2008 17:31:19 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2415</guid>
		<description>&lt;p&gt;ow the rendering in the comment is awful ! If you are interested, please contact me using my email to get the correct patch ;) .&lt;/p&gt;

&lt;p&gt;By the way, if anyone else also need it, you may find my email on my website : http://www.piwai.info&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>ow the rendering in the comment is awful ! If you are interested, please contact me using my email to get the correct patch <img src='http://prototyp.ical.ly/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>By the way, if anyone else also need it, you may find my email on my website : <a href="http://www.piwai.info" rel="nofollow">http://www.piwai.info</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piwaï</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2414</link>
		<author>Piwaï</author>
		<pubDate>Sat, 21 Jun 2008 17:28:16 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2414</guid>
		<description>&lt;p&gt;I started using it, and I would like to provide to patch to csI18nRouting class. Your own version creates an exception in the logs when the generate method is called. This is due to the fact that you catch the exception and then retry with a i18n route. I think it might be better to anticipate over the exception, so here is my patch to the generate method in      csI18nRouting class :
&lt;code&gt;
  public function generate($name, $params, $querydiv = '/', $divider = '/', $equals = '/')
  {
    if (sfConfig::get('sf_logging_enabled'))
    {
      sfLogger::getInstance()-&#62;info('{csI18nRouting} generate('.$name.').');
    }
      /&lt;em&gt;try
      {
        return parent::generate($name, $params, $querydiv, $divider, $equals);
      }
      catch(sfConfigurationException $e)
      {
        $culture = sfContext::getInstance()-&#62;getUser()-&#62;getCulture();
        return parent::generate(sprintf(self::I18N_NAME_SYNTAX, $name, $culture), $params, $querydiv, $divider, $equals);
      }&lt;/em&gt;/&lt;/code&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if ($name &#38;&#38; !isset($this-&#62;routes[$name]))
{
  $culture = sfContext::getInstance()-&#62;getUser()-&#62;getCulture();
  $i18nName = sprintf(self::I18N_NAME_SYNTAX, $name, $culture);
  if (isset($this-&#62;routes[$i18nName]))
  {
    $name=$i18Name;
  }
}
return parent::generate($name, $params, $querydiv, $divider, $equals);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}
&lt;/p&gt;

&lt;p&gt;Furthermore, this piece of code corrects another bug from your plugin, which was that if we did
&lt;code&gt;
 &lt;/code&gt;&lt;/p&gt;

&lt;p&gt;if would generate the following exception :
&lt;code&gt;
The route "non_existing_rule_&lt;strong&gt;fr&lt;/strong&gt;_" does not exist.
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;instead of the good one : 
&lt;code&gt;
The route "non_existing_rule" does not exist.
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;What do you think of that patch  ?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I started using it, and I would like to provide to patch to csI18nRouting class. Your own version creates an exception in the logs when the generate method is called. This is due to the fact that you catch the exception and then retry with a i18n route. I think it might be better to anticipate over the exception, so here is my patch to the generate method in      csI18nRouting class :<br />
<code><br />
  public function generate($name, $params, $querydiv = '/', $divider = '/', $equals = '/')<br />
  {<br />
    if (sfConfig::get('sf_logging_enabled'))<br />
    {<br />
      sfLogger::getInstance()-&gt;info('{csI18nRouting} generate('.$name.').');<br />
    }<br />
      /<em>try<br />
      {<br />
        return parent::generate($name, $params, $querydiv, $divider, $equals);<br />
      }<br />
      catch(sfConfigurationException $e)<br />
      {<br />
        $culture = sfContext::getInstance()-&gt;getUser()-&gt;getCulture();<br />
        return parent::generate(sprintf(self::I18N_NAME_SYNTAX, $name, $culture), $params, $querydiv, $divider, $equals);<br />
      }</em>/</code></p>
<pre><code>if ($name &amp;&amp; !isset($this-&gt;routes[$name]))
{
  $culture = sfContext::getInstance()-&gt;getUser()-&gt;getCulture();
  $i18nName = sprintf(self::I18N_NAME_SYNTAX, $name, $culture);
  if (isset($this-&gt;routes[$i18nName]))
  {
    $name=$i18Name;
  }
}
return parent::generate($name, $params, $querydiv, $divider, $equals);
</code></pre>
<p>}
</p>
<p>Furthermore, this piece of code corrects another bug from your plugin, which was that if we did<br />
<code><br />
 </code></p>
<p>if would generate the following exception :<br />
<code><br />
The route "non_existing_rule_<strong>fr</strong>_&#8221; does not exist.<br />
</code></p>
<p>instead of the good one :<br />
<code><br />
The route "non_existing_rule" does not exist.<br />
</code></p>
<p>What do you think of that patch  ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piwaï</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2413</link>
		<author>Piwaï</author>
		<pubDate>Sat, 21 Jun 2008 15:20:08 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-2413</guid>
		<description>&lt;p&gt;This is a nice plugin, really ! I was exactly looking for this way of handling i18n urls !&lt;/p&gt;

&lt;p&gt;I think you should publish it to the symfony plugins page, here :&lt;/p&gt;

&lt;p&gt;http://trac.symfony-project.com/wiki/SymfonyPlugins&lt;/p&gt;

&lt;p&gt;By the way, what's wrong with the url helper ?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is a nice plugin, really ! I was exactly looking for this way of handling i18n urls !</p>
<p>I think you should publish it to the symfony plugins page, here :</p>
<p><a href="http://trac.symfony-project.com/wiki/SymfonyPlugins" rel="nofollow">http://trac.symfony-project.com/wiki/SymfonyPlugins</a></p>
<p>By the way, what&#8217;s wrong with the url helper ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-03-13 &#124; xanders blog</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-1717</link>
		<author>links for 2008-03-13 &#124; xanders blog</author>
		<pubDate>Thu, 13 Mar 2008 05:25:22 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-1717</guid>
		<description>&lt;p&gt;[...] prototyp.ical.ly » Routing international URLs in Symfony Symfonys I18n support is pretty neat once you&#8217;ve got the hang of it. The one thing I always missed was to have a set of URLs per culture in order to name the urls in different languages. Consider the following: You have to build an application that is ser (tags: tradesinfo i18n php plugin symfony)     &#171; links for 2008-03-08 [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] prototyp.ical.ly » Routing international URLs in Symfony Symfonys I18n support is pretty neat once you&#8217;ve got the hang of it. The one thing I always missed was to have a set of URLs per culture in order to name the urls in different languages. Consider the following: You have to build an application that is ser (tags: tradesinfo i18n php plugin symfony)     &laquo; links for 2008-03-08 [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SfUser</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-828</link>
		<author>SfUser</author>
		<pubDate>Thu, 04 Oct 2007 19:01:31 +0000</pubDate>
		<guid>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comment-828</guid>
		<description>&lt;p&gt;WOW !!!&lt;/p&gt;

&lt;p&gt;Incrediable !
THank you very very very much for that piece of code ! You saved me a LOT of time !&lt;/p&gt;

&lt;p&gt;THanks SOOOO much !&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>WOW !!!</p>
<p>Incrediable !<br />
THank you very very very much for that piece of code ! You saved me a LOT of time !</p>
<p>THanks SOOOO much !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
