Index: trunk/extensions/Maps/Maps.i18n.php |
— | — | @@ -159,6 +159,16 @@ |
160 | 160 | |
161 | 161 | // Google Maps v3 |
162 | 162 | 'maps-googlemaps3-incompatbrowser' => 'Your browser is not compatible with Google Maps v3.', |
| 163 | + 'maps-googlemaps3-par-type' => 'The map type to initially show.', |
| 164 | + 'maps-googlemaps3-par-types' => 'The map types that will be available via the type control.', |
| 165 | + 'maps-googlemaps3-par-layers' => 'Special layers to load onto the map.', |
| 166 | + 'maps-googlemaps3-par-controls' => 'The controls to place on the map.', |
| 167 | + 'maps-googlemaps3-par-zoomstyle' => 'The style of the zoom control.', |
| 168 | + 'maps-googlemaps3-par-typestyle' => 'The style of the type control.', |
| 169 | + 'maps-googlemaps3-par-autoinfowindows' => 'Automatically open all info windows after the page has loaded.', |
| 170 | + 'maps-googlemaps3-par-kml' => 'KML files to load onto the map.', |
| 171 | + 'maps-googlemaps3-par-fusiontables' => 'IDs of Google Fusion Tables which should be loaded onto the map.', |
| 172 | + 'maps-googlemaps3-par-resizable' => 'Makes the map resizable by dragging at it\'s lower right corner.', |
163 | 173 | ); |
164 | 174 | |
165 | 175 | /** Message documentation (Message documentation) |
Index: trunk/extensions/Maps/includes/services/GoogleMaps3/Maps_GoogleMaps3.php |
— | — | @@ -91,43 +91,53 @@ |
92 | 92 | $params['type']->setDefault( $egMapsGMaps3Type ); |
93 | 93 | $params['type']->addCriteria( new CriterionInArray( self::getTypeNames() ) ); |
94 | 94 | $params['type']->addManipulations( new MapsParamGMap3Type() ); |
| 95 | + $params['type']->setDescription( wfMsg( 'maps-googlemaps3-par-type' ) ); |
95 | 96 | |
96 | 97 | $params['types'] = new ListParameter( 'types' ); |
97 | 98 | $params['types']->setDefault( $egMapsGMaps3Types ); |
98 | 99 | $params['types']->addCriteria( new CriterionInArray( self::getTypeNames() ) ); |
99 | 100 | $params['types']->addManipulations( new MapsParamGMap3Type() ); |
| 101 | + $params['types']->setDescription( wfMsg( 'maps-googlemaps3-par-types' ) ); |
100 | 102 | |
101 | 103 | $params['layers'] = new ListParameter( 'layers' ); |
102 | 104 | $params['layers']->setDefault( $egMapsGMaps3Layers ); |
103 | | - $params['layers']->addCriteria( new CriterionInArray( self::getLayerNames() ) ); |
| 105 | + $params['layers']->addCriteria( new CriterionInArray( self::getLayerNames() ) ); |
| 106 | + $params['layers']->setDescription( wfMsg( 'maps-googlemaps3-par-layers' ) ); |
104 | 107 | |
105 | 108 | $params['controls'] = new ListParameter( 'controls' ); |
106 | 109 | $params['controls']->setDefault( $egMapsGMaps3Controls ); |
107 | 110 | $params['controls']->addCriteria( new CriterionInArray( self::$controlNames ) ); |
108 | 111 | $params['controls']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
| 112 | + $params['controls']->setDescription( wfMsg( 'maps-googlemaps3-par-controls' ) ); |
109 | 113 | |
110 | 114 | $params['zoomstyle'] = new Parameter( 'zoomstyle' ); |
111 | 115 | $params['zoomstyle']->setDefault( $egMapsGMaps3DefZoomStyle ); |
112 | 116 | $params['zoomstyle']->addCriteria( new CriterionInArray( 'default', 'small', 'large' ) ); |
113 | 117 | $params['zoomstyle']->addManipulations( new MapsParamGMap3Zoomstyle() ); |
| 118 | + $params['zoomstyle']->setDescription( wfMsg( 'maps-googlemaps3-par-zoomstyle' ) ); |
114 | 119 | |
115 | 120 | $params['typestyle'] = new Parameter( 'typestyle' ); |
116 | 121 | $params['typestyle']->setDefault( $egMapsGMaps3DefTypeStyle ); |
117 | 122 | $params['typestyle']->addCriteria( new CriterionInArray( array_keys( self::$tyepControlStyles ) ) ); |
118 | 123 | $params['typestyle']->addManipulations( new MapsParamGMap3Typestyle() ); |
| 124 | + $params['type']->setDescription( wfMsg( 'maps-googlemaps3-par-type' ) ); |
119 | 125 | |
120 | 126 | $params['autoinfowindows'] = new Parameter( 'autoinfowindows', Parameter::TYPE_BOOLEAN ); |
121 | 127 | $params['autoinfowindows']->setDefault( $egMapsGMaps3AutoInfoWindows ); |
| 128 | + $params['autoinfowindows']->setDescription( wfMsg( 'maps-googlemaps3-par-autoinfowindows' ) ); |
122 | 129 | |
123 | 130 | $params['kml'] = new ListParameter( 'kml' ); |
124 | 131 | $params['kml']->setDefault( array() ); |
125 | 132 | //$params['kml']->addManipulations( new MapsParamFile() ); |
| 133 | + $params['kml']->setDescription( wfMsg( 'maps-googlemaps3-par-kml' ) ); |
126 | 134 | |
127 | 135 | $params['fusiontables'] = new ListParameter( 'fusiontables' ); |
128 | 136 | $params['fusiontables']->setDefault( array() ); |
| 137 | + $params['fusiontables']->setDescription( wfMsg( 'maps-googlemaps3-par-fusiontables' ) ); |
129 | 138 | |
130 | 139 | $params['resizable'] = new Parameter( 'resizable', Parameter::TYPE_BOOLEAN ); |
131 | | - $params['resizable']->setDefault( $egMapsResizableByDefault, false ); |
| 140 | + $params['resizable']->setDefault( $egMapsResizableByDefault, false ); |
| 141 | + $params['resizable']->setDescription( wfMsg( 'maps-googlemaps3-par-resizable' ) ); |
132 | 142 | } |
133 | 143 | |
134 | 144 | /** |