r74880 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74879‎ | r74880 | r74881 >
Date:04:58, 17 October 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Changes for 0.7.1 - added layer talk namespace
Modified paths:
  • /trunk/extensions/Maps/Maps.i18n.php (modified) (history)
  • /trunk/extensions/Maps/Maps.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/Maps.i18n.php
@@ -23,6 +23,7 @@
2424 'maps-loading-map' => 'Loading map...',
2525 'maps-markers' => 'Markers',
2626 'maps-ns-layer' => 'Layer',
 27+ 'maps-ns-layer-talk' => 'Layer talk',
2728
2829 // Validation
2930 'validation-error-invalid-location' => 'Parameter $1 must be a valid location.',
Index: trunk/extensions/Maps/Maps.php
@@ -136,7 +136,8 @@
137137 // Include the settings file.
138138 require_once $egMapsDir . 'Maps_Settings.php';
139139
140 - define( 'Maps_NS_LAYER', $egMapsNamespaceIndex + 0 );
 140+ define( 'Maps_NS_LAYER', $egMapsNamespaceIndex + 0 );
 141+ define( 'Maps_NS_LAYER_TALK', $egMapsNamespaceIndex + 1 );
141142 }
142143
143144 /**
@@ -158,11 +159,13 @@
159160 }
160161
161162 $wgExtraNamespaces += array(
162 - Maps_NS_LAYER => 'Layer'
 163+ Maps_NS_LAYER => 'Layer',
 164+ Maps_NS_LAYER_TALK => 'Layer talk'
163165 );
164166
165167 $wgNamespaceAliases += array(
166 - wfMsg( 'maps-ns-layer' ) => Maps_NS_LAYER
 168+ wfMsg( 'maps-ns-layer' ) => Maps_NS_LAYER,
 169+ wfMsg( 'maps-ns-layer-talk' ) => Maps_NS_LAYER_TALK
167170 );
168171
169172 wfRunHooks( 'MappingServiceLoad' );

Status & tagging log