Handling multilanguage with JQuery only
<p>I use JQuery in my web app and I am wondering what the best way to handle multilanguage in that context is.<br>
I was thinking of creating a file like:</p>

<pre><code>label["login"]["fr"]="Connection"
label["login"]["en"]="Login"
</code></pre>

<p>Once the file is loaded I will then do (for each label) a:</p>

<pre><code>$('#login').text(label["login"][selected_language]);
</code></pre>

<p>In HTML I would then use:  </p>

<pre><code>&lt;a href="login.html"&gt;&lt;span id="login"&gt;&lt;/span&gt;&lt;/a&gt;
</code></pre>

<p>Is this a correct way to do ?</p>
