title: Making Smarty supporting multiple languages
body: <p>first of all, let me tell ya, that I'm from Germany. So my English will not be very well. Please forgive me. =P </p>
  
  <p>I'm about to develop a multilingual website with PHP5. In order to seperate the presentation layer from the business logic, I'm using the <a href="http://www.smarty.net/" rel="nofollow" title="SmartyTemplateEngine">SmartyTemplateEngine</a> (v3.0.8). To make it multilingual I had to edit <a href="http://smarty.incutio.com/?page=SmartyMultilanguageSupport" rel="nofollow">this SmartyPlugin</a> sometimes. But finally it is working for me. I'm using it that way: </p>
  
  <p><code>{lang}language.string{/lang}</code>. </p>
  
  <p>In the language file I have: </p>
  
  <p><code>language.string = &lt;![CDATA[Hello world!]]&gt;</code> (So it says Hello world!)</p>
  
  <p>Works fine. But I want to expend the script a bit further. I want to pass a variable to the language string. Something like this: </p>
  
  <p><code>{lang s=$userName}language.string{/lang}</code> </p>
  
  <p>In the language file I want to have:</p>
  
  <p><code>language.string = &lt;![CDATA[Hello %s!]]&gt;</code> (So it says Hello username!)</p>
  
  <p>I tried to find my solution with Google, but I didn't find something good. As far as I'm not a professional in PHP, I'm not capable of editing it myself. I hope somebody can help me with that. It is bothering me quite a while...</p>
  
  <p>Greets,
  Basti</p>