title: WPML Localizing inside javascript
body: <p>Well, I have this javascript code in my multilanguage wordpress website's header.php:</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
  &lt;!--
  function calculateBmi() {
  var weight = document.bmiForm.weight.value
  var height = document.bmiForm.height.value
  if(weight &gt; 0 &amp;&amp; height &gt; 0){
  var finalBmi = weight/(height/100*height/100)
  document.bmiForm.bmi.value = finalBmi
  if(finalBmi &gt; 18.5 &amp;&amp; finalBmi &lt; 25){
  document.bmiForm.meaning.value = "Normal weight."
  }
  if(finalBmi &gt; 25 &amp;&amp; finalBmi &lt; 30){
  document.bmiForm.meaning.value = "You have overweight."
  }
  if(finalBmi &gt; 30 &amp;&amp; finalBmi &lt; 35){
  document.bmiForm.meaning.value = "Overweight - I Stage."
  }
  if(finalBmi &gt; 35 &amp;&amp; finalBmi &lt; 40){
  document.bmiForm.meaning.value = "Overweight - II Stage."
  }
  if(finalBmi &gt; 40) {
  document.bmiForm.meaning.value = "Overweight - III Stage."
  }
  }
  else{
  alert("Please Fill in everything correctly")
  }
  }
  //--&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>And want to know how to translate it with WPML plugin.
  Only these strings must be translated.</p>
  
  <p>"Normal weight."
  "You have overweight."
  "Overweight - I Stage."
  "Overweight - II Stage."
  "Overweight - III Stage."</p>
  
  <p>I asked on the official forum, but they are too slow for me.</p>