Skip to content

Commit 466eb91

Browse files
committed
补充classic范例下的翻译。
1 parent 98bf72e commit 466eb91

File tree

81 files changed

+1587
-716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1587
-716
lines changed

examples/classic/OGC_GeoJSON.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>GeoJSON数据展示</title>
5+
<title data-i18n="resources.title_GeoJSON">GeoJSON数据展示</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

examples/classic/OGC_kml.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h5 class='panel-title text-center'>kml</h5>
2323
<div class='panel-body' id='params'>
2424
<p></p>
2525
<div align='center' class='button-group'>
26-
<input type='button' id='loadBt' class='btn btn-primary' value='加载' onclick="loadKml()"/>
26+
<input type='button' id='loadBt' class='btn btn-primary' data-i18n="[value]resources.btn_load" onclick="loadKml()"/>
2727
</div>
2828
</div>
2929
</div>

examples/classic/OGC_queryByWFS.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5-
<title>WFS 查询</title>
5+
<title data-i18n="resources.title_queryByWFS">WFS 查询</title>
66
<style type="text/css">
77
.editPane {
88
position: absolute;
@@ -18,13 +18,15 @@
1818
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
1919
<div class='panel panel-primary editPane' id='editPane' style="z-index: 99999">
2020
<div class='panel-heading'>
21-
<h5 class='panel-title text-center'>WFS 查询</h5>
21+
<h5 class='panel-title text-center' data-i18n="resources.text_queryByWFS">WFS 查询</h5>
2222
</div>
2323
<div class='panel-body' id='params'>
2424
<p></p>
2525
<div align='center' class='button-group'>
26-
<input type='button' id='btn1' class='btn btn-primary' value='多边形' onclick="drawGeometry()"/>
27-
<input type='button' id='btn2' class='btn btn-primary' value='清除' onclick="clearFeatures()"/>
26+
<input type='button' id='btn1' class='btn btn-primary' data-i18n="[value]resources.btn_polygon"
27+
onclick="drawGeometry()"/>
28+
<input type='button' id='btn2' class='btn btn-primary' data-i18n="[value]resources.text_input_value_clear"
29+
onclick="clearFeatures()"/>
2830
</div>
2931
</div>
3032
</div>
@@ -46,7 +48,7 @@ <h5 class='panel-title text-center'>WFS 查询</h5>
4648
enableKinetic: true
4749
}
4850
})]
49-
},notice());
51+
}, notice());
5052

