Index: trunk/extensions/SemanticGoogleMaps/SGM_QueryPrinter.php |
— | — | @@ -107,13 +107,14 @@ |
108 | 108 | } else { |
109 | 109 | $control_class = 'GLargeMapControl'; |
110 | 110 | } |
111 | | - global $wgJsMimeType, $wgGoogleMapsKey, $wgGoogleMapsOnThisPage; |
| 111 | + global $wgJsMimeType, $wgGoogleMapsKey, $wgGoogleMapsOnThisPage; |
| 112 | + global $wgLang; |
112 | 113 | |
113 | | - if (!$wgGoogleMapsOnThisPage) {$wgGoogleMapsOnThisPage = 0;} |
114 | | - $wgGoogleMapsOnThisPage++; |
| 114 | + if (!$wgGoogleMapsOnThisPage) {$wgGoogleMapsOnThisPage = 0;} |
| 115 | + $wgGoogleMapsOnThisPage++; |
115 | 116 | |
116 | | - $map_text = <<<END |
117 | | -<script src="http://maps.google.com/maps?file=api&v=2&key=$wgGoogleMapsKey" type="$wgJsMimeType"></script> |
| 117 | + $map_text = <<<END |
| 118 | +<script src="http://maps.google.com/maps?file=api&v=2&key=$wgGoogleMapsKey&hl={$wgLang->getCode()}" type="$wgJsMimeType"></script> |
118 | 119 | <script type="text/javascript"> |
119 | 120 | function createMarker(point, title, label, icon) { |
120 | 121 | if (icon!='') { |