Index: trunk/extensions/Maps/Maps.i18n.php |
— | — | @@ -158,6 +158,12 @@ |
159 | 159 | 'maps_videos' => 'Videos', |
160 | 160 | 'maps_wikipedia' => 'Wikipedia', |
161 | 161 | 'maps_webcams' => 'Webcams', |
| 162 | + 'maps-googlemaps2-par-type' => 'The map type to initially show.', |
| 163 | + 'maps-googlemaps2-par-types' => 'The map types that will be available via the type control.', |
| 164 | + 'maps-googlemaps2-par-controls' => 'The controls to place on the map.', |
| 165 | + 'maps-googlemaps2-par-autozoom' => 'Enable scrolling using the mousewheel.', |
| 166 | + 'maps-googlemaps2-par-kml' => 'KML files to load onto the map.', |
| 167 | + 'maps-googlemaps2-par-overlays' => 'Overlays the user can turn on.', |
162 | 168 | |
163 | 169 | // Google Maps v3 |
164 | 170 | 'maps-googlemaps3-incompatbrowser' => 'Your browser is not compatible with Google Maps v3.', |
— | — | @@ -179,7 +185,7 @@ |
180 | 186 | 'maps-osm-par-thumbs' => 'Show thumbs', |
181 | 187 | 'maps-osm-par-photos' => 'Show photos', |
182 | 188 | |
183 | | - // Yahoo! Maps_examples |
| 189 | + // Yahoo! Maps |
184 | 190 | 'maps-yahoomaps-par-type' => 'The map type to initially show.', |
185 | 191 | 'maps-yahoomaps-par-types' => 'The map types that will be available via the type control.', |
186 | 192 | 'maps-yahoomaps-par-controls' => 'The controls to place on the map.', |
Index: trunk/extensions/Maps/includes/services/GoogleMaps/Maps_GoogleMaps.php |
— | — | @@ -53,7 +53,8 @@ |
54 | 54 | $params['controls']->setDefault( $egMapsGMapControls ); |
55 | 55 | $params['controls']->addCriteria( new CriterionInArray( self::getControlNames() ) ); |
56 | 56 | $params['controls']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
57 | | - |
| 57 | + $params['controls']->setDescription( wfMsg( 'maps-googlemaps2-par-controls' ) ); |
| 58 | + |
58 | 59 | $params['type'] = new Parameter( |
59 | 60 | 'type', |
60 | 61 | Parameter::TYPE_STRING, |
— | — | @@ -65,6 +66,7 @@ |
66 | 67 | array( 'types' ) |
67 | 68 | ); |
68 | 69 | $params['type']->addManipulations( new MapsParamGMapType() ); |
| 70 | + $params['type']->setDescription( wfMsg( 'maps-googlemaps2-par-type' ) ); |
69 | 71 | |
70 | 72 | $params['types'] = new ListParameter( |
71 | 73 | 'types', |
— | — | @@ -76,25 +78,30 @@ |
77 | 79 | new CriterionInArray( array_keys( self::$mapTypes ) ), |
78 | 80 | ) |
79 | 81 | ); |
80 | | - $params['types']->addManipulations( new MapsParamGMapType() ); |
| 82 | + $params['types']->addManipulations( new MapsParamGMapType() ); |
| 83 | + $params['types']->setDescription( wfMsg( 'maps-googlemaps2-par-types' ) ); |
81 | 84 | |
82 | 85 | $params['autozoom'] = new Parameter( |
83 | 86 | 'autozoom', |
84 | 87 | Parameter::TYPE_BOOLEAN, |
85 | 88 | $egMapsGoogleAutozoom |
86 | 89 | ); |
| 90 | + $params['autozoom']->setDescription( wfMsg( 'maps-googlemaps2-par-autozoom' ) ); |
87 | 91 | |
88 | 92 | $params['kml'] = new ListParameter( 'kml' ); |
89 | 93 | $params['kml']->setDefault( array() ); |
90 | 94 | //$params['kml']->addManipulations( new MapsParamFile() ); |
| 95 | + $params['kml']->setDescription( wfMsg( 'maps-googlemaps2-par-kml' ) ); |
91 | 96 | |
92 | 97 | $params['overlays'] = new ListParameter( 'overlays' ); |
93 | 98 | $params['overlays']->setDefault( $egMapsGMapOverlays ); |
94 | 99 | $params['overlays']->addCriteria( new CriterionGoogleOverlay( self::$overlayData ) ); |
95 | 100 | $params['overlays']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); // TODO |
| 101 | + $params['overlays']->setDescription( wfMsg( 'maps-googlemaps2-par-overlays' ) ); |
96 | 102 | |
97 | 103 | $params['resizable'] = new Parameter( 'resizable', Parameter::TYPE_BOOLEAN ); |
98 | 104 | $params['resizable']->setDefault( $egMapsResizableByDefault, false ); |
| 105 | + $params['resizable']->setDescription( wfMsg( 'maps-par-resizable' ) ); |
99 | 106 | } |
100 | 107 | |
101 | 108 | /** |