5153
layer = new SuperMap.Layer.TiledDynamicRESTLayer("World", url, {
5254
transparent: true,
@@ -157,7 +159,7 @@ <h5 class='panel-title text-center'>WFS 查询</h5>
157159
}
158160

159161
function notice() {
160-
widgets.alert.showAlert("点击右侧按钮,绘制多边形",true);
162+
widgets.alert.showAlert(resources.msg_drawPolygon, true);
161163
}
162164

163165
</script>

examples/classic/OGC_wcs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5-
<title>WCS图层</title>
5+
<title data-i18n="resources.title_wcs">WCS图层</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

examples/classic/OGC_wms.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<html>
22
<head>
33
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
4-
<title>WMS图层</title>
4+
<title data-i18n="resources.title_wms">WMS图层</title>
55
<style type="text/css">
66
.editPane {
77
position: absolute;
@@ -17,11 +17,11 @@
1717
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
1818
<div class='panel panel-primary editPane' id='editPane' style="z-index: 99999">
1919
<div class='panel-heading'>
20-
<h5 class='panel-title text-center'>WMS图层</h5>
20+
<h5 class='panel-title text-center' data-i18n="resources.text_wms">WMS图层</h5>
2121
</div>
2222
<div class='panel-body' id='params'>
2323
<div class='input-group'>
24-
<span style="margin-top: 15px" class='input-group-addon'>地图投影系</span>
24+
<span style="margin-top: 15px" class='input-group-addon' data-i18n="resources.text_projection">地图投影系</span>
2525
<select class='form-control selectbtn' id='projectionSelect' name="projectionSelect"
2626
onchange="switchProjection()">
2727
<option value="3857">3857</option>
@@ -30,7 +30,7 @@ <h5 class='panel-title text-center'>WMS图层</h5>
3030
</div>
3131
<p>
3232
<div class='input-group'>
33-
<span style="margin-top: 15px" class='input-group-addon'>wms版本:</span>
33+
<span style="margin-top: 15px" class='input-group-addon' data-i18n="resources.text_wmsVersion">wms版本:</span>
3434
<select class='form-control selectbtn' id='versionSelect' name="versionSelect"
3535
onchange="switchProjection()">
3636
<option value="1.3.0">1.3.0</option>
@@ -117,7 +117,7 @@ <h5 class='panel-title text-center'>WMS图层</h5>
117117
map.setCenter(center, 1);
118118
lastLayer = wms;
119119
mapDiv.focus();
120-
newHtml = "当前图层信息:<br>" + " 地图投影:" + wms.projection + "<br> wms当前版本: " + wms.params.VERSION;
120+
newHtml = resources.text_currentInfo+"<br>" + resources.text_mapProjection + wms.projection + "<br>"+resources.text_currentVersion + wms.params.VERSION;
121121

122122
}
123123

examples/classic/OGC_wmtsLayer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5-
<title>WMTS图层</title>
5+
<title data-i18n="resources.title_wmtsLayer">WMTS图层</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

examples/classic/mapVLayerHoneycomb.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8"/>
5-
<title>MapV 蜂巢图</title>
5+
<title data-i18n="resources.title_mapVLayerHoneycomb">MapV 蜂巢图</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
@@ -17,7 +17,7 @@
1717

1818
function init() {
1919
if (!document.createElement('canvas').getContext) {
20-
widgets.alert.showAlert('您的浏览器不支持 canvas,请升级',false);
20+
widgets.alert.showAlert(resources.msg_supportCanvas, false);
2121
return;
2222
}
2323

@@ -32,7 +32,10 @@
3232
}
3333
})]
3434
});
35-
baseLayer = new SuperMap.Layer.TiledDynamicRESTLayer("China", url, {transparent: true, cacheEnabled: true}, {maxResolution: "auto"});
35+
baseLayer = new SuperMap.Layer.TiledDynamicRESTLayer("China", url, {
36+
transparent: true,
37+
cacheEnabled: true
38+
}, {maxResolution: "auto"});
3639
baseLayer.events.on({"layerInitialized": addLayer});
3740
}
3841

@@ -85,7 +88,7 @@
8588
map.addLayer(mapvLayer);
8689

8790
setTimeout(function () {
88-
openToolTip("示例数据来源为百度MapV的加偏数据,iClient9未做纠偏处理", map.getCenter());
91+
openToolTip(resources.text_iClient9, map.getCenter());
8992
}, 1000);
9093

9194
}

examples/classic/mapVLayerPolylineSimple.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8"/>
5-
<title>MapV 简单线</title>
5+
<title data-i18n="resources.title_mapVLayerPolylineSimple">MapV 简单线</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
@@ -17,7 +17,7 @@
1717

1818
function init() {
1919
if (!document.createElement('canvas').getContext) {
20-
widgets.alert.showAlert('您的浏览器不支持 canvas,请升级',false);
20+
widgets.alert.showAlert(resources.msg_supportCanvas, false);
2121
return;
2222
}
2323

@@ -32,7 +32,10 @@
3232
}
3333
})]
3434
});
35-
baseLayer = new SuperMap.Layer.TiledDynamicRESTLayer("China", url, {transparent: true, cacheEnabled: true}, {maxResolution: "auto"});
35+
baseLayer = new SuperMap.Layer.TiledDynamicRESTLayer("China", url, {
36+
transparent: true,
37+
cacheEnabled: true
38+
}, {maxResolution: "auto"});
3639
baseLayer.events.on({"layerInitialized": addLayer});
3740
}
3841

@@ -83,7 +86,7 @@
8386
map.addLayer(mapvLayer);
8487

8588
setTimeout(function () {
86-
openToolTip("示例数据来源为百度MapV的加偏数据,iClient9未做纠偏处理", map.getCenter());
89+
openToolTip(resources.text_iClient9, map.getCenter());
8790
}, 1000);
8891

8992
}

examples/classic/map_3857Map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>墨卡托投影系地图</title>
5+
<title data-i18n="resources.title_3857Map">墨卡托投影系地图</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

examples/classic/map_4326Map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>经纬度地图</title>
5+
<title data-i18n="resources.title_4326Map">经纬度地图</title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">

0 commit comments

Comments
 (0)