Localize google maps

This topic contains 3 replies, has 2 voices, and was last updated by  Stephen Harris 11 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2833

    Hi Stephen
    I love your plugin, though found a small thing that I fixed, but should probably get to the core :
    its very easy to localize the google-maps (front-end and back-end – I found 2 locations) by replacing the

    in /includes/event-organiser-register.php

    wp_register_script( ‘eo_GoogleMap’, ‘http://maps.googleapis.com/maps/api/js?sensor=true&language=user-lang‘);

    ( user-lang should be replaced by the language 2 letter format – en/he/ru/it etc’ )

    in /js/frontend.js

    script.src = “http://maps.googleapis.com/maps/api/js?sensor=false&language=user-lang&callback=eo_load_map”;

    Thanks
    Tzvook

    Tzvook
    #2834

    Thanks Tzvook!

    I’ve started a ticket for this feature: https://github.com/stephenharris/Event-Organiser/issues/26. Seems fairly simple to fix so you can expect it in 1.7!

    Stephen Harris
    #2883

    I 4got to mention it needs to be done also at : js/frontend.min.js

    Tzvook
    #2884

    Yup, before releasing it, I’ll compress all scripts so frontend.min.js is will be updated. Cheers though 🙂

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.