How to find when qtranslate plugin’s language changes? [closed]

From qTranslate’s official support forums

The function to get the current language is qtrans_getLanguage()

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)