title: Multiple Magento websites with store view codes as language codes
body: <p>I was comfortable handling multilanguage setups using store views, setting each store view's code to it's respective language shortcode (de, fr, en, ...). Then enabled "Add Store Code to URLS" and everyone was happy, it just worked.</p>
  
  <p>This time it's somewhat more complicated. I have a Magento installation with multiple websites, one for each contry, and some of them have common language codes.</p>
  
  <p>For example, imagine that I have a website for both Canada and Belgium. The first one will support French and English as navigation languages and the latter one French, Dutch and German.</p>
  
  <p>Since both sites have common navigation languages (French), I cannot use the language shortcode as the store view code, as these ones must be unique. I could prefix the website name to the store view code site1_fr, site2_fr, but as the store code is meant to be shown on the url, this will lead to ugly and somewhat redundant urls: site1.ca/site1_fr instead of just site1.ca/fr.</p>
  
  <p>Is there some kind of workaround in order to hide these ugly store codes?</p>
  
  <p>Perhaps some mod_rewrite magic and Magento config changes would do the trick?</p>
  
  <p>Thanks in advance.</p>