Index: trunk/extensions/SemanticMaps/includes/SM_GeoCoordsValue.php |
— | — | @@ -167,10 +167,18 @@ |
168 | 168 | global $smgQPCoodFormat, $smgQPCoodDirectional; |
169 | 169 | $text = MapsCoordinateParser::formatCoordinates( $coordinateSet, $smgQPCoodFormat, $smgQPCoodDirectional ); |
170 | 170 | |
171 | | - return '<span class="smwttinline">' . htmlspecialchars( $text ) . '<span class="smwttcontent">' . |
172 | | - htmlspecialchars ( wfMsgForContent( 'maps-latitude' ) . ' ' . $coordinateSet['lat'] ) . '<br />' . |
173 | | - htmlspecialchars ( wfMsgForContent( 'maps-longitude' ) . ' ' . $coordinateSet['lon'] ) . |
174 | | - '</span></span>'; |
| 171 | + $lines = array( |
| 172 | + htmlspecialchars( wfMsgExt( 'semanticmaps-latitude', 'content', $coordinateSet['lat'] ) ), |
| 173 | + htmlspecialchars( wfMsgExt( 'semanticmaps-longitude', 'content', $coordinateSet['lon'] ) ), |
| 174 | + ); |
| 175 | + |
| 176 | + if ( array_key_exists( 'alt', $coordinateSet ) ) { |
| 177 | + $lines[] = htmlspecialchars ( wfMsgForContent( 'semanticmaps-altitude', 'content', $coordinateSet['alt'] ) ); |
| 178 | + } |
| 179 | + |
| 180 | + return '<span class="smwttinline">' . htmlspecialchars( $text ) . '<span class="smwttcontent">' . |
| 181 | + implode( '<br />', $lines ) . |
| 182 | + '</span></span>'; |
175 | 183 | } else { |
176 | 184 | return $this->getErrorText(); |
177 | 185 | } |
Index: trunk/extensions/SemanticMaps/SemanticMaps.i18n.php |
— | — | @@ -22,6 +22,10 @@ |
23 | 23 | 'semanticmaps-kml' => 'KML', |
24 | 24 | 'semanticmaps-default-kml-pagelink' => 'View page $1', |
25 | 25 | |
| 26 | + 'semanticmaps-latitude' => 'Latitude: $1', |
| 27 | + 'semanticmaps-longitude' => 'Longitude: $1', |
| 28 | + 'semanticmaps-altitude' => 'Altitude: $1', |
| 29 | + |
26 | 30 | // Forms |
27 | 31 | 'semanticmaps-loading-forminput' => 'Loading map form input...', |
28 | 32 | 'semanticmaps_lookupcoordinates' => 'Look up coordinates', |