don't translate error message and replace console log with exception
This commit is contained in:
@@ -18,24 +18,11 @@ OpenLayers.Lang.en = {
|
||||
|
||||
'Base Layer': "Base Layer",
|
||||
|
||||
'readNotImplemented': "Read not implemented.",
|
||||
|
||||
'writeNotImplemented': "Write not implemented.",
|
||||
|
||||
'noFID': "Can't update a feature for which there is no FID.",
|
||||
|
||||
'errorLoadingGML': "Error in loading GML file ${url}",
|
||||
|
||||
'browserNotSupported':
|
||||
"Your browser does not support vector rendering. Currently supported renderers are:\n${renderers}",
|
||||
|
||||
'componentShouldBe': "addFeatures : component should be an ${geomType}",
|
||||
|
||||
// console message
|
||||
'getFeatureError':
|
||||
"getFeatureFromEvent called on layer with no renderer. This usually means you " +
|
||||
"destroyed a layer, but not some handler which is associated with it.",
|
||||
|
||||
// console message
|
||||
'minZoomLevelError':
|
||||
"The minZoomLevel property is only intended for use " +
|
||||
@@ -82,10 +69,6 @@ OpenLayers.Lang.en = {
|
||||
'S': 'S',
|
||||
'Graticule': 'Graticule',
|
||||
|
||||
// console message
|
||||
'layerAlreadyAdded':
|
||||
"You tried to add the layer: ${layerName} to the map, but it has already been added",
|
||||
|
||||
// console message
|
||||
'reprojectDeprecated':
|
||||
"You are using the 'reproject' option " +
|
||||
@@ -100,21 +83,6 @@ OpenLayers.Lang.en = {
|
||||
"This method has been deprecated and will be removed in 3.0. " +
|
||||
"Please use ${newMethod} instead.",
|
||||
|
||||
// console message
|
||||
'boundsAddError': "You must pass both x and y values to the add function.",
|
||||
|
||||
// console message
|
||||
'lonlatAddError': "You must pass both lon and lat values to the add function.",
|
||||
|
||||
// console message
|
||||
'pixelAddError': "You must pass both x and y values to the add function.",
|
||||
|
||||
// console message
|
||||
'unsupportedGeometryType': "Unsupported geometry type: ${geomType}",
|
||||
|
||||
// console message
|
||||
'filterEvaluateNotImplemented': "evaluate is not implemented for this filter type.",
|
||||
|
||||
'proxyNeeded': "You probably need to set OpenLayers.ProxyHost to access ${url}."+
|
||||
"See http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user