[Commits] r1498 - sandbox/cmoullet/ux/StreetViewPanel/ux/control

commits at geoext.org commits at geoext.org
Thu Nov 26 05:15:11 CET 2009


Author: cmoullet
Date: 2009-11-26 05:15:11 +0100 (Thu, 26 Nov 2009)
New Revision: 1498

Modified:
   sandbox/cmoullet/ux/StreetViewPanel/ux/control/Click.js
Log:
Add translation support


Modified: sandbox/cmoullet/ux/StreetViewPanel/ux/control/Click.js
===================================================================
--- sandbox/cmoullet/ux/StreetViewPanel/ux/control/Click.js	2009-11-25 20:39:39 UTC (rev 1497)
+++ sandbox/cmoullet/ux/StreetViewPanel/ux/control/Click.js	2009-11-26 04:15:11 UTC (rev 1498)
@@ -37,13 +37,13 @@
         var callback = function (data) {
             if (data) {
                 if (data.code == 600) {
-                    alert('No panorama found near this position');
+                    alert(OpenLayers.i18n('Google Street View: No panorama found near this position. You have to click elsewhere ;-)'));
                 } else if (data.code == 500) {
-                    alert('Server error');
+                    alert(OpenLayers.i18n('Google Street View: Server error'));
                 } else if (data.code == 200) {
                     this.panorama.setLocationAndPOV(data.location.latlng);
                 } else {
-                    alert('Unexpected problem');
+                    alert(OpenLayers.i18n('Google Street View: Unexpected problem'));
                 }
             }
         };



More information about the Commits mailing list