WP Store Locator
[resolved] Translation into Spanish (3 posts)

  1. arayoweb
    Posted 2 years ago #


    I am having problems translating the labels such as Location:, Search radius etc. I've added the labels in English in settings to display on the English site, but when I translate into Spanish via WPML the translations are not displaying. Any ideas?



  2. Tijmen Smit
    Plugin Author

    Posted 2 years ago #

    There are some issues with WPML, it seems to work for some and fail for others. I will look into it as soon as I have the time for it, which won't be this week.

    It's likely that the labels you find in WPML are actually the default values that are set in the wp-store-locator.php and not the ones that are loaded in the /frontend/class-frontend.php which are the ones used on the frontend.

    I will try and fix it in the next release. One solution you could use, is to detect the used language ( I assume wpml sets a variable somewhere that allows you to check which language is current used, or get it from the url param? ) and then based on that set the $labels array content on line 224.

    It's a bit of a hack solution. But until I figure out why it doesn't work with WPML, I think this is the only way to do it.

  3. arayoweb
    Posted 2 years ago #

    Ok, thanks for getting back to me. We're in no urgent rush for it as have just removed the form for now as they only have a few stores anyway, but when expand they will most likely need the feature, so if you can just drop me a message when it's been fixed that'll be really appreciated.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Store Locator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.