In the map js file, there is a function to capture directions errors:
GEvent.addListener(directions, "error", function() {
map.setCenter(wagmp_map_1_obj.points[0], 13);
map.addOverlay(wagmp_map_1_obj.markers[0]);
});
you could change that to:
GEvent.addListener(directions, "error", function() {
<?php if($_SERVER["REQUEST_METHOD"] == "POST") echo("alert('The address you entered cannot be found');\r\n"); ?>
map.setCenter(wagmp_map_1_obj.points[0], 13);
map.addOverlay(wagmp_map_1_obj.markers[0]);
});
to show a javascript alert window.
you can change the language by adding an hl parameter to the API script tag.
For example, the tag will look like:
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAvZMU4-DFRYtw1UlTj_zc6hT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQcT1h-VA8wQL5JBdsM5JWeJpukvw">/*wagmp*/</script>
I could change the map to german by adding "hl=de":
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAvZMU4-DFRYtw1UlTj_zc6hT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQcT1h-VA8wQL5JBdsM5JWeJpukvw&hl=de">/*wagmp*/</script>


