<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Latest snippets tagged i18n</title>
  <link rel="alternate" href="http://snippets.prendreuncafe.com/snippets/tagged/i18n/order_by/date"></link>
  <id>http://snippets.prendreuncafe.com/snippets/tagged/i18n/order_by/date</id>
  <updated>2009-02-06T17:00:57Z</updated>
  <author>
    <name>Symfony</name>
    <author_email>noreply@symfony-project.com</author_email>
  </author>
<entry>
  <title>Générer automatiquement des liens internationnalisés avec symfony 1.2</title>
  <link href="http://snippets.prendreuncafe.com/snippet/97"></link>
  <updated>2009-02-06T17:00:57Z</updated>
  <id>97</id>
  <summary type="html">Par exemple, dans le layout :

[code php]
&lt;ul&gt;
  &lt;li&gt;&lt;?php echo link_to(__('French'),  sprintf('@%s?sf_culture=fr', $r = $sf_context-&gt;getRouting()-&gt;getCurrentRouteName())) ?&gt;&lt;/li&gt;
  &lt;li&gt;&lt;?php echo link_to(__('English'), sprintf('@%s?sf_culture=en', $r)) ?&gt;&lt;/li&gt;
&lt;/ul&gt;
[/code]</summary>
</entry>
</feed>
