Title: [Plugin: SimpleMap Store Locator] Default language VS Current language
Last modified: August 20, 2016

---

# [Plugin: SimpleMap Store Locator] Default language VS Current language

 *  Resolved [Elementis](https://wordpress.org/support/users/elementis/)
 * (@elementis)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-simplemap-store-locator-default-language-vs-current-language/)
 * I’m having a little problem in the locations section. Since I added a french 
   translation (.mo/.po files), the text in the English website appears in French…
   The default language of my site is French.
 * At first the problem was all over the page, like if the original strings were
   not working. After little changes, the problem is only in the loaded section 
   below the map. Anyone had this problem?
 * [http://wordpress.org/extend/plugins/simplemap/](http://wordpress.org/extend/plugins/simplemap/)

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

 *  Thread Starter [Elementis](https://wordpress.org/support/users/elementis/)
 * (@elementis)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-simplemap-store-locator-default-language-vs-current-language/#post-2925028)
 * Found a solution that work with WPML. In plugins/simplemap/classes/simplemap.
   php, I changed
 * `wp_enqueue_script( 'simplemap-master-js', site_url() . '?simplemap-master-js
   =1&smpid=' . $post->ID, array( 'jquery' ) );`
 * by
 * `wp_enqueue_script( 'simplemap-master-js', site_url() . '/'.ICL_LANGUAGE_CODE.'/?
   simplemap-master-js', array( 'jquery' ) );`
 *  [Brian KD](https://wordpress.org/support/users/brian-kd/)
 * (@brian-kd)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-simplemap-store-locator-default-language-vs-current-language/#post-2925187)
 * Thanks for posting. I’m guessing this will save me a bundle of time 🙂
 * I wrapped it in an if statement looking for the WPML constant to be defined. 
   If it’s undefined (plugin is turned off, damaged, or deleted) then the original
   code would kick in:
 * `
    if (defined(ICL_LANGUAGE_CODE)) { wp_enqueue_script( 'simplemap-master-js',
   site_url() . '/'.ICL_LANGUAGE_CODE. '/?simplemap-master-js', array( 'jquery' ));}
   else { wp_enqueue_script( 'simplemap-master-js', site_url() . '?simplemap-master-
   js=1&smpid=' . $post->ID, array( 'jquery' ) ); }
 * Cheers,
    Brian Peterson kismetwebdesign.com

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

The topic ‘[Plugin: SimpleMap Store Locator] Default language VS Current language’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simplemap_cca5a5.svg)
 * [SimpleMap Store Locator](https://wordpress.org/plugins/simplemap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simplemap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simplemap/)
 * [Active Topics](https://wordpress.org/support/plugin/simplemap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplemap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplemap/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Brian KD](https://wordpress.org/support/users/brian-kd/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-simplemap-store-locator-default-language-vs-current-language/#post-2925187)
 * Status: resolved