Map language syntax

New home Forums Pro Add-on Map language syntax

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7745
    ShortCoast
    Member

    Hi,
    I followed this page in order to have a certain language for my maps:

    Changing the WP Google Maps Plugin Language

    I have both the PRO and GOLD versions but when I access the file for the pro vers: “wp-google-maps-pro.php ” in there there’s no actually a line like “maps.google.com/maps/api/js?sensor=false” but instead there’s something like:

    document.write(unescape(“%3Cscript src='” + gmapsJsHost + “maps.google.com/maps/api/js?<?php echo $api_version_string; ?>sensor=false&libraries=weather’ type=’text/javascript’%3E%3C/script%3E”));

    where should I add the “&language=it-it” part? or is it “&language=it-it”?

    Many thanks,
    SC

    #7759
    Nick Duncan
    Keymaster

    Hi there
    Please change that from
    document.write(unescape(“%3Cscript src=’” + gmapsJsHost + “maps.google.com/maps/api/js?<?php echo $api_version_string; ?>sensor=false&libraries=weather’ type=’text/javascript’%3E%3C/script%3E”));

    to

    document.write(unescape(“%3Cscript src=’” + gmapsJsHost + “maps.google.com/maps/api/js?<?php echo $api_version_string; ?>sensor=false&libraries=weather&language=it-it’ type=’text/javascript’%3E%3C/script%3E”));

    #7760
    Nick Duncan
    Keymaster

    Careful of copying and pasting from this solution mentioned above as the website adds incomplatible double quotes and single quotes when copying and pasting. Ensure you replace those

    #7766
    ShortCoast
    Member

    perfect: it works!
    thx a lot!

    #10553
    rigo
    Member

    Hii,

    I did this

    document.write(unescape(“%3Cscript src=’” + gmapsJsHost + “maps.google.com/maps/api/js?<?php echo $api_version_string; ?>sensor=false&libraries=weather&language=en-en’ type=’text/javascript’%3E%3C/script%3E”));

    but it didn’t work! How do I change the language of the directions?

    #10684
    Nick Duncan
    Keymaster

    Hi Rigo
    What language are you trying to translate the map to?

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Map language syntax’ is closed to new replies.