https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114549
Revision: 114549
Author: netbrain
Date: 2012-03-28 07:47:21 +0000 (Wed, 28 Mar 2012)
Log Message:
-----------
added i18n for openlayers
Modified Paths:
--------------
trunk/extensions/Maps/Maps.i18n.php
trunk/extensions/Maps/includes/services/OpenLayers/OpenLayers.php
trunk/extensions/Maps/includes/services/OpenLayers/jquery.openlayers.js
Modified: trunk/extensions/Maps/Maps.i18n.php
===================================================================
--- trunk/extensions/Maps/Maps.i18n.php 2012-03-28 05:47:11 UTC (rev 114548)
+++ trunk/extensions/Maps/Maps.i18n.php 2012-03-28 07:47:21 UTC (rev 114549)
@@ -23,6 +23,8 @@
'maps-loading-map' => 'Loading map...',
'maps-load-failed' => 'Could not load the map!',
'maps-markers' => 'Markers',
+ 'maps-copycoords-prompt' => 'CTRL+C, ENTER',
+ 'maps-clustering-unsupportedservice' => 'This service doesn\'t support
clustering of markers',
'maps-others' => 'others',
//TODO: move to namespaces i18n
'maps-ns-layer' => 'Layer',
Modified: trunk/extensions/Maps/includes/services/OpenLayers/OpenLayers.php
===================================================================
--- trunk/extensions/Maps/includes/services/OpenLayers/OpenLayers.php
2012-03-28 05:47:11 UTC (rev 114548)
+++ trunk/extensions/Maps/includes/services/OpenLayers/OpenLayers.php
2012-03-28 07:47:21 UTC (rev 114549)
@@ -36,7 +36,9 @@
'OpenLayers/theme/default/style.css'
),
'messages' => array(
- 'maps-markers'
+ 'maps-markers',
+ 'maps-copycoords-prompt',
+ 'maps-clustering-unsupportedservice'
)
);
Modified:
trunk/extensions/Maps/includes/services/OpenLayers/jquery.openlayers.js
===================================================================
--- trunk/extensions/Maps/includes/services/OpenLayers/jquery.openlayers.js
2012-03-28 05:47:11 UTC (rev 114548)
+++ trunk/extensions/Maps/includes/services/OpenLayers/jquery.openlayers.js
2012-03-28 07:47:21 UTC (rev 114549)
@@ -292,7 +292,7 @@
'rightclick': function(e){
var lonlat = map.getLonLatFromViewPortPx(e.xy);
lonlat = lonlat.transform(new
OpenLayers.Projection("EPSG:900913"), new OpenLayers.Projection("EPSG:4326"));
- prompt("CTRL+C, ENTER",lonlat.lat+','+lonlat.lon);
+ prompt(mediaWiki.msg( 'maps-copycoords-prompt'
),lonlat.lat+','+lonlat.lon);
}
}
});
@@ -301,7 +301,7 @@
}
if(options.markercluster){
- alert('no support for clustering in openlayers');
+ alert(mediaWiki.msg('maps-clustering-unsupportedservice'));
}
return this;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs