cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject [09/36] Add edge for Spanish, French, and Chinese.
Date Fri, 30 Aug 2013 17:25:59 GMT
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/device/device.platform.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/device/device.platform.md b/docs/zh/edge/cordova/device/device.platform.md
new file mode 100644
index 0000000..9d6ebcc
--- /dev/null
+++ b/docs/zh/edge/cordova/device/device.platform.md
@@ -0,0 +1,87 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# device.platform
+
+获取该设备的操作系统名称。
+
+    var string = device.platform;
+    
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    // Depending on the device, a few examples are:
+    //   - "Android"
+    //   - "BlackBerry"
+    //   - "iOS"
+    //   - "WinCE"
+    //   - "Tizen"
+    var devicePlatform = device.platform;
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Device Properties Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            var element = document.getElementById('deviceProperties');
+            element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
+                                'Device Cordova: '  + device.cordova  + '<br />' +
+                                'Device Platform: ' + device.platform + '<br />' +
+                                'Device UUID: '     + device.uuid     + '<br />' +
+                                'Device Version: '  + device.version  + '<br />';
+        }
+    
+        </script>
+      </head>
+      <body>
+        <p id="deviceProperties">Loading device properties...</p>
+      </body>
+    </html>
+    
+
+## 黑莓手机的怪癖
+
+设备可能会返回而不是平台名称的设备平台版本编号。例如,Storm2 9550 返回一个值如`2.13.0.95`.
+
+## Windows Phone 7 的怪癖
+
+Windows Phone 7 设备报告作为平台`WinCE`.
+
+## Windows Phone 8 怪癖
+
+Windows Phone 8 设备报告作为平台`Win32NT`.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/device/device.uuid.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/device/device.uuid.md b/docs/zh/edge/cordova/device/device.uuid.md
new file mode 100644
index 0000000..f86eadb
--- /dev/null
+++ b/docs/zh/edge/cordova/device/device.uuid.md
@@ -0,0 +1,86 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# device.uuid
+
+获取设备的通用唯一标识符 ([UUID][1]).
+
+ [1]: http://en.wikipedia.org/wiki/Universally_Unique_Identifier
+
+    var string = device.uuid;
+    
+
+## 说明
+
+UUID 如何生成的详细信息由设备制造商和特定于设备的平台或模型。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    / / Android: 一个随机的 64 位整数 (作为字符串返回,再次!) / / 上设备的第一次启动生成的整数 / / / / 黑莓手机: 返回设备的 PIN 号码 / / 这是九个数字的唯一整数 (作为字符串,虽然!) / / / / iPhone: (从 UIDevice 类文档解释) / / 返回一个字符串的哈希值创建的多个硬件标识。
+    / / 它保证是唯一的每个设备并不能绑 / / 到用户帐户。
+    / / Windows Phone 7: 返回的哈希代码的设备 + 当前用户,/ / 如果未定义用户,则一个 guid 生成的并且将会保留直到卸载该应用程序 / / Tizen: 返回设备 IMEI (国际移动设备身份或 IMEI 是一个数字 / / 独有的每一个 UMTS 和 GSM 移动电话。
+    var deviceID = device.uuid;
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Device Properties Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            var element = document.getElementById('deviceProperties');
+            element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
+                                'Device Cordova: '  + device.cordova  + '<br />' +
+                                'Device Platform: ' + device.platform + '<br />' +
+                                'Device UUID: '     + device.uuid     + '<br />' +
+                                'Device Version: '  + device.version  + '<br />';
+        }
+    
+        </script>
+      </head>
+      <body>
+        <p id="deviceProperties">Loading device properties...</p>
+      </body>
+    </html>
+    
+
+## iOS 怪癖
+
+`uuid`在 iOS 上不是独有的一种设备,但对于每个应用程序,为每个安装各不相同。 如果您删除并重新安装应用程序,它会更改和可能还当你升级 iOS,或甚至升级您的应用程序每个版本 (明显在 iOS 5.1 中)。 `uuid`不是一个可靠的值。
+
+## Windows Phone 7 和 8 怪癖
+
+`uuid`为 Windows Phone 7 需要权限 `ID_CAP_IDENTITY_DEVICE` 。 Microsoft 可能会很快就弃用此属性。 如果能力不是可用的应用程序将生成一个持久性的 guid 并保持应用程序的安装在设备上的持续时间。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/device/device.version.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/device/device.version.md b/docs/zh/edge/cordova/device/device.version.md
new file mode 100644
index 0000000..018f61d
--- /dev/null
+++ b/docs/zh/edge/cordova/device/device.version.md
@@ -0,0 +1,70 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# device.version
+
+获取操作系统版本。
+
+    var string = device.version;
+    
+
+## 支持的平台
+
+*   Android 2.1 +
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    / / Android: Froyo OS 将返回"2.2"/ / Eclair OS 将返回"2.1"、"2.0.1"2.0"/ / 版本,也可以返回更新级别"2.1 update1"/ / / / 黑莓手机: 火炬 9800 使用 OS 6.0 将返回"6.0.0.600"/ / / / iPhone: iOS 3.2 返回"3.2"/ / / / Windows Phone 7: 返回当前 OS 版本数,。 on Mango returns 7.10.7720
+    // Tizen: returns "TIZEN_20120425_2"
+    var deviceVersion = device.version;
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Device Properties Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            var element = document.getElementById('deviceProperties');
+            element.innerHTML = 'Device Name: '     + device.name     + '<br />' +
+                                'Device Cordova: '  + device.cordova  + '<br />' +
+                                'Device Platform: ' + device.platform + '<br />' +
+                                'Device UUID: '     + device.uuid     + '<br />' +
+                                'Device Version: '  + device.version  + '<br />';
+        }
+    
+        </script>
+      </head>
+      <body>
+        <p id="deviceProperties">Loading device properties...</p>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.backbutton.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.backbutton.md b/docs/zh/edge/cordova/events/events.backbutton.md
new file mode 100644
index 0000000..a82520c
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.backbutton.md
@@ -0,0 +1,75 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# backbutton
+
+在用户按后退按钮时,将触发该事件。
+
+    document.addEventListener("backbutton", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+要重写后退按钮的默认行为,注册为事件侦听器 `backbutton` 事件,通常通过调用 `document.addEventListener` 一旦您收到 `deviceready` 事件。 不再需要调用任何其他方法重写的后退按钮的行为。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   Windows Phone 7 和 8
+
+## 快速的示例
+
+    document.addEventListener("backbutton", onBackKeyDown, false);
+    
+    function onBackKeyDown() {
+        // Handle the back button
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Back Button Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            // Register the event listener
+            document.addEventListener("backbutton", onBackKeyDown, false);
+        }
+    
+        // Handle the back button
+        //
+        function onBackKeyDown() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.batterycritical.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.batterycritical.md b/docs/zh/edge/cordova/events/events.batterycritical.md
new file mode 100644
index 0000000..624a93c
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.batterycritical.md
@@ -0,0 +1,85 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# batterycritical
+
+当电池达到临界阈值时,将触发该事件。
+
+    window.addEventListener("batterycritical", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+当电池电量的百分比已达到关键电池阈值时,将触发该事件。值是特定于设备。
+
+`batterycritical`处理程序传递一个对象,包含两个属性:
+
+*   **级别**: 电池充电 (0-100) 的百分比。*(人数)*
+
+*   **isPlugged**: 一个布尔值,该值指示设备是否插*(布尔值)*
+
+应用程序通常应使用 `window.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   iOS
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   Tizen
+
+## 快速的示例
+
+    window.addEventListener("batterycritical", onBatteryCritical, false);
+    
+    function onBatteryCritical(info) {
+        // Handle the battery critical event
+        alert("Battery Level Critical " + info.level + "%\nRecharge Soon!");
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Battery Critical Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            window.addEventListener("batterycritical", onBatteryCritical, false);
+        }
+    
+        // Handle the batterycritical event
+        //
+        function onBatteryCritical(info) {
+            alert("Battery Level Critical " + info.level + "%\nRecharge Soon!");
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.batterylow.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.batterylow.md b/docs/zh/edge/cordova/events/events.batterylow.md
new file mode 100644
index 0000000..ddebffc
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.batterylow.md
@@ -0,0 +1,85 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# batterylow
+
+当电池达到低级别阈值时,将触发该事件。
+
+    window.addEventListener("batterylow", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+当电池电量的百分比已达到电池电量低门槛,设备特定值时,将触发该事件。
+
+`batterylow`处理程序传递一个对象,包含两个属性:
+
+*   **级别**: 电池充电 (0-100) 的百分比。*(人数)*
+
+*   **isPlugged**: 一个布尔值,该值指示设备是否插*(布尔值)*
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   iOS
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   Tizen
+
+## 快速的示例
+
+    window.addEventListener("batterylow", onBatteryLow, false);
+    
+    function onBatteryLow(info) {
+        // Handle the battery low event
+        alert("Battery Level Low " + info.level + "%");
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Device Ready Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            window.addEventListener("batterylow", onBatteryLow, false);
+        }
+    
+        // Handle the batterylow event
+        //
+        function onBatteryLow(info) {
+            alert("Battery Level Low " + info.level + "%");
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.batterystatus.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.batterystatus.md b/docs/zh/edge/cordova/events/events.batterystatus.md
new file mode 100644
index 0000000..53420b9
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.batterystatus.md
@@ -0,0 +1,90 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# batterystatus
+
+在电池的状态中的更改时,将触发该事件。
+
+    window.addEventListener("batterystatus", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+当电池电量的百分比改变了至少 1%,或如果在插入或拔出该设备会触发此事件。
+
+电池状态处理程序传递一个对象,包含两个属性:
+
+*   **级别**: 电池充电 (0-100) 的百分比。*(人数)*
+
+*   **isPlugged**: 一个布尔值,该值指示设备是否插*(布尔值)*
+
+应用程序通常应使用 `window.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   iOS
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   Windows Phone 7 和 8
+*   Tizen
+
+## Windows Phone 7 和 8 怪癖
+
+Windows Phone 7 并不提供本机 Api 来确定电池电量水平,所以 `level` 是不可用的属性。`isPlugged`参数**支持的。
+
+## 快速的示例
+
+    window.addEventListener("batterystatus", onBatteryStatus, false);
+    
+    function onBatteryStatus(info) {
+        // Handle the online event
+        console.log("Level: " + info.level + " isPlugged: " + info.isPlugged);
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Device Ready Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            window.addEventListener("batterystatus", onBatteryStatus, false);
+        }
+    
+        // Handle the batterystatus event
+        //
+        function onBatteryStatus(info) {
+            console.log("Level: " + info.level + " isPlugged: " + info.isPlugged);
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.deviceready.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.deviceready.md b/docs/zh/edge/cordova/events/events.deviceready.md
new file mode 100644
index 0000000..0d14c1f
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.deviceready.md
@@ -0,0 +1,78 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# deviceready
+
+科尔多瓦是在完全加载时,将触发该事件。
+
+    document.addEventListener("deviceready", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+此事件的任何应用程序至关重要。它发出信号科尔多瓦的设备已加载的 Api,并准备访问。
+
+科尔多瓦组成的两个代码库: 本机和 JavaScript。 虽然本机代码加载、 显示的自定义加载图像。 然而,JavaScript 仅加载一旦 DOM 装载。 这意味着您的 web 应用程序可能有可能调用的科尔多瓦 JavaScript 函数之前的相应的本机代码是可用。
+
+`deviceready`科尔多瓦已完全加载后会触发事件。 一次事件火,你可以安全地使对科尔多瓦 Api 的调用。 应用程序通常将附加一个事件侦听器与 `document.addEventListener` 一旦 HTML 文档的 DOM 已加载。
+
+`deviceready`事件从其他人的行为方式略有不同。注册后的任何事件处理 `deviceready` 事件将触发了其立即调用的回调函数。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Tizen
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    document.addEventListener("deviceready", onDeviceReady, false);
+    
+    function onDeviceReady() {
+        // Now safe to use device APIs
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Device Ready Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            // Now safe to use device APIs
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.endcallbutton.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.endcallbutton.md b/docs/zh/edge/cordova/events/events.endcallbutton.md
new file mode 100644
index 0000000..3cdd923
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.endcallbutton.md
@@ -0,0 +1,76 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# endcallbutton
+
+当用户按下结束通话按钮时,将激发此事件。
+
+    document.addEventListener("endcallbutton", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+该事件将重写默认结束调用行为。
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+
+## 快速的示例
+
+    document.addEventListener("endcallbutton", onEndCallKeyDown, false);
+    
+    function onEndCallKeyDown() {
+        // Handle the end call button
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+                          "http://www.w3.org/TR/html4/strict.dtd">
+    <html>
+      <head>
+        <title>End Call Button Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            // Register the event listener
+            document.addEventListener("endcallbutton", onEndCallKeyDown, false);
+        }
+    
+        // Handle the end call button
+        //
+        function onEndCallKeyDown() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.md b/docs/zh/edge/cordova/events/events.md
new file mode 100644
index 0000000..4a6145d
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.md
@@ -0,0 +1,73 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# 事件
+
+> 科尔多瓦生命周期事件。
+
+## 事件类型
+
+*   deviceready
+*   暂停
+*   简历
+*   在线
+*   脱机
+*   backbutton
+*   batterycritical
+*   batterylow
+*   batterystatus
+*   menubutton
+*   searchbutton
+*   startcallbutton
+*   endcallbutton
+*   volumedownbutton
+*   volumeupbutton
+
+## 访问功能
+
+版本为 3.0,科尔多瓦实现电池状态和其他设备级 Api 作为*插件*。 默认情况下启用对所有其他不相关的电池状态的事件的访问。 使用 CLI 的 `plugin` 命令,描述在命令行界面,可以启用或禁用电池事件:
+
+        $ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git
+        $ cordova plugin rm org.apache.cordova.core.battery-status
+    
+
+这些命令适用于所有有针对性的平台,但修改如下所述的特定于平台的配置设置:
+
+*   Android 系统
+    
+        (in app/res/xml/config.xml) < 功能名称 ="蓄电池">< 参数名称 ="android 包"value="org.apache.cordova.BatteryListener"/ >< / 功能 > (在 app/AndroidManifest.xml) < 使用权限 android:name="android.permission.BROADCAST_STICKY"/ >
+        
+
+*   黑莓手机 WebWorks
+    
+        (in www/plugins.xml) < 功能名称 ="蓄电池">< 参数名称 ="黑莓手机-包"value="org.apache.cordova.battery.Battery"/ >< / 功能 > (在 www/config.xml) < 功能 id="blackberry.app"所需 ="true"版本 ="1.0.0.0"/ >< 功能 id="blackberry.app.event"所需 ="true"版本 ="1.0.0.0"/ >< 功能 id="blackberry.system.event"所需 ="true"版本 ="1.0.0.0"/ >
+        
+
+*   (在 iOS`config.xml`)
+    
+        < 功能名称 ="蓄电池">< 参数名称 ="ios 包"值 ="CDVBattery"/ >< / 功能 >
+        
+
+*   (在 Tizen`config.xml`)
+    
+        < 功能名称 = 所需的"http://tizen.org/api/systeminfo"="true"/ >
+        
+    
+    引用: [Tizen Web 应用程序的应用程序清单][1]
+
+ [1]: https://developer.tizen.org/help/topic/org.tizen.help.gs/Creating%20a%20Project.html?path=0_1_1_3#8814682_CreatingaProject-EditingconfigxmlFeatures
+
+一些平台可能支持此功能,而无需任何特殊的配置。有关概述,请参见平台支持。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.menubutton.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.menubutton.md b/docs/zh/edge/cordova/events/events.menubutton.md
new file mode 100644
index 0000000..13e1e30
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.menubutton.md
@@ -0,0 +1,77 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# menubutton
+
+在用户按菜单按钮时,将触发该事件。
+
+    document.addEventListener("menubutton", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+事件处理程序的应用覆盖的默认菜单按钮行为。
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+
+## 快速的示例
+
+    document.addEventListener("menubutton", onMenuKeyDown, false);
+    
+    function onMenuKeyDown() {
+        // Handle the back button
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+                          "http://www.w3.org/TR/html4/strict.dtd">
+    <html>
+      <head>
+        <title>Menu Button Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            // Register the event listener
+            document.addEventListener("menubutton", onMenuKeyDown, false);
+        }
+    
+        // Handle the menu button
+        //
+        function onMenuKeyDown() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.offline.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.offline.md b/docs/zh/edge/cordova/events/events.offline.md
new file mode 100644
index 0000000..7ce1260
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.offline.md
@@ -0,0 +1,92 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# 脱机
+
+当一个应用程序脱机时,与该设备未连接到互联网时,将触发该事件。
+
+    document.addEventListener("offline", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+`offline`以前连接的设备失去网络连接,这样,应用程序不再可以访问互联网时激发的事件。 它依赖于连接 API 中,相同的信息和火灾时 `connection.type` 从更改 `NONE` 为其他任何值。
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 7 和 8
+*   Tizen
+*   Windows 8
+
+## 快速的示例
+
+    document.addEventListener("offline", onOffline, false);
+    
+    function onOffline() {
+        // Handle the offline event
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Offline Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            document.addEventListener("offline", onOffline, false);
+        }
+    
+        // Handle the offline event
+        //
+        function onOffline() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
+    
+
+## iOS 的怪癖
+
+在初始启动期间,第一次脱机事件 (如果适用) 需至少一秒的火。
+
+## Windows Phone 7 的怪癖
+
+当运行在仿真器中, `connection.status` 始终是未知的因此此事件不会*不*火。
+
+## Windows Phone 8 怪癖
+
+仿真程序报告连接类型为 `Cellular` ,而不会更改,所以该事件不会*不*火。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.online.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.online.md b/docs/zh/edge/cordova/events/events.online.md
new file mode 100644
index 0000000..443dd6f
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.online.md
@@ -0,0 +1,92 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# 在线
+
+当应用程序进入在线状态,和该设备将成为连接到互联网时触发此事件。
+
+    document.addEventListener("online", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+`online`当先前连接的移动设备接收到一个网络连接以允许应用程序访问互联网时激发的事件。 它依赖于连接 API 中,相同的信息和火灾时的值 `connection.type` 成为`NONE`.
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 7 和 8
+*   Tizen
+*   Windows 8
+
+## 快速的示例
+
+    document.addEventListener("online", onOnline, false);
+    
+    function onOnline() {
+        // Handle the online event
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Online Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("online", onOnline, false);
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+        }
+    
+        // Handle the online event
+        //
+        function onOnline() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
+    
+
+## iOS 的怪癖
+
+在初始启动期间第一次 `online` 事件 (如果适用),至少需一秒的火灾之前的, `connection.type` 是`UNKNOWN`.
+
+## Windows Phone 7 的怪癖
+
+当运行在仿真器中, `connection.status` 始终是未知的因此,此事件将*不*火。
+
+## Windows Phone 8 怪癖
+
+仿真程序报告连接类型为 `Cellular` ,而不会更改,所以事件将*不*火。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.pause.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.pause.md b/docs/zh/edge/cordova/events/events.pause.md
new file mode 100644
index 0000000..cbbc5d8
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.pause.md
@@ -0,0 +1,87 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# 暂停
+
+当一个应用程序放入后台,将触发该事件。
+
+    document.addEventListener("pause", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+`pause`当本机平台放入背景,应用程序通常在用户切换到不同的应用程序时激发的事件。
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    document.addEventListener("pause", onPause, false);
+    
+    function onPause() {
+        // Handle the pause event
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Pause Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            document.addEventListener("pause", onPause, false);
+        }
+    
+        // Handle the pause event
+        //
+        function onPause() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
+    
+
+## iOS 的怪癖
+
+在 `pause` 处理程序中,任何调用到科尔多瓦 API 或穿过目标 C 的本机插件不工作,以及任何交互式调用,如警报或 `console.log()` 。 当应用程序恢复后,在下一次运行循环上他们,只处理。
+
+特定于 iOS `resign` 事件是可用作为替代 `pause` ,并检测时的用户启用**锁定**按钮锁定设备与应用程序在前台运行。 如果为多任务启用的应用程序 (和设备),则这配对与其后 `pause` 事件,但只在 iOS 5 下的。 实际上,所有锁定应用程序已启用多任务的 iOS 5 中被推到背景中。 对于应用程序继续运行在 iOS 5 下锁定时,禁用应用程序的多任务处理通过将[UIApplicationExitsOnSuspend][1]设置为 `YES` 。 若要运行在 iOS 4 上锁定状态时,此设置并不重要。
+
+ [1]: http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.resume.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.resume.md b/docs/zh/edge/cordova/events/events.resume.md
new file mode 100644
index 0000000..9bbf3ea
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.resume.md
@@ -0,0 +1,101 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# 简历
+
+当应用程序从背景中检索时,将触发该事件。
+
+    document.addEventListener("resume", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+`resume`事件触发时的本机平台拔出从背景的应用程序。
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## 快速的示例
+
+    document.addEventListener("resume", onResume, false);
+    
+    function onResume() {
+        // Handle the resume event
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>Resume Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            document.addEventListener("resume", onResume, false);
+        }
+    
+        // Handle the resume event
+        //
+        function onResume() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
+    
+
+## iOS 的怪癖
+
+从调用任何交互式函数 `pause` 事件处理程序以后执行应用程序恢复时,由发出信号 `resume` 事件。 这些包括警报, `console.log()` ,和任何调用从插件或 API,科尔多瓦,穿过目标 C.
+
+*   **活动**事件
+    
+    特定于 iOS `active` 事件是可用作为替代 `resume` ,并检测时用户禁用**锁定**按钮以解锁设备与应用程序在前台运行。 如果为多任务启用的应用程序 (和设备),则这配对与其后 `resume` 事件,但只在 iOS 5 下的。 实际上,所有锁定应用程序已启用多任务的 iOS 5 中被推到背景中。 对于应用程序继续运行在 iOS 5 下锁定时,禁用应用程序的多任务处理通过将[UIApplicationExitsOnSuspend][1]设置为 `YES` 。 若要运行在 iOS 4 上锁定状态时,此设置并不重要。
+
+*   **恢复**事件
+    
+    当从调用 `resume` 事件处理程序,如交互式功能 `alert()` 需要包装在 `setTimeout()` 调用超时值为零,否则应用程序挂起。 例如:
+    
+        document.addEventListener("resume", onResume, false);
+        function onResume() {
+           setTimeout(function() {
+                  // TODO: do your thing!
+                }, 0);
+        }
+        
+
+ [1]: http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.searchbutton.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.searchbutton.md b/docs/zh/edge/cordova/events/events.searchbutton.md
new file mode 100644
index 0000000..4fc18f0
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.searchbutton.md
@@ -0,0 +1,76 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# searchbutton
+
+当用户按 Android 上的搜索按钮时,将触发该事件。
+
+    document.addEventListener("searchbutton", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+如果您需要重写默认的搜索按钮行为在 android 系统上您可以注册为 'searchbutton' 事件一个事件侦听器。
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   Android 系统
+
+## 快速的示例
+
+    document.addEventListener("searchbutton", onSearchKeyDown, false);
+    
+    function onSearchKeyDown() {
+        // Handle the search button
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+                          "http://www.w3.org/TR/html4/strict.dtd">
+    <html>
+      <head>
+        <title>Search Button Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            // Register the event listener
+            document.addEventListener("searchbutton", onSearchKeyDown, false);
+        }
+    
+        // Handle the search button
+        //
+        function onSearchKeyDown() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.startcallbutton.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.startcallbutton.md b/docs/zh/edge/cordova/events/events.startcallbutton.md
new file mode 100644
index 0000000..82e39d3
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.startcallbutton.md
@@ -0,0 +1,76 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# startcallbutton
+
+当用户按下开始呼叫按钮时,将触发该事件。
+
+    document.addEventListener("startcallbutton", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+如果您需要重写默认开始调用行为您可以注册为事件侦听器 `startcallbutton` 事件。
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+
+## 快速的示例
+
+    document.addEventListener("startcallbutton", onStartCallKeyDown, false);
+    
+    function onStartCallKeyDown() {
+        // Handle the start call button
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+                          "http://www.w3.org/TR/html4/strict.dtd">
+    <html>
+      <head>
+        <title>Start Call Button Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            // Register the event listener
+            document.addEventListener("startcallbutton", onStartCallKeyDown, false);
+        }
+    
+        // Handle the start call button
+        //
+        function onStartCallKeyDown() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.volumedownbutton.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.volumedownbutton.md b/docs/zh/edge/cordova/events/events.volumedownbutton.md
new file mode 100644
index 0000000..8d252b8
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.volumedownbutton.md
@@ -0,0 +1,76 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# volumedownbutton
+
+在用户按下按钮卷时,将触发该事件。
+
+    document.addEventListener("volumedownbutton", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+如果您需要重写默认音量降低的行为你可以注册为事件侦听器 `volumedownbutton` 事件。
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+
+## 快速的示例
+
+    document.addEventListener("volumedownbutton", onVolumeDownKeyDown, false);
+    
+    function onVolumeDownKeyDown() {
+        // Handle the volume down button
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+                          "http://www.w3.org/TR/html4/strict.dtd">
+    <html>
+      <head>
+        <title>Volume Down Button Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            // Register the event listener
+            document.addEventListener("volumedownbutton", onVolumeDownKeyDown, false);
+        }
+    
+        // Handle the volume down button
+        //
+        function onVolumeDownKeyDown() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/events/events.volumeupbutton.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/events/events.volumeupbutton.md b/docs/zh/edge/cordova/events/events.volumeupbutton.md
new file mode 100644
index 0000000..361bce3
--- /dev/null
+++ b/docs/zh/edge/cordova/events/events.volumeupbutton.md
@@ -0,0 +1,76 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# volumeupbutton
+
+当用户按下了按钮卷时,将触发该事件。
+
+    document.addEventListener("volumeupbutton", yourCallbackFunction, false);
+    
+
+## 详细信息
+
+如果您需要重写默认卷起来的行为你可以注册为事件侦听器 `volumeupbutton` 事件。
+
+应用程序通常应使用 `document.addEventListener` 将一个事件侦听器附加一次 `deviceready` 事件火灾。
+
+## 支持的平台
+
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+
+## 快速的示例
+
+    document.addEventListener("volumeupbutton", onVolumeUpKeyDown, false);
+    
+    function onVolumeUpKeyDown() {
+        // Handle the volume up button
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+                          "http://www.w3.org/TR/html4/strict.dtd">
+    <html>
+      <head>
+        <title>Volume Up Button Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for device API libraries to load
+        //
+        function onLoad() {
+            document.addEventListener("deviceready", onDeviceReady, false);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+            // Register the event listener
+            document.addEventListener("volumeupbutton", onVolumeUpKeyDown, false);
+        }
+    
+        // Handle the volume up button
+        //
+        function onVolumeUpKeyDown() {
+        }
+    
+        </script>
+      </head>
+      <body onload="onLoad()">
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/file/directoryentry/directoryentry.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/file/directoryentry/directoryentry.md b/docs/zh/edge/cordova/file/directoryentry/directoryentry.md
new file mode 100644
index 0000000..2f23a8a
--- /dev/null
+++ b/docs/zh/edge/cordova/file/directoryentry/directoryentry.md
@@ -0,0 +1,378 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# 枚举指定工作组或
+
+此对象表示一个目录在文件系统上,如由[W3C 目录和系统][1]规范定义的。
+
+ [1]: http://www.w3.org/TR/file-system-api/
+
+## 属性
+
+*   **isFile**: 总是 `false` 。*(布尔)*
+
+*   **isDirectory**: 总是 `true` 。*(布尔)*
+
+*   **名称**: 的名称 `DirectoryEntry` ,不包括导致它的路径。*() DOMString*
+
+*   **完整路径**: 绝对路径从根到 `DirectoryEntry` 。*() DOMString*
+
+**注:**下面的属性由 W3C 规范定义,但*不是*支持:
+
+*   **文件系统**: 文件系统的 `DirectoryEntry` 驻留。*(文件系统)*
+
+## 方法
+
+下面的方法可以上调用 `DirectoryEntry` 对象:
+
+*   **getMetadata**: 查找一个目录有关的元数据。
+
+*   **setMetadata**: 在目录上设置的元数据。
+
+*   **moveTo**: 移动到不同的位置在文件系统上的目录。
+
+*   **copyTo**: 将一个目录复制到文件系统上的不同位置。
+
+*   **toURL**: 返回来帮助定位目录的 URL。
+
+*   **删除**: 删除一个目录。该目录必须是空的。
+
+*   **getParent**: 查找父目录。
+
+*   **createReader**: 创建一个新的 `DirectoryReader` ,可以从目录中读取条目。
+
+*   **getDirectory**: 创建或者查找一个目录。
+
+*   **getFile**: 创建或查找文件。
+
+*   **removeRecursively**: 删除一个目录和其所有内容。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## getMetadata
+
+查找有关目录的元数据。
+
+**参数:**
+
+*   **successCallback**: 要与执行的回调函数 `Metadata` 对象。*(函数)*
+
+*   **errorCallback**: 一个回调函数来执行如果检索时出现错误 `Metadata` 。调用与 `FileError` 对象。*(函数)*
+
+**快速的示例**
+
+    函数 success(metadata) {console.log ("上次修改时间:"+ metadata.modificationTime);}函数 fail(error) {alert(error.code);}/ / 请求的元数据对象的此条目 entry.getMetadata (成功、 失败) ;
+    
+
+## setMetadata
+
+设置目录的扩展的属性或元数据。*目前仅适用于 iOS。*
+
+**参数:**
+
+*   **successCallback**: 在成功地设置该元数据时执行回调。*(函数)*
+
+*   **errorCallback**: 执行元数据失败要设置时的回调。*(函数)*
+
+*   **metadataObject**: 包含元数据的键和值的对象。*(对象)*
+
+**快速的示例**
+
+    function success() {
+        console.log("The metadata was successfully set.");
+    }
+    
+    function fail() {
+        alert("There was an error in setting the metadata");
+    }
+    
+    // Set the metadata
+    entry.setMetadata(success, fail, { "com.apple.MobileBackup": 1});
+    
+
+**iOS 怪癖**
+
+*   只有 `com.apple.MobileBackup` 支持扩展的属性。 将该值设置为 `1` ,防止该目录从备份到 iCloud。 将该值设置为 `` ,重新启用要备份到 iCloud 的目录。
+
+**快速的示例**
+
+    function setFolderMetadata(localFileSystem, subFolder, metadataKey, metadataValue)
+    {
+        var onSetMetadataWin = function() {
+            console.log("success setting metadata")
+        }
+        var onSetMetadataFail = function() {
+            console.log("error setting metadata")
+        }
+    
+        var onGetDirectoryWin = function(parent) {
+            var data = {};
+            data[metadataKey] = metadataValue;
+            parent.setMetadata(onSetMetadataWin, onSetMetadataFail, data);
+        }
+        var onGetDirectoryFail = function() {
+            console.log("error getting dir")
+        }
+    
+        var onFSWin = function(fileSystem) {
+            fileSystem.root.getDirectory(subFolder, {create: true, exclusive: false}, onGetDirectoryWin, onGetDirectoryFail);
+        }
+    
+        var onFSFail = function(evt) {
+            console.log(evt.target.error.code);
+        }
+    
+        window.requestFileSystem(localFileSystem, 0, onFSWin, onFSFail);
+    }
+    
+        setFolderMetadata(LocalFileSystem.PERSISTENT, "Backups", "com.apple.MobileBackup", 1);
+    
+
+## moveTo
+
+移动到不同的位置在文件系统上的目录。如果应用程序尝试向会导致错误:
+
+*   在任何深度移动一个目录里面本身或任何儿童。
+
+*   如果不提供不同从其当前目录的名称,则将一个目录移到其父。
+
+*   将一个目录移到被占领的一个文件的路径。
+
+*   将一个目录移到被占领的一个不是空的目录的路径。
+
+移动目录上现有的空目录尝试删除并替换为该目录。
+
+**参数:**
+
+*   **父**: 要移动该目录的父目录。*() DirectoryEntry*
+
+*   **newName**: 目录的新名称。默认值为当前的名称如果未指定。*() DOMString*
+
+*   **successCallback**: 与执行的回调 `DirectoryEntry` 为新的目录对象。*(函数)*
+
+*   **errorCallback**: 如果移动该目录时,会出现一个错误执行回调。调用与 `FileError` 对象。*(函数)*
+
+**快速的示例**
+
+    function success(entry) {
+        console.log("New Path: " + entry.fullPath);
+    }
+    
+    function fail(error) {
+        alert(error.code);
+    }
+    
+    function moveDir(entry) {
+        var parent = document.getElementById('parent').value,
+            parentName = parent.substring(parent.lastIndexOf('/')+1),
+            newName = document.getElementById('newName').value,
+            parentEntry = new DirectoryEntry(parentName, parent);
+    
+        // move the directory to a new directory and rename it
+        entry.moveTo(parentEntry, newName, success, fail);
+    }
+    
+
+## copyTo
+
+将一个目录复制到文件系统上的不同位置。如果应用程序尝试向会导致错误:
+
+*   复制一个目录里面本身在任何深度。
+
+*   如果未提供不同从其当前目录的名称,请将一个目录复制到其父。
+
+目录副本始终是递归的并将复制的目录的所有内容。
+
+**参数:**
+
+*   **父**: 要向其复制目录的父目录。*() DirectoryEntry*
+
+*   **newName**: 目录的新名称。默认值为当前的名称如果未指定。*() DOMString*
+
+*   **successCallback**: 与执行的回调 `DirectoryEntry` 为新的目录对象。*(函数)*
+
+*   **errorCallback**: 如果试图复制基础目录时发生错误执行回调。调用与 `FileError` 对象。*(函数)*
+
+**快速的示例**
+
+    function win(entry) {
+        console.log("New Path: " + entry.fullPath);
+    }
+    
+    function fail(error) {
+        alert(error.code);
+    }
+    
+    function copyDir(entry) {
+        var parent = document.getElementById('parent').value,
+            parentName = parent.substring(parent.lastIndexOf('/')+1),
+            newName = document.getElementById('newName').value,
+            parentEntry = new DirectoryEntry(parentName, parent);
+    
+        // copy the directory to a new directory and rename it
+        entry.copyTo(parentEntry, newName, success, fail);
+    }
+    
+
+## toURL
+
+返回一个可以用来找到的目录的 URL。
+
+**快速的示例**
+
+    // Get the URL for this directory
+    var dirURL = entry.toURL();
+    console.log(dirURL);
+    
+
+## 删除
+
+删除一个目录。如果应用程序尝试向会导致错误:
+
+*   删除一个目录,不是空的。
+
+*   删除根目录下的一个文件系统。
+
+**参数:**
+
+*   **successCallback**: 在删除该目录后执行的回调。不带参数调用。*(函数)*
+
+*   **errorCallback**: 如果要删除的目录时,会出现错误执行回调。调用与 `FileError` 对象。*(函数)*
+
+**快速的示例**
+
+    函数 success(entry) {console.log ("删除成功");}函数 fail(error) {警报 (' 删除目录时出错: ' + error.code);}/ / 删除此目录 entry.remove (成功、 失败) ;
+    
+
+## getParent
+
+查找父 `DirectoryEntry` 包含的目录。
+
+**参数:**
+
+*   **successCallback**: 一个通过目录的父目录的回调 `DirectoryEntry` 。*(函数)*
+
+*   **errorCallback**: 如果试图检索父时发生错误执行的回调 `DirectoryEntry` 。 调用与 `FileError` 对象。 *(函数)*
+
+**快速的示例**
+
+    function success(parent) {
+        console.log("Parent Name: " + parent.name);
+    }
+    
+    function fail(error) {
+        alert('Failed to get parent directory: ' + error.code);
+    }
+    
+    // Get the parent DirectoryEntry
+    entry.getParent(success, fail);
+    
+
+## createReader
+
+创建新的 DirectoryReader 来读取目录中的条目。
+
+**快速的示例**
+
+    // create a directory reader
+    var directoryReader = entry.createReader();
+    
+
+## getDirectory
+
+创建或查找现有的目录。如果应用程序尝试向会导致错误:
+
+*   创建一个其直接父尚不存在的目录。
+
+**参数:**
+
+*   **路径**: 要查找或创建的目录的路径。绝对路径或相对路径从这 `DirectoryEntry` 。*() DOMString*
+
+*   **选项**: 选项,以指定是否要如果它不存在,则创建该目录。*(标志)*
+
+*   **successCallback**: 回调的执行的 `DirectoryEntry` 对象。*(函数)*
+
+*   **errorCallback**: 如果发生错误时创建或查找目录执行的回调。调用与 `FileError` 对象。*(函数)*
+
+**快速的示例**
+
+    函数 success(dirEntry) {console.log ("目录名称:"+ dirEntry.name);}函数 fail(error) {警报 ("无法创建新的目录:"+ error.code);}/ / 检索现有的目录,或创建它,如果它不存在 entry.getDirectory ("newDir",{创建: true,独家: false},成功,失败) ;
+    
+
+## getFile
+
+创建或查找文件。如果应用程序尝试向会导致错误:
+
+*   创建一个其直接父尚不存在的文件。
+
+**参数:**
+
+*   **路径**: 要查找或创建的文件的路径。绝对路径或相对路径从这 `DirectoryEntry` 。*() DOMString*
+
+*   **选项**: 选项,以指定是否是否它不存在,则创建该文件。*(标志)*
+
+*   **successCallback**: 传递一个回调 `FileEntry` 对象。*(函数)*
+
+*   **errorCallback**: 如果在创建或查找文件时出现错误执行回调。调用与 `FileError` 对象。*(函数)*
+
+**快速的示例**
+
+    函数 success(fileEntry) {console.log ("文件的名称:"+ fileEntry.name);}函数 fail(error) {警报 ("未能检索文件:"+ error.code);}/ / 检索现有的文件,或创建它,如果它不存在 entry.getFile ("newFile.txt",{创建: true,独家: false},成功,失败) ;
+    
+
+## removeRecursively
+
+删除一个目录和其所有内容。 如果发生错误 (例如试图删除包含一个不能被删除的文件的目录),可能会删除一些目录的内容。 如果应用程序尝试向会导致错误:
+
+*   删除根目录下的一个文件系统。
+
+**参数:**
+
+*   **successCallback**: 后执行的回调 `DirectoryEntry` 已被删除。不带参数调用。*(函数)*
+
+*   **errorCallback**: 如果试图删除时发生错误执行的回调 `DirectoryEntry` 。调用与 `FileError` 对象。*(函数)*
+
+**快速的示例**
+
+    function success(parent) {
+        console.log("Remove Recursively Succeeded");
+    }
+    
+    function fail(error) {
+        alert("Failed to remove directory or it's contents: " + error.code);
+    }
+    
+    // remove the directory and all it's contents
+    entry.removeRecursively(success, fail);
+    
+
+## 黑莓手机的怪癖
+
+可能会失败, `ControlledAccessException` 在以下情况中:
+
+*   应用程序试图访问由以前安装的应用程序创建一个目录。
+
+> 解决方案: 确保手动,或由前重新安装应用程序的临时目录,清洁。
+
+*   如果该设备通过 USB 连接。
+
+> 解决方案: 从设备拔下 USB 电缆,然后再次运行。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/file/directoryreader/directoryreader.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/file/directoryreader/directoryreader.md b/docs/zh/edge/cordova/file/directoryreader/directoryreader.md
new file mode 100644
index 0000000..2f7ea49
--- /dev/null
+++ b/docs/zh/edge/cordova/file/directoryreader/directoryreader.md
@@ -0,0 +1,62 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# DirectoryReader
+
+列出文件和目录在目录中,如[W3C 目录和系统][1]规范中定义的对象。
+
+ [1]: http://www.w3.org/TR/file-system-api/
+
+## 方法
+
+*   **readEntries**: 读取一个目录中的条目。
+
+## 支持的平台
+
+*   Android 系统
+*   黑莓手机 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 7 和 8
+*   Windows 8
+
+## readEntries
+
+读取此目录中的项。
+
+**参数:**
+
+*   **successCallback**: 一个传递的数组的回调 `FileEntry` 和 `DirectoryEntry` 的对象。*(函数)*
+
+*   **errorCallback**: 如果检索目录列表时发生错误执行回调。调用与 `FileError` 对象。*(函数)*
+
+**快速的示例**
+
+    function success(entries) {
+        var i;
+        for (i=0; i<entries.length; i++) {
+            console.log(entries[i].name);
+        }
+    }
+    
+    function fail(error) {
+        alert("Failed to list directory contents: " + error.code);
+    }
+    
+    // Get a directory reader
+    var directoryReader = dirEntry.createReader();
+    
+    // Get a list of all the entries in the directory
+    directoryReader.readEntries(success,fail);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/992e9151/docs/zh/edge/cordova/file/file.md
----------------------------------------------------------------------
diff --git a/docs/zh/edge/cordova/file/file.md b/docs/zh/edge/cordova/file/file.md
new file mode 100644
index 0000000..7807569
--- /dev/null
+++ b/docs/zh/edge/cordova/file/file.md
@@ -0,0 +1,72 @@
+---
+
+license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+    
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+    
+
+   under the License.
+---
+
+# 文件
+
+> 一个 API,用于读取、 写入和导航基于[W3C 文件 API][1]的文件系统层次结构.
+
+ [1]: http://www.w3.org/TR/FileAPI
+
+## 对象
+
+*   枚举指定工作组或
+*   DirectoryReader
+*   文件
+*   FileEntry
+*   FileError
+*   FileReader
+*   文件系统
+*   文件传输
+*   FileTransferError
+*   FileUploadOptions
+*   FileUploadResult
+*   FileWriter
+*   标志
+*   场合
+*   元数据
+
+## 访问功能
+
+从 3.0 版,科尔多瓦作为*插件*实现了设备级 Api。 使用 CLI 的 `plugin` 命令,描述在命令行界面,可以添加或删除一个项目,为此功能:
+
+        $ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
+        $ cordova plugin rm org.apache.cordova.core.file
+    
+
+要使用的文件传输插件必须单独添加的。
+
+        $ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git
+        $ cordova plugin rm org.apache.cordova.core.file-transfer
+    
+
+这些命令适用于所有有针对性的平台,但修改如下所述的特定于平台的配置设置:
+
+*   Android 系统
+    
+        (in app/res/xml/config.xml) < 功能名称 ="文件">< 参数名称 ="android 包"value="org.apache.cordova.FileUtils"/ >< / 功能 >< 功能名称 ="文件传输">< 参数名称 ="android 包"value="org.apache.cordova.FileTransfer"/ >< / 功能 > (在 app/AndroidManifest.xml) < 使用权限 android:name="android.permission.WRITE_EXTERNAL_STORAGE"/ >
+        
+
+*   黑莓手机 WebWorks
+    
+        (in www/plugins.xml) < 功能名称 ="文件">< 参数名称 ="黑莓手机-包"value="org.apache.cordova.file.FileManager"/ >< / 功能 >< 功能名称 ="文件传输">< 参数名称 ="黑莓手机-包"value="org.apache.cordova.http.FileTransfer"/ >< / 功能 > (在 www/config.xml) < 功能 id="blackberry.io.file"所需 ="true"版本 ="1.0.0.0"/ >< 功能 id="blackberry.utils"所需 ="true"版本 ="1.0.0.0"/ >< 功能 id="blackberry.io.dir"所需 ="true"版本 ="1.0.0.0"/ >< rim: 权限 >< rim: 许可证 > access_shared < / rim: 许可证 >< / rim: 权限 >
+        
+
+*   (在 iOS`config.xml`)
+    
+        < 功能名称 ="文件">< 参数名称 ="ios 包"值 ="CDVFile"/ >< / 功能 >< 功能名称 ="文件传输">< 参数名称 ="ios 包"值 ="CDVFileTransfer"/ >< / 功能 >
+        
+
+一些平台可能支持此功能,而无需任何特殊的配置。有关概述,请参见平台支持。
\ No newline at end of file


Mime
View raw message