Index: branches/Maps0.8/Maps.i18n.php |
— | — | @@ -15,9 +15,7 @@ |
16 | 16 | */ |
17 | 17 | $messages['en'] = array( |
18 | 18 | // General |
19 | | - 'maps_name' => 'Maps', |
20 | | - 'maps_desc' => "Provides the ability to display coordinate data in maps, and geocode addresses ([http://mapping.referata.com/wiki/Maps_examples demo's]). |
21 | | -Available mapping services: $1", |
| 19 | + 'maps-desc' => "Enables embedding of dynamic maps into wiki pages, geocoding of addresses and other geographical operations. ([http://mapping.referata.com/wiki/Examples demos])", |
22 | 20 | 'maps_map' => 'Map', |
23 | 21 | 'maps-loading-map' => 'Loading map...', |
24 | 22 | 'maps-load-failed' => 'Could not load the map!', |
Index: branches/Maps0.8/Maps.php |
— | — | @@ -43,6 +43,17 @@ |
44 | 44 | |
45 | 45 | define( 'Maps_VERSION', '0.8 alpha' ); |
46 | 46 | |
| 47 | +$wgExtensionCredits['parserhook'][] = array( |
| 48 | + 'path' => __FILE__, |
| 49 | + 'name' => 'Maps', |
| 50 | + 'version' => Maps_VERSION, |
| 51 | + 'author' => array( |
| 52 | + '[http://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]' |
| 53 | + ), |
| 54 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Maps', |
| 55 | + 'descriptionmsg' => 'maps-desc' |
| 56 | +); |
| 57 | + |
47 | 58 | // The different coordinate notations. |
48 | 59 | define( 'Maps_COORDS_FLOAT', 'float' ); |
49 | 60 | define( 'Maps_COORDS_DMS', 'dms' ); |
— | — | @@ -234,7 +245,7 @@ |
235 | 246 | * @return true |
236 | 247 | */ |
237 | 248 | function efMapsSetup() { |
238 | | - global $wgExtensionCredits, $wgLang, $wgExtraNamespaces, $wgNamespaceAliases; |
| 249 | + global $wgExtraNamespaces, $wgNamespaceAliases; |
239 | 250 | |
240 | 251 | if ( is_null( $wgExtraNamespaces ) ) { |
241 | 252 | $wgExtraNamespaces = array(); |
— | — | @@ -253,21 +264,5 @@ |
254 | 265 | wfRunHooks( 'MappingServiceLoad' ); |
255 | 266 | wfRunHooks( 'MappingFeatureLoad' ); |
256 | 267 | |
257 | | - // Creation of a list of internationalized service names. |
258 | | - $services = array(); |
259 | | - foreach ( MapsMappingServices::getServiceIdentifiers() as $identifier ) $services[] = wfMsg( 'maps_' . $identifier ); |
260 | | - $servicesList = $wgLang->listToText( $services ); |
261 | | - |
262 | | - $wgExtensionCredits['parserhook'][] = array( |
263 | | - 'path' => __FILE__, |
264 | | - 'name' => wfMsg( 'maps_name' ), |
265 | | - 'version' => Maps_VERSION, |
266 | | - 'author' => array( |
267 | | - '[http://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]' |
268 | | - ), |
269 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:Maps', |
270 | | - 'description' => wfMsgExt( 'maps_desc', 'parsemag', $servicesList ), |
271 | | - ); |
272 | | - |
273 | 268 | return true; |
274 | 269 | } |