How can I display "please fill required field" in diferent languages using jquery.validate and ?lang=?
<p>I'm using <code>$lang = $_GET['lang'];</code> and some arrays to change the language of the page.
So my pages URL look like this when I select a language: <code>...index.php?lang=en</code>
(so my index page never changes neither my jquery files) </p>

<p>(more details in my <a href="http://stackoverflow.com/questions/2306763/php-variable-is-activated-when-i-call-it-from-index-file-but-not-from-included-fi">previous post</a>)</p>

<p>I'm using jQuery validate plugin to validate my form and a <strong>custom.js</strong>:</p>

<pre><code>$(document).ready(function(){

    $("#sendmail").validate({
        rules: {
            FieldData0: {
                required: true
            },
            FieldData1: {
                required: true,
                email: true
            },
            FieldData2: {
                required: true
            }
        },
        messages: {
            FieldData0: {
                required: "Please enter your name"
            },
            FieldData1: {
                required: "Please enter your email address"
            },
            FieldData2: {
                required: "Please enter a message"
            }
        }
    });
})
</code></pre>

<p>How can I show different requirement warning for different languages in this case?
Do I have to make a <code>custom.js</code> for every language and then use php if else statements, is the a better way?</p>
