title: How to add localization in the URL using the Zend Router
body: <p>I have a Zend Framework site that setups all routes in a file, routes.ini. The routes look like this:</p>
  
  <pre><code>routes.popular.route = popular/:type/:page/:sortOrder
  routes.popular.defaults.controller = popular
  routes.popular.defaults.action = index
  routes.popular.defaults.type = images
  routes.popular.defaults.sortOrder = alltime
  routes.popular.defaults.page = 1
  routes.popular.reqs.type = \w+
  routes.popular.reqs.page = \d+
  routes.popular.reqs.sortOrder = \w+
  </code></pre>
  
  <p>In bootstrap.php they are read and added to the frontController:</p>
  
  <pre><code>$config = new Zend_Config_Ini(APPLICATION_PATH . ‘/config/routes.ini’);
  $router = $frontController-&gt;getRouter();
  $router-&gt;addConfig($config,‘routes’);
  </code></pre>
  
  <p>I would like to add localization to the URL, for example www.mysite.com/en/popular, www.mysite.com/sv/popular. What is the preferred way of doing this?</p>