Variable jquery parameter name
<p>I have a set of PHP language files which I use to output text to the user based on the their language choice. I have passed the PHP variables to javascript successfully and they are available as <code>LANG</code> You can see it in use in the code.</p>

<p>Here is my question... Since the code as shown below works perfectly, why can I not change this line...</p>

<pre><code>'No': { 'class' : ''}}
</code></pre>

<p>to</p>

<pre><code>LANG.no: { 'class'  : ''}}
</code></pre>

<p>Basically I want to know why I can use <code>LANG</code> elsewhere in the code but not in the line shown above or in the equivalent "Yes" line.</p>

<p>Here is the working code:</p>

<pre><code>$.confirm({
    'title': LANG.return_to_exhibit_lobby,
'message': "&lt;strong&gt;"+LANG.return_to_exhibit_lobby_confirmation+"&lt;/strong&gt;",
'buttons': {
'Yes': { 
    'class': 'special',
    'action': function(){
        window.location.href='logout.php';
    }},
'No': { 'class' : ''}}
});
</code></pre>
