New home › Forums › Pro Add-on › Map language syntax
Tagged: language, translation
- This topic has 5 replies, 3 voices, and was last updated 8 years, 8 months ago by Nick Duncan.
-
AuthorPosts
-
July 30, 2014 at 8:05 am #7745ShortCoastMember
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,
SCJuly 30, 2014 at 12:17 pm #7759Nick DuncanKeymasterHi 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”));
July 30, 2014 at 12:17 pm #7760Nick DuncanKeymasterCareful 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
July 30, 2014 at 12:36 pm #7766ShortCoastMemberperfect: it works!
thx a lot!January 22, 2015 at 2:08 pm #10553rigoMemberHii,
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?
January 26, 2015 at 11:30 am #10684Nick DuncanKeymasterHi Rigo
What language are you trying to translate the map to? -
AuthorPosts
- The topic ‘Map language syntax’ is closed to new replies.