Skip Navigation

[Resolved] Help with translation of distance filter

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to translate the distance filter strings "Show results within" and "Enter a location".

Solution: You can customize the "Show results within" text using the inputs_placeholder attribute:

[wpv-control-distance default_distance="50" default_unit="mi" compare_field="address" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit" inputs_placeholder="Dutch translation within %%DISTANCE%% of %%CENTER%%"]

"Enter a location" is generated by the Google Maps API, and is automatically localized depending on the User's browser language preferences. Unfortunately I cannot provide a way to customize this completely.

0% of people find this useful.

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#907869
Screen Shot 2018-06-03 at 1.39.52 PM.png

My website is in Dutch and we are using the Distance filter on our search form. I can see I can change the text in the settings menu for USE MY LOCATION but I am hoping I can change the other two lines:

- Show results within
- Enter a location

hidden link

Thank you!

#908401

Hi, you can customize the "Show results within" text using the inputs_placeholder attribute:

[wpv-control-distance default_distance="50" default_unit="mi" compare_field="address" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit" inputs_placeholder="Dutch translation within %%DISTANCE%% of %%CENTER%%"]

"Enter a location" is generated by the Google Maps API, and is automatically localized depending on the User's browser language preferences. Unfortunately I cannot provide a way to customize this completely.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.