<?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/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>prototyp.ical.ly &#187; Symfony Plugin</title>
	<link>http://prototyp.ical.ly</link>
	<description>prototypical scriptings all over the place</description>
	<pubDate>Fri, 29 Feb 2008 11:59:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>Routing international URLs in Symfony</title>
		<link>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/</link>
		<comments>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 18:22:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Symfony Plugin]]></category>

		<category><![CDATA[I18n]]></category>

		<category><![CDATA[Symfony Framework]]></category>

		<category><![CDATA[Howto]]></category>

		<category><![CDATA[PHP]]></category>
<category>csi18nrouting</category><category>csi18nroutingplugin</category><category>i18n</category><category>internationalisation</category><category>L10N</category><category>PHP</category><category>plugin</category><category>routing</category><category>Symfony</category>
		<guid isPermaLink="false">http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/</guid>
		<description><![CDATA[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 served in English, French and German.

Now you would probably [...]]]></description>
			<content:encoded><![CDATA[<p>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.</p>

<p>Consider the following:
You have to build an application that is served in English, French and German.</p>

<p>Now you would probably name your starting page &#8216;homepage&#8217;. But then it would be nice to call it &#8216;pagedaccueil&#8217; for your french visitors and &#8217;startseite&#8217; for the german speaking, wouldn&#8217;t it?</p>

<p>For example with this routing you can achieve just that.</p>

<p><code></code></p>

<pre>
homepage:
  url:
    de:   /startseite
    en:   /homepage
    fr:   /pagedaccueil
  params: [ module: home, action: index ]
</pre>

<p></p>

<p>Well with a bit of tweaking I managed to find a way to achieve this. It&#8217;s currently not too easy to extend the originally shipped sfRouting,you have to use a filter to achieve that but from there it&#8217;s easy.</p>

<p>The slightly enhanced UrlHelper functions are not yet well documented and probably not very complete either but then again I will come round to better them as time will come and request will be made.</p>

<p>Oh and of course you can still have your old routes working as before. I18n routes are an optional feature you get with this plugin.</p>

<p>Find out more about csI18nRoutingPlugin <a href="http://prototyp.ical.ly/csI18nRoutingPlugin-0.1.0.tgz">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://prototyp.ical.ly/index.php/2007/08/29/routing-international-urls-in-symfony/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
