r92359 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92358‎ | r92359 | r92360 >
Date:14:51, 16 July 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
added missing messages and small fix
Modified paths:
  • /trunk/extensions/Maps/Maps.i18n.php (modified) (history)
  • /trunk/extensions/Maps/includes/parserHooks/Maps_MapsDoc.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/Maps.i18n.php
@@ -42,7 +42,11 @@
4343 'maps-finddestination-description' => 'Find a destination given a starting point (that can be in any of the supported formats), an initial bearing and a distance.',
4444 'maps-geocode-description' => 'Enables the geocoding of addresses, in other words, turning human readable locations into sets of coordinates. There is support for several geocoding services, which should not be confused with mapping services.',
4545 'maps-geodistance-description' => 'Calculate the geographical distance between two points, from and to any of the supported formats.',
 46+ 'maps-mapsdoc-description' => 'Display a table with the parameters for a specified mapping service together with their default values and descriptions.',
4647
 48+ // Mapsdoc parser hook
 49+ 'maps-mapsdoc-par-service' =>, 'The mapping service to display parameter documentation for.',
 50+
4751 // Coordinates parser hook
4852 'maps-coordinates-par-location' => 'The coordinates you want to format.',
4953 'maps-coordinates-par-format' => 'The target format for the coordinates.',
Index: trunk/extensions/Maps/includes/parserHooks/Maps_MapsDoc.php
@@ -12,7 +12,7 @@
1313 * @licence GNU GPL v3
1414 * @author Jeroen De Dauw < jeroendedauw@gmail.com >
1515 */
16 -class MapsMapsDOc extends ParserHook {
 16+class MapsMapsDoc extends ParserHook {
1717
1818 /**
1919 * No LSB in pre-5.3 PHP *sigh*.
@@ -119,7 +119,7 @@
120120
121121 $table = implode( "\n|-\n", $tableRows );
122122
123 - $table = "$h3\n\n" .
 123+ $table =
124124 '{| class="wikitable sortable"' . "\n" .
125125 $table .
126126 "\n|}";

Follow-up revisions

RevisionCommit summaryAuthorDate
r92360fu r92359jeroendedauw14:51, 16 July 2011