Title: Plugin breaking language
Last modified: February 15, 2018

---

# Plugin breaking language

 *  [gingerbooch](https://wordpress.org/support/users/gingerbooch/)
 * (@gingerbooch)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/plugin-breaking-language/)
 * Hi [@oferwald](https://wordpress.org/support/users/oferwald/)
 * I really love your plugin edit functionality, this is awesome.
    I am close to
   finish my website, I just end up facing a bug with an other plugin called Geomywp.
   The language is broken when I clic on the form’s submit button. I tried w3c validator
   and found an error like « the action form can not be empty ». But, this is also
   the case in another form wich is not breaking the language so this might not 
   be the reason. The other form is BP search, visible from the page « membres »
   of my website. Here you can submit once and keep the language. However, if you
   clic search a second time, you also loose the language ..
 * I don’t know how I could keep the ?lang=XX when I submit Geomywp form. It doesn’t
   look like a big issue.
    I tried placing your script in the footer but that is
   not working either. I suppose their is something to add in the code somewhere.
 * Can you help me please ?
 * Many thanks for the great work you have been doing so far.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-breaking-language%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [gingerbooch](https://wordpress.org/support/users/gingerbooch/)
 * (@gingerbooch)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/plugin-breaking-language/#post-9979406)
 * Hi !
 * I found 1/2 solution !! 😀
    That was somewhere on a forum, a similar case with
   woocommerce.
 * Here is the code for geomywp :
 *     ```
       add_action('gmw_post', array(&$this, 'gmw_post'));
   
       if (isset($_GET['action']) && $_GET['action'] == 'gmw_post') {
       $this->target_language = transposh_utils::get_language_from_url($_SERVER['HTTP_REFERER'], $this->home_url);
       }
       ```
   
 * Now the page result keeps the language, however the “lang=XX” is not present 
   in the adress bar. And any change on the page breaks the language.
    For exemple,
   if I change the number of results shown per page (dropdown option), the language
   falls back to default. Same if I initiate a second search. Same if I go to the
   next pages of results. But, if i tick the “edit translation” box, this puts the
   lang in the url. When I untick it, the lang stays in the url. Then I can use 
   the “number_of_results_per_page” dropdown, the language is kept. The solution
   is the “lang=XX” missing in my search results url.
 * How can I get the lang in the url please ?
    -  This reply was modified 8 years, 4 months ago by [gingerbooch](https://wordpress.org/support/users/gingerbooch/).
 *  Thread Starter [gingerbooch](https://wordpress.org/support/users/gingerbooch/)
 * (@gingerbooch)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-breaking-language/#post-9986201)
 * Hi,
 * New input. If I use the URL re-writing, site.com/XX/ instead of site.com/?lang
   =”XX”, I have no more trouble with the GeoMyWP search. Everything goes fine, 
   I can change the number of restults per page, I can go to the next page, that
   never breaks de language.
    But, I am using 3 plugins. The third one is Buddypress,
   and the URL re-writing does not work with BP links like profile link, registration
   link. It seems to loop.
 * Is it possible to use buddypress with url rewriting ? My foreign languages can’t
   access BP links with that config ?
 * Any idea for this issue or for the previous one to keep the markings in the url?
 *  Thread Starter [gingerbooch](https://wordpress.org/support/users/gingerbooch/)
 * (@gingerbooch)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-breaking-language/#post-10026902)
 * Hi [@oferwald](https://wordpress.org/support/users/oferwald/),
 * Any idea please ? 🙏
    -  This reply was modified 8 years, 3 months ago by [gingerbooch](https://wordpress.org/support/users/gingerbooch/).
 *  Thread Starter [gingerbooch](https://wordpress.org/support/users/gingerbooch/)
 * (@gingerbooch)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-breaking-language/#post-10061581)
 * Hi there,
 * I am still looking for a solution.
 *     ```
       ?lang=xx - does not work with GeoMyWP
       /xx/ - does not work with BuddyPress
       ```
   
 * Thank you

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

The topic ‘Plugin breaking language’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/transposh-translation-filter-for-
   wordpress_495166.svg)
 * [Transposh WordPress Translation](https://wordpress.org/plugins/transposh-translation-filter-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/transposh-translation-filter-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/reviews/)

 * 4 replies
 * 1 participant
 * Last reply from: [gingerbooch](https://wordpress.org/support/users/gingerbooch/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-breaking-language/#post-10061581)
 * Status: not resolved