Multi language for a Website (php and javascript)
<p><br />
i try to build a language selection for my Website.</p>

<p>I use php and Javascript.</p>

<p>My idea is to create for every language a php file.</p>

<p><strong>For example: lang_en.php</strong></p>

<pre><code>&lt;?php
 $lang = array();
 $lang[1] = "Everything is ok!";
 $lang[2] = "Please select a Number.";
?&gt;

&lt;script language="JavaScript" type="text/javascript"&gt;
  lang = new Array();
  lang[1] = 'Hello, please select a Button.';
  lang[2] = 'Are you sure?';    
&lt;/script&gt;
</code></pre>

<p>But i am not sure, is this a good solution? Or is there a better way?</p>

<p>Thanks in advance!<br />
Peter</p>
