Translation of header and footer message doesn't work with version 6.x-1.1. While admin can translate it throught drupal integrated translation system, still the english version will show up.
Solution is to replace the code in the function theme_gmap_location_node_page on line 373 of gmap_location.module with the following:
function theme_gmap_location_node_page($count, $header, $map, $footer) {
$output = '';
if ($header) {
$output .= '<p>'.t($header).'</p>';
}
$output .= $map;
if ($footer) {
$output .= '<p>'.t($footer).'</p>';
}
return $output;
}
Best
Mauro
Comments
Comment #1
knalstaaf commentedUnfortunately this method isn't really the way this module should be working (not your fault).
Moreover: don't replace it straight into the module though (it will be overwritten in the next update), but add it to the template.php-file of your theme, and replace "theme" in the function name with the name of your theme folder (
[THEME NAME FOLDER]_gmap_location_node_page).