Skip Navigation

[Résolu] No translation for google maps and add autocomplete fields

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created Il y a 6 années et 6 mois. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 7 réponses, has 2 voix.

Last updated by Beda Il y a 6 années et 3 mois.

Assisted by: Beda.

Auteur
Publications
#579815

I use a maps field in a Cred form.

In Toolset Maps there is no Dutch translation for Google Maps texts, like Enter Address or Show/Hide coordinates. I cannot find a file to translate myself.

Nice feature that you can replace the marker and get the closest address en use this address. This is the neatly formatted address with zip code. I would like to always have this nicely formatted address for my database.

And also the separate fields like street, street number, city, zip code, country, state.

I think it would not be much effort to add (hidden) fields for street address, city, state, zip code, country. With a little extra JavaScript people can use these fields to auto fill fields in the cred form. All the needed information is already there. I tried to do it myself with an extra field, but it would be far better if it is a standard feature of the address field.
With these minor alterations you can make Cred forms with address fields so much easier, more client friendly to use.

#579865

We cannot separate the values like you suggest, as we just use the values as Google gives them to us, or, if no address, then we store the Lat/Long of the "address".
This feature has been requested a few times, but we cannot add it.

But there are other approaches:
https://toolset.com/forums/topic/output-location-field/

This should solve the issue for you as well, is this correct?

Related to the translations, "Enter Address" is localized in the source code.
It should be available for translation since it is registered as follows:

__('Enter address', 'toolset-maps')

The same for "Show/Hide coordinates":

__( 'Show/Hide coordinates', 'toolset-maps' )

Any translation software like WPML for example will find those strings under the domain "toolset-maps" ready for translation.

Of course, this is not the idea here though, but an option for a fast solution.
I say this is not the idea here, because if we offer such strings, that are hardcoded in our base code, we should also offer a translation as PO and Mo files

I will Report this to the DEV team, but it will require some time to send it for the translations and as well to publish it.
Once that is done, I would update you here.

Is that OK for you? If you are in a hurry, any Plugin that allows you to translate localized Plugins could help, like WPML.

#580115

Thank you Beda,

The output-location-field topic helped me, yes. Only I did not use the index of the component, but the name. If an incomplete address is entered you get trouble when using the indexes. And when the address is changed, because the marker has been moved the old result remains. But I can live with that or do you have an easy solution?

I will wait for the translations, thanks.

Marijke

#580125

Related to the issue #1, that is a Custom Code solution that Nigel crafted. Custom Code falls under some specific Support rules, and we can assist this only to certain extents.
If you wish I can let Nigel chime in here, eventually he has some words on the topic.

Related to the translations, we determined that they are completely missing for Maps - and we will provide them ASAP.

Thank you for your patience.

#580127

Escalating this internally for the translation task.

#580155
babberich2.PNG
baberich.PNG

Thanks again Beda,

I am happy with my solution with error if street number is missing, see screenshots.

Marijke

#580483

OK.

I reopen this thread so to update you here once we include the translations.

Thank you.

#604723

This is fixed in Toolset Maps 1.4

Thank you for your patience.

Le forum ‘Types Community Support’ est fermé à de nouveaux sujets et réponses.

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