• Hello all, I’m using WP 4.7.3 with “WP Store Locator 2.2.7” and “Polylang 2.1.2”.
    Polylang 2.1.2 is compatible with WPML, in fact WP Store Locator has a Warning in the settings page: “Warning! WPML, or a plugin using the WPML API is active.”

    But when I translate the WP Store Locator’s strings with Polylang the translated strings doesn’t appear translated in my website.

    Can I solve this problem?
    Someone use WP Store Locator and Polylang?

Viewing 11 replies - 1 through 11 (of 11 total)
  • I have exactly the same problem!

    I would love to avoid playing with PoEdit and string translation in Polylang doesn’t seem to work for WP Store Locator.

    Will try to debug the problem and let you know.

    J.

    Thread Starter flowerpower84

    (@flowerpower84)

    Thank you in advance!

    bilievesser

    (@bilievesser)

    I’m having the same problem. I first installed Store Locator, and translated the strings in the WPSL settings. All fine. Then I installed Polylang, but my WPSL strings then reverted back to english. No matter how I try to change these, they will now stay default. Something, somewhere, is overriding all possible edits.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I will look into this really soon and figure out what’s going on.

    Thank you Tijmen

    Sorry @flowerpower84 in my previous answer I mentioned that it was due to Polylang but I was wrong.

    Thread Starter flowerpower84

    (@flowerpower84)

    Thank you for the answers. Have you a workaround to solve the problem?

    patrickmatte

    (@patrickmatte)

    I’m having the same problem. The string translations don’t appear.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I found a fix that works for me, but it would great if others could test it as well.

    If you open the class-i8n.php in the /inc folder, then replace line 116-120 with the code below.

                
    if ( defined( 'WPML_ST_VERSION' ) ) {
        $translation = $text;
    } elseif ( defined( 'POLYLANG_VERSION' ) ) {
        $translation = pll__( $text );
    } else {
        $translation = stripslashes( $wpsl_settings[$name] );
    }
    

    @tijmen It works perfectly! Thank you Tijmen.

    @tijmen It works perfectly! Thank you Tijmen.

    bilievesser

    (@bilievesser)

    @tijmen It seems to work, but one of the strings are not being translated, namely the “search radius” string. Anyone else having the same experience? No idea if the fault is at my end, or with one of the plugins.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Polylang 2.1.2 support’ is closed to new replies.