Add qTranslate support to Contact Form 7
For those of you using WordPress that would like a non-intrusive simple way to add qTranslate support to your Contact Form 7 contact forms, here’s a simple snippet you can insert into functions.php: // Add qTranslate support to contact form 7 add_filter(‘wpcf7_form_elements’, ‘rl_wpcf7_form_elements’); function rl_wpcf7_form_elements($content){ if(function_exists(‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’)){ return qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($content); } } add_filter(‘wpcf7_form_class_attr’, ‘rl_wpcf7_form_class_attr’); function rl_wpcf7_form_class_attr($content){ if(function_exists(‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’)){ […]