Index: trunk/extensions/Maps/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 demos]). |
21 | | -{{PLURAL:$2|Mapping service is|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-markers' => 'Markers', |
Index: trunk/extensions/Maps/Maps.php |
— | — | @@ -38,6 +38,17 @@ |
39 | 39 | |
40 | 40 | define( 'Maps_VERSION', '0.7.6 alpha' ); |
41 | 41 | |
| 42 | +$wgExtensionCredits['parserhook'][] = array( |
| 43 | + 'path' => __FILE__, |
| 44 | + 'name' => 'Maps', |
| 45 | + 'version' => Maps_VERSION, |
| 46 | + 'author' => array( |
| 47 | + '[http://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]' |
| 48 | + ), |
| 49 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Maps', |
| 50 | + 'descriptionmsg' => 'maps-desc' |
| 51 | +); |
| 52 | + |
42 | 53 | // The different coordinate notations. |
43 | 54 | define( 'Maps_COORDS_FLOAT', 'float' ); |
44 | 55 | define( 'Maps_COORDS_DMS', 'dms' ); |
— | — | @@ -159,7 +170,7 @@ |
160 | 171 | * @return true |
161 | 172 | */ |
162 | 173 | function efMapsSetup() { |
163 | | - global $wgExtensionCredits, $wgLang, $wgExtraNamespaces, $wgNamespaceAliases, $wgVersion; |
| 174 | + global $wgExtraNamespaces, $wgNamespaceAliases, $wgVersion; |
164 | 175 | |
165 | 176 | // This function has been deprecated in 1.16, but needed for earlier versions. |
166 | 177 | if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
— | — | @@ -183,24 +194,5 @@ |
184 | 195 | wfRunHooks( 'MappingServiceLoad' ); |
185 | 196 | wfRunHooks( 'MappingFeatureLoad' ); |
186 | 197 | |
187 | | - // Creation of a list of internationalized service names. |
188 | | - $services = array(); |
189 | | - foreach ( MapsMappingServices::getServiceIdentifiers() as $identifier ) $services[] = wfMsg( 'maps_' . $identifier ); |
190 | | - $servicesList = $wgLang->listToText( $services ); |
191 | | - |
192 | | - $wgExtensionCredits['parserhook'][] = array( |
193 | | - 'path' => __FILE__, |
194 | | - 'name' => wfMsg( 'maps_name' ), |
195 | | - 'version' => Maps_VERSION, |
196 | | - 'author' => array( |
197 | | - '[http://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw]', |
198 | | - '[http://www.mediawiki.org/wiki/Extension:Maps/Credits ' . wfMsg( 'maps-others' ) . ']' |
199 | | - ), |
200 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:Maps', |
201 | | - // Want to "fix" this? Sure, but test your code! |
202 | | - // This breaks stuff: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Maps/Maps.php?r1=82288&r2=82503 |
203 | | - 'description' => wfMsgExt( 'maps_desc', 'parsemag', $servicesList ), |
204 | | - ); |
205 | | - |
206 | 198 | return true; |
207 | 199 | } |