I'm using a form plugin, and a script that will be generating some inputs for the form. Unfortunately, the script doesn't recognize any language settings, and the only thing I could do is to configure the link in that script (this link points to that form generated by the form plugin) to follow the default language path (which is english).
I was expecting to use a shortcode function to detect current page's language setting, but somehow, when I view the page, there is no output at all. This is the content of the shortcode function:
if(qtrans_getLanguage() == 'en' OR 'EN') {
do_shortcode('[gravityform id=1 name="Hosting Plan Purchase" title=false description=false ajax=true]');
} else if (qtrans_getLanguage() == 'zh' OR 'ZH') {
do_shortcode('[gravityform id=5 name="网站托管套餐" title=false description=false ajax=true]');
}
Angela