title: How can I implement a language translation module in php
body: <p>Which is the best way of implementing a language translation for mutli -lang site.
  I have two methods, i.e.</p>
  
  <p>1) Just put all the static text contents in the pages to database ie a database driven programing style</p>
  
  <pre><code>$translation('register_form');
  &lt;form &gt;
   &lt;input name="search" &gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>some sort of transltion.</p>
  
  <p>2) is in like wordpress .mo files method.</p>
  
  <p>I want to know more about that kind of translation , how it works with .mo like files...</p>
  
  <p>or any other better way to make a translation module.</p>