Index: trunk/extensions/Maps/Maps.i18n.php |
— | — | @@ -45,6 +45,16 @@ |
46 | 46 | '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.', |
47 | 47 | 'maps-geodistance-description' => 'Calculate the geographical distance between two points, from and to any of the supported formats.', |
48 | 48 | |
| 49 | + // Coordinates parser hook |
| 50 | + 'maps-coordinates-par-location' => 'The coordinates you want to format.', |
| 51 | + 'maps-coordinates-par-format' => 'The target format for the coordinates.', |
| 52 | + 'maps-coordinates-par-directional' => 'Indicates if the coordinates should be outputted directional or not.', |
| 53 | + |
| 54 | + // Distance parser hook |
| 55 | + 'maps-distance-par-distance' => "The distance to convert to it's equivalent with a specified unit.", |
| 56 | + 'maps-distance-par-decimals' => 'The maximum amount of fractional digits to use in the resulting value.', |
| 57 | + 'maps-distance-par-unit' => 'The unit the output the distance in.', |
| 58 | + |
49 | 59 | // Validation |
50 | 60 | 'validation-error-invalid-location' => 'Parameter $1 must be a valid location.', |
51 | 61 | 'validation-error-invalid-locations' => 'Parameter $1 must be one or more valid locations.', |
Index: trunk/extensions/Maps/includes/parserHooks/Maps_Coordinates.php |
— | — | @@ -69,6 +69,7 @@ |
70 | 70 | new CriterionIsLocation(), |
71 | 71 | ) |
72 | 72 | ); |
| 73 | + $params['location']->setDescription( wfMsg( 'maps-coordinates-par-location' ) ); |
73 | 74 | |
74 | 75 | $params['format'] = new Parameter( |
75 | 76 | 'format', |
— | — | @@ -80,12 +81,14 @@ |
81 | 82 | ) |
82 | 83 | ); |
83 | 84 | $params['format']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
| 85 | + $params['format']->setDescription( wfMsg( 'maps-coordinates-par-format' ) ); |
84 | 86 | |
85 | 87 | $params['directional'] = new Parameter( |
86 | 88 | 'directional', |
87 | 89 | Parameter::TYPE_BOOLEAN, |
88 | 90 | $egMapsCoordinateDirectional |
89 | | - ); |
| 91 | + ); |
| 92 | + $params['directional']->setDescription( wfMsg( 'maps-coordinates-par-directional' ) ); |
90 | 93 | |
91 | 94 | return $params; |
92 | 95 | } |
Index: trunk/extensions/Maps/includes/parserHooks/Maps_Distance.php |
— | — | @@ -60,6 +60,7 @@ |
61 | 61 | |
62 | 62 | $params['distance'] = new Parameter( 'distance' ); |
63 | 63 | $params['distance']->addCriteria( new CriterionIsDistance() ); |
| 64 | + $params['distance']->setDescription( wfMsg( 'maps-distance-par-distance' ) ); |
64 | 65 | |
65 | 66 | $params['unit'] = new Parameter( |
66 | 67 | 'unit', |
— | — | @@ -69,13 +70,15 @@ |
70 | 71 | array( |
71 | 72 | new CriterionInArray( MapsDistanceParser::getUnits() ), |
72 | 73 | ) |
73 | | - ); |
| 74 | + ); |
| 75 | + $params['unit']->setDescription( wfMsg( 'maps-distance-par-unit' ) ); |
74 | 76 | |
75 | 77 | $params['decimals'] = new Parameter( |
76 | 78 | 'decimals', |
77 | 79 | Parameter::TYPE_INTEGER, |
78 | 80 | $egMapsDistanceDecimals |
79 | | - ); |
| 81 | + ); |
| 82 | + $params['decimals']->setDescription( wfMsg( 'maps-distance-par-decimals' ) ); |
80 | 83 | |
81 | 84 | return $params; |
82 | 85 | } |