Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had tried to find, without success, a way to translate the "Your approximate location" string when using Google Maps. The string doesn't even appear in the list of translatable texts of Drupal.
In my research in the module files I had found in the archive /js/ip_geoloc_gmap_multi_loc.js line 128:
showSpecialMarker(m, visitorPosition, Drupal.t('Your approximate location (' + latitude + ', ' + longitude + ')'));
which appears to be the one that is not working.
Comments
Comment #1
RdeBoerThanks for your report Vuds.
The code uses Drupal.t() for the purpose of making the string translatable.
I thought this was the right thing to do but am not sure how this is all meant to work in a javascript context.
I'll have to research it.
Rik
Comment #2
RdeBoerSorry for this falling between the cracks...
Hope to attend to this in the next couple of days...
Comment #3
RdeBoerFinally.... 1 year later it's done... So sorry....
Comment #5
RdeBoer