This thread is resolved. Here is a description of the problem and solution.
Solution: The strings need to be wrapped inside a getText() function like this:
document.bmiForm.meaning.value = "<?php _e( 'Normal weight.', 'themetextdomain' ); ?>"
This is useful when the variables are included inside the html. Otherwise, it is easier and safer to use the wp_localize_script() function.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.