Title: Bilingual implementation
Last modified: August 20, 2016

---

# Bilingual implementation

 *  Resolved [Ghazi Asif Salahuddin (Lenin)](https://wordpress.org/support/users/leninzce/)
 * (@leninzce)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/bilingual-implementation/)
 * I need to get the error/success messages in the other languages(ie when the language
   is switched).
 * I tried changing `settings.php` of the plugin. It was
 * `return (string) $wpcf7_request_uri;`
 * and now is
 *     ```
       $lang = "&lang=" . qtrans_getLanguage();
       return ((string) $wpcf7_request_uri) . $lang;
       ```
   
 * Its changes my url to: `http://example.com/contact-us/&lang=ar#wpcf7-f289-t1-
   o1` and that becomes 404.
 * qTranslate has three configs for language. 1. query string 2. pre-Path Mode (
   puts /en/ in front) 3. en.yoursite.com. I am using 2.
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/bilingual-implementation/#post-3403708)
 * You don’t have to think it so difficult. Simply make two forms for two languages(
   see [Contact Form in Your Language](http://contactform7.com/contact-form-in-your-language/)),
   and place en form in en post, ar form in ar post.
 *  Thread Starter [Ghazi Asif Salahuddin (Lenin)](https://wordpress.org/support/users/leninzce/)
 * (@leninzce)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/bilingual-implementation/#post-3403711)
 * Thanks!
 * Now can I change the locale of an existing form I saved?
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/bilingual-implementation/#post-3403714)
 * Each form data doesn’t have any locale information. So you don’t have to change
   it.
 *  Thread Starter [Ghazi Asif Salahuddin (Lenin)](https://wordpress.org/support/users/leninzce/)
 * (@leninzce)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/bilingual-implementation/#post-3403716)
 * If that is so, please tell me how I can get different locale for an existing 
   saved contact form.
 *  Thread Starter [Ghazi Asif Salahuddin (Lenin)](https://wordpress.org/support/users/leninzce/)
 * (@leninzce)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/bilingual-implementation/#post-3403719)
 * Also, offtopic to this thread but. I would request you to make a dynamic option
   to have the sequence of elements changed like below:
 *     ```
       if ( ! $this->responses_count )
       			$form .= $this->form_response_output();
       		$form .= $this->form_hidden_fields();
   
       		$form .= $this->form_elements();
       ```
   
 * Because, twitterbootstrap by default puts the markup at the top of form.
 *  Thread Starter [Ghazi Asif Salahuddin (Lenin)](https://wordpress.org/support/users/leninzce/)
 * (@leninzce)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/bilingual-implementation/#post-3403740)
 * I am assuming that, when we select the locale before creating the contact form.
   It fetches the proper locale strings and the response strings with this post 
   and maybe saves them also.
 * The lines of codes I pasted above are from:
    `contact-form-7/includes/classes.
   php`
 * Without making the change directly into the plugin code I wasn’t able to get 
   the form in **TwitterBootstrap** friendly manner.
 *  Thread Starter [Ghazi Asif Salahuddin (Lenin)](https://wordpress.org/support/users/leninzce/)
 * (@leninzce)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/bilingual-implementation/#post-3403789)
 * Also, submitting the form changes the site language so I had to modify your `
   settings.php` like below:
 * `return ((string) '/'.qtrans_getLanguage().$wpcf7_request_uri);`

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Bilingual implementation’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [bilingual](https://wordpress.org/support/topic-tag/bilingual/)
 * [[Success]](https://wordpress.org/support/topic-tag/success/)

 * 7 replies
 * 2 participants
 * Last reply from: [Ghazi Asif Salahuddin (Lenin)](https://wordpress.org/support/users/leninzce/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/bilingual-implementation/#post-3403789)
 * Status: resolved