WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. arayoweb
    Member
    Posted 1 month ago #

    Hi,

    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?

    Thanks.

    https://wordpress.org/plugins/wp-store-locator/

  2. Tijmen Smit
    Member
    Plugin Author

    Posted 1 month 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
    Member
    Posted 1 month 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.

    Cheers.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.