cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblot...@apache.org
Subject [45/51] [partial] docs commit: Adding both Chinese versions.
Date Wed, 06 Apr 2016 09:28:01 GMT
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/GlobalizationError/globalizationerror.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/GlobalizationError/globalizationerror.md b/www/docs/zh-cn/3.1.0/cordova/globalization/GlobalizationError/globalizationerror.md
new file mode 100644
index 0000000..9417de1
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/GlobalizationError/globalizationerror.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.
+
+title: GlobalizationError
+---
+
+# GlobalizationError
+
+從全球化 API 表示一個錯誤的物件。
+
+## 屬性
+
+*   **代碼**: 表示錯誤類型的以下代碼之一 *(人數)* 
+    *   GlobalizationError.UNKNOWN _ 錯誤: 0
+    *   GlobalizationError.FORMATTING _ 錯誤: 1
+    *   GlobalizationError.PARSING _ 錯誤: 2
+    *   GlobalizationError.PATTERN _ 錯誤: 3
+*   **消息**: 一條文本消息,包括錯誤的解釋,和/或詳細說明*(字串)*
+
+## 說明
+
+此物件創建和填充的科爾多瓦,並返回到出現錯誤時的回檔。
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+
+## 快速的示例
+
+以下錯誤回檔執行時,它會顯示彈出式對話方塊中的文本類似于 `code: 3` 和`message:`
+
+    function errorCallback(error) {
+        alert('code: ' + error.code + '\n' +
+              'message: ' + error.message + '\n');
+    };
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>GlobalizationError Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function successCallback(date) {
+          alert('month:' + date.month +
+                ' day:' + date.day +
+                ' year:' + date.year + '\n');
+        }
+    
+        function errorCallback(error) {
+          alert('code: ' + error.code + '\n' +
+                'message: ' + error.message + '\n');
+        };
+    
+        function checkError() {
+          navigator.globalization.stringToDate(
+            'notADate',
+            successCallback,
+            errorCallback,
+            {selector:'foobar'}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkError()">Click for error</button>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.dateToString.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.dateToString.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.dateToString.md
new file mode 100644
index 0000000..624eb08
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.dateToString.md
@@ -0,0 +1,93 @@
+---
+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.
+
+title: globalization.dateToString
+---
+
+# globalization.dateToString
+
+返回一個日期格式設置為一個字串,根據用戶端的地區設定和時區。
+
+    navigator.globalization.dateToString(date, successCallback, errorCallback, options);
+    
+
+## 說明
+
+返回格式化的日期 `String` 通過 `value` 屬性可從該物件作為一個參數傳遞`successCallback`.
+
+入站 `date` 參數的類型應為`Date`.
+
+如果有錯誤格式日期,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).FORMATTING\_ERROR`.
+
+`options`參數是可選的且其預設值:
+
+    {formatLength: '短',選擇器: 日期和時間}
+    
+
+`options.formatLength`可以是 `short` , `medium` , `long` ,或`full`.
+
+`options.selector`可以是 `date` , `time` 或`date and time`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+如果瀏覽器設置為 `en\_US` 的地區設定,這將顯示一個彈出對話方塊與類似的文本 `date: 9/25/2012 4:21PM` 使用預設選項:
+
+    navigator.globalization.dateToString(
+        new Date(),
+        function (date) { alert('date: ' + date.value + '\n'); },
+        function () { alert('Error getting dateString\n'); },
+        { formatLength: 'short', selector: 'date and time' }
+    );
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>dateToString Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkDateString() {
+          navigator.globalization.dateToString(
+            new Date(),
+            function (date) {alert('date: ' + date.value + '\n');},
+            function () {alert('Error getting dateString\n');,
+            {formatLength:'short', selector:'date and time'}}
+          );
+        }
+        </script>
+      </head>
+      <body>
+        <button onclick="checkDateString()">Click for date string</button>
+      </body>
+    </html>
+    
+
+## Windows Phone 8 怪癖
+
+*   `formatLength`選項僅支援 `short` 和 `full` 的值。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getCurrencyPattern.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getCurrencyPattern.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getCurrencyPattern.md
new file mode 100644
index 0000000..258b5d4
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getCurrencyPattern.md
@@ -0,0 +1,113 @@
+---
+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.
+
+title: globalization.getCurrencyPattern
+---
+
+# globalization.getCurrencyPattern
+
+返回一個模式字串格式化和分析根據用戶端的使用者首選項和 ISO 4217 貨幣代碼貨幣值。
+
+     navigator.globalization.getCurrencyPattern(currencyCode, successCallback, errorCallback);
+    
+
+## 說明
+
+返回到模式 `successCallback` 與 `properties` 物件作為參數。該物件應包含以下屬性:
+
+*   **模式**: 要格式化和分析貨幣值的貨幣模式。 模式按照 Unicode 技術標準 #35。 [HTTP://unicode.org/reports/tr35/tr35-4.html][1]。 *(字串)*
+
+*   **代碼**: 模式的 ISO 4217 貨幣代碼。*(字串)*
+
+*   **分數**: 小數位數解析和貨幣的格式時要使用的數量。*(人數)*
+
+*   **舍**: 舍遞增時分析和格式設置使用。*(人數)*
+
+*   **十進位**: 小數點符號用於分析和格式設置。*(字串)*
+
+*   **分組**: 分組符號用於分析和格式設置。*(字串)*
+
+ [1]: http://unicode.org/reports/tr35/tr35-4.html
+
+入站 `currencyCode` 參數應該是 `String` 的 ISO 4217 貨幣代碼,例如 '美元' 之一。
+
+如果有錯誤獲得該模式,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).FORMATTING\_ERROR`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 地區設定和所選的幣種是美元,本示例將顯示一個彈出對話方塊與類似的結果,請按照操作的文本:
+
+    navigator.globalization.getCurrencyPattern(
+        'USD',
+        function (pattern) {
+            alert('pattern: '  + pattern.pattern  + '\n' +
+                  'code: '     + pattern.code     + '\n' +
+                  'fraction: ' + pattern.fraction + '\n' +
+                  'rounding: ' + pattern.rounding + '\n' +
+                  'decimal: '  + pattern.decimal  + '\n' +
+                  'grouping: ' + pattern.grouping);
+        },
+        function () { alert('Error getting pattern\n'); }
+    );
+    
+
+預期的結果:
+
+    pattern: $#,##0.##;($#,##0.##)
+    code: USD
+    fraction: 2
+    rounding: 0
+    decimal: .
+    grouping: ,
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>getCurrencyPattern Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkPattern() {
+          navigator.globalization.getCurrencyPattern(
+            'USD',
+            function (pattern) {alert('pattern: '  + pattern.pattern  + '\n' +
+                                      'code: '     + pattern.code     + '\n' +
+                                      'fraction: ' + pattern.fraction + '\n' +
+                                      'rounding: ' + pattern.rounding + '\n' +
+                                      'decimal: '  + pattern.decimal  + '\n' +
+                                      'grouping: ' + pattern.grouping);},
+            function () {alert('Error getting pattern\n');}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkPattern()">Click for pattern</button>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getDateNames.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getDateNames.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getDateNames.md
new file mode 100644
index 0000000..788cc2d
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getDateNames.md
@@ -0,0 +1,93 @@
+---
+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.
+
+title: globalization.getDateNames
+---
+
+# globalization.getDateNames
+
+返回一個陣列的幾個月的名稱或一周內,根據用戶端的使用者首選項和日曆天。
+
+    navigator.globalization.getDateNames(successCallback, errorCallback, options);
+    
+
+## 說明
+
+返回的陣列的名稱為 `successCallback` 與 `properties` 物件作為參數。 該物件包含 `value` 屬性與 `Array` 的 `String` 的值。 從任一開始一年或一周內,根據所選的選項的第一天中的第一個月的陣列功能名稱。
+
+如果有錯誤取得名字,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).UNKNOWN\_ERROR`.
+
+`options`參數是可選的且其預設值:
+
+    {類型: '寬'、 專案: '月'}
+    
+
+值 `options.type` 可以是 `narrow` 或`wide`.
+
+值 `options.item` 可以是 `months` 或`days`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 的地區設定,本示例顯示一系列的十二個彈出對話方塊,每個月,與類似的文本一個 `month: January` :
+
+    navigator.globalization.getDateNames(
+        function (names) {
+            for (var i = 0; i < names.value.length; i++) {
+                alert('month: ' + names.value[i] + '\n');
+            }
+        },
+        function () { alert('Error getting names\n'); },
+        { type: 'wide', item: 'months' }
+    );
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>getDateNames Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkDateNames() {
+          navigator.globalization.getDateNames(
+            function (names) {
+              for (var i=0; i<names.value.length; i++) {
+                alert('month: ' + names.value[i] + '\n');
+              }
+            },
+            function () {alert('Error getting names\n');},
+            {type:'wide', item:'months'}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkDateNames()">Click for date names</button>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getDatePattern.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getDatePattern.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getDatePattern.md
new file mode 100644
index 0000000..261836e
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getDatePattern.md
@@ -0,0 +1,107 @@
+---
+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.
+
+title: globalization.getDatePattern
+---
+
+# globalization.getDatePattern
+
+返回一個模式字串格式化和解析日期根據用戶端的使用者首選項。
+
+    navigator.globalization.getDatePattern(successCallback, errorCallback, options);
+    
+
+## 說明
+
+返回到模式 `successCallback` 。作為一個參數傳遞的物件包含以下屬性:
+
+*   **模式**: 要格式化和解析日期的日期和時間模式。 模式按照 Unicode 技術標準 #35。 [HTTP://unicode.org/reports/tr35/tr35-4.html][1]。 *(字串)*
+
+*   **時區**: 在用戶端上的時區的縮寫的名稱。*(字串)*
+
+*   **utc_offset**: 用戶端的時區和協調通用時間當前區別秒。*(人數)*
+
+*   **dst_offset**: 在用戶端的夏之間的秒數的當前夏令時偏移量的時區和用戶端的夏時制儲蓄的時區。*(人數)*
+
+ [1]: http://unicode.org/reports/tr35/tr35-4.html
+
+如果您獲取該模式,錯誤 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).PATTERN\_ERROR`.
+
+`options`參數是可選的並且預設為以下值:
+
+    {formatLength: '短',選擇器: 日期和時間}
+    
+
+`options.formatLength`可以是 `short` , `medium` , `long` ,或 `full` 。 `options.selector`可以是 `date` , `time` 或`date and
+time`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 的地區設定,此示例顯示彈出式對話方塊中的文本如 `pattern: M/d/yyyy h:mm a` :
+
+    function checkDatePattern() {
+        navigator.globalization.getDatePattern(
+            function (date) { alert('pattern: ' + date.pattern + '\n'); },
+            function () { alert('Error getting pattern\n'); },
+            { formatLength: 'short', selector: 'date and time' }
+        );
+    }
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>getDatePattern Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkDatePattern() {
+          navigator.globalization.getDatePattern(
+            function (date) {alert('pattern: ' + date.pattern + '\n');},
+            function () {alert('Error getting pattern\n');},
+            {formatLength:'short', selector:'date and time'}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkDatePattern()">Click for pattern</button>
+      </body>
+    </html>
+    
+
+## Windows Phone 8 怪癖
+
+*   `formatLength`僅支援 `short` 和 `full` 的值。
+
+*   `pattern`的 `date and time` 模式返回只完整的日期時間格式。
+
+*   `timezone`返回全時區名稱。
+
+*   `dst_offset`屬性不受支援,並且總是返回零。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getFirstDayOfWeek.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getFirstDayOfWeek.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getFirstDayOfWeek.md
new file mode 100644
index 0000000..a98b49d
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getFirstDayOfWeek.md
@@ -0,0 +1,74 @@
+---
+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.
+
+title: globalization.getFirstDayOfWeek
+---
+
+# globalization.getFirstDayOfWeek
+
+返回用戶端的使用者首選項和日曆星期的第一天。
+
+    navigator.globalization.getFirstDayOfWeek(successCallback, errorCallback);
+    
+
+## 說明
+
+周中天的編號 1,從開始位置 1 假定是星期日。 返回到天 `successCallback` 與 `properties` 物件作為參數。 物件應具有 `value` 屬性與 `Number` 的值。
+
+如果有錯誤獲得該模式,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).UNKNOWN\_ERROR`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 的地區設定,這將顯示一個彈出對話方塊與類似的文本`day: 1`.
+
+    navigator.globalization.getFirstDayOfWeek(
+        function (day) {alert('day: ' + day.value + '\n');},
+        function () {alert('Error getting day\n');}
+    );
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>getFirstDayOfWeek Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkFirstDay() {
+          navigator.globalization.getFirstDayOfWeek(
+            function (day) {alert('day: ' + day.value + '\n');},
+            function () {alert('Error getting day\n');}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkFirstDay()">Click for first day of week</button>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getLocaleName.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getLocaleName.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getLocaleName.md
new file mode 100644
index 0000000..dcc6b20
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getLocaleName.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.
+
+title: globalization.getLocaleName
+---
+
+# globalization.getLocaleName
+
+獲取用戶端的目前範圍設置的字串識別碼。
+
+    navigator.globalization.getLocaleName(successCallback, errorCallback);
+    
+
+## 說明
+
+返回到的地區設定識別碼字串 `successCallback` 與 `properties` 物件作為參數。 物件應具有 `value` 屬性與 `String` 的值。
+
+如果有出錯的地區設定,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).UNKNOWN\_ERROR`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 的地區設定,這將顯示彈出式對話方塊中的文本`locale: en\_US`.
+
+    navigator.globalization.getLocaleName(
+        function (locale) {alert('locale: ' + locale.value + '\n');},
+        function () {alert('Error getting locale\n');}
+    );
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>getLocaleName Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkLocale() {
+          navigator.globalization.getLocaleName(
+            function (locale) {alert('locale: ' + locale.value + '\n');},
+            function () {alert('Error getting locale\n');}
+          );
+        }
+        </script>
+      </head>
+      <body>
+        <button onclick="checkLocale()">Click for locale</button>
+      </body>
+    </html>
+    
+
+## Windows Phone 8 怪癖
+
+*   返回為當前的國家地區在 ISO 3166 中定義的兩個字母代碼。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getNumberPattern.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getNumberPattern.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getNumberPattern.md
new file mode 100644
index 0000000..5567d29
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getNumberPattern.md
@@ -0,0 +1,127 @@
+---
+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.
+
+title: globalization.getNumberPattern
+---
+
+# globalization.getNumberPattern
+
+返回一個模式字串格式化和分析數位根據用戶端的使用者首選項。
+
+    navigator.globalization.getNumberPattern(successCallback, errorCallback, options);
+    
+
+## 說明
+
+返回到模式 `successCallback` 與 `properties` 物件作為參數。該物件包含以下屬性:
+
+*   **模式**: 要格式化和分析數位的數位模式。 模式按照 Unicode 技術標準 #35。 [HTTP://unicode.org/reports/tr35/tr35-4.html][1]。 *(字串)*
+
+*   **符號**: 符號格式設置和分析過程中,如 %或貨幣符號時使用。*(字串)*
+
+*   **分數**: 小數位數解析和設置數位格式時要使用的數量。*(人數)*
+
+*   **舍**: 舍遞增時分析和格式設置使用。*(人數)*
+
+*   **積極**: 積極數位分析和格式時要使用的符號。*(字串)*
+
+*   **負面**: 要為負數時分析和格式設置使用的符號。*(字串)*
+
+*   **十進位**: 小數點符號用於分析和格式設置。*(字串)*
+
+*   **分組**: 分組符號用於分析和格式設置。*(字串)*
+
+ [1]: http://unicode.org/reports/tr35/tr35-4.html
+
+如果有錯誤獲得該模式,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).PATTERN\_ERROR`.
+
+`options`參數是可選的並且預設值:
+
+    {類型: '十進位'}
+    
+
+`options.type`可以是 `decimal` , `percent` ,或`currency`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 的地區設定,此時應顯示一個彈出對話方塊與類似的結果,請按照操作的文本:
+
+    navigator.globalization.getNumberPattern(
+        function (pattern) {alert('pattern: '  + pattern.pattern  + '\n' +
+                                  'symbol: '   + pattern.symbol   + '\n' +
+                                  'fraction: ' + pattern.fraction + '\n' +
+                                  'rounding: ' + pattern.rounding + '\n' +
+                                  'positive: ' + pattern.positive + '\n' +
+                                  'negative: ' + pattern.negative + '\n' +
+                                  'decimal: '  + pattern.decimal  + '\n' +
+                                  'grouping: ' + pattern.grouping);},
+        function () {alert('Error getting pattern\n');},
+        {type:'decimal'}
+    );
+    
+
+結果:
+
+    圖案: #,# 0.# # # 符號:。分數: 0 舍入: 0 積極: 消極:-十進位:。分組:,
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>getNumberPattern Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkPattern() {
+          navigator.globalization.getNumberPattern(
+            function (pattern) {alert('pattern: '  + pattern.pattern  + '\n' +
+                                      'symbol: '   + pattern.symbol   + '\n' +
+                                      'fraction: ' + pattern.fraction + '\n' +
+                                      'rounding: ' + pattern.rounding + '\n' +
+                                      'positive: ' + pattern.positive + '\n' +
+                                      'negative: ' + pattern.negative + '\n' +
+                                      'decimal: '  + pattern.decimal  + '\n' +
+                                      'grouping: ' + pattern.grouping);},
+            function () {alert('Error getting pattern\n');},
+            {type:'decimal'}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkPattern()">Click for pattern</button>
+      </body>
+    </html>
+    
+
+## Windows Phone 8 怪癖
+
+*   `pattern`不支援屬性,和 retuens 為空字串。
+
+*   `fraction`不支援屬性,並返回零。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getPreferredLanguage.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getPreferredLanguage.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getPreferredLanguage.md
new file mode 100644
index 0000000..8b089e0
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.getPreferredLanguage.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.
+
+title: globalization.getPreferredLanguage
+---
+
+# globalization.getPreferredLanguage
+
+獲取用戶端的當前語言的字串識別碼。
+
+    navigator.globalization.getPreferredLanguage(successCallback, errorCallback);
+    
+
+## 說明
+
+返回到的語言識別項字串 `successCallback` 與 `properties` 物件作為參數。 物件應具有 `value` 屬性與 `String` 的值。
+
+如果有出錯的語言,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).UNKNOWN\_ERROR`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 的地區設定,此時應顯示彈出式功能表對話方塊的文本與 `language: English` :
+
+    navigator.globalization.getPreferredLanguage(
+        function (language) {alert('language: ' + language.value + '\n');},
+        function () {alert('Error getting language\n');}
+    );
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>getPreferredLanguage Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkLanguage() {
+          navigator.globalization.getPreferredLanguage(
+            function (language) {alert('language: ' + language.value + '\n');},
+            function () {alert('Error getting language\n');}
+          );
+        }
+        </script>
+      </head>
+      <body>
+        <button onclick="checkLanguage()">Click for language</button>
+      </body>
+    </html>
+    
+
+## Windows Phone 8 怪癖
+
+*   返回當前語言的 ISO 639-1 兩個字母代碼。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.isDayLightSavingsTime.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.isDayLightSavingsTime.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.isDayLightSavingsTime.md
new file mode 100644
index 0000000..236ae39
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.isDayLightSavingsTime.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.
+
+title: globalization.isDayLightSavingsTime
+---
+
+# globalization.isDayLightSavingsTime
+
+指示是否夏令時生效是給定日期使用用戶端的時區和日曆。
+
+    navigator.globalization.isDayLightSavingsTime(date, successCallback, errorCallback);
+    
+
+## 說明
+
+指示是否夏令時生效的是 `successCallback` 與 `properties` 物件作為參數。 物件應具有 `dst` 屬性與 `Boolean` 的值。 A `true` 值指示夏令時實際上是對給定的日期,和 `false` 指示它不是。
+
+入站的參數 `date` 的類型應為`Date`.
+
+如果有錯誤讀取日期,然後 `errorCallback` 執行。錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).UNKNOWN\_ERROR`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+在夏天的時候,如果瀏覽器被設置為啟用 DST 時區,這應顯示一個彈出式對話方塊與類似的文本和 `dst: true` :
+
+    navigator.globalization.isDayLightSavingsTime(
+        new Date(),
+        function (date) {alert('dst: ' + date.dst + '\n');},
+        function () {alert('Error getting names\n');}
+    );
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>isDayLightSavingsTime Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkDayLightSavings() {
+          navigator.globalization.isDayLightSavingsTime(
+            new Date(),
+            function (date) {alert('dst: ' + date.dst + '\n');},
+            function () {alert('Error getting names\n');}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkDayLightSavings()">Click for daylight savings</button>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.md
new file mode 100644
index 0000000..9163c53
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.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.
+
+title: 全球化
+---
+
+# 全球化
+
+獲取的資訊並執行操作特定于使用者的地區設定和時區。
+
+## 物件
+
+*   [GlobalizationError](GlobalizationError/globalizationerror.html)
+
+## 方法
+
+*   [globalization.getPreferredLanguage](globalization.getPreferredLanguage.html)
+*   [globalization.getLocaleName](globalization.getLocaleName.html)
+*   [globalization.dateToString](globalization.dateToString.html)
+*   [globalization.stringToDate](globalization.stringToDate.html)
+*   [globalization.getDatePattern](globalization.getDatePattern.html)
+*   [globalization.getDateNames](globalization.getDateNames.html)
+*   [globalization.isDayLightSavingsTime](globalization.isDayLightSavingsTime.html)
+*   [globalization.getFirstDayOfWeek](globalization.getFirstDayOfWeek.html)
+*   [globalization.numberToString](globalization.numberToString.html)
+*   [globalization.stringToNumber](globalization.stringToNumber.html)
+*   [globalization.getNumberPattern](globalization.getNumberPattern.html)
+*   [globalization.getCurrencyPattern](globalization.getCurrencyPattern.html)
+
+## 變數範圍
+
+`globalization`物件是一個孩子的 `navigator` 物件,並因此具有全域範圍。
+
+    // The global globalization object
+    var globalization = navigator.globalization;
+    
+
+## 訪問功能
+
+從 3.0 版,科爾多瓦作為*外掛程式*實現了設備級 Api。 使用 CLI 的 `plugin` 命令,描述在命令列介面,可以添加或刪除一個專案,為此功能:
+
+        $ cordova plugin add org.apache.cordova.globalization
+        $ cordova plugin ls
+        [ 'org.apache.cordova.globalization' ]
+        $ cordova plugin rm org.apache.cordova.globalization
+    
+
+這些命令適用于所有有針對性的平臺,但修改如下所述的特定于平臺的配置設置:
+
+*   (在 android`app/res/xml/config.xml`)
+    
+        <feature name="Globalization">
+            <param name="android-package" value="org.apache.cordova.Globalization" />
+        </feature>
+        
+
+一些平臺可能支援此功能,而無需任何特殊的配置。請參見在概述部分中*的平臺支援*。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.numberToString.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.numberToString.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.numberToString.md
new file mode 100644
index 0000000..c4ff6e1
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.numberToString.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.
+
+title: globalization.numberToString
+---
+
+# globalization.numberToString
+
+返回一個數位的格式設置為根據用戶端的使用者首選項的字串。
+
+    navigator.globalization.numberToString(number, successCallback, errorCallback, options);
+    
+
+## 說明
+
+返回到帶格式的數位字串 `successCallback` 與 `properties` 物件作為參數。 物件應具有 `value` 屬性與 `String` 的值。
+
+如果有錯誤格式數,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).FORMATTING\_ERROR`.
+
+`options`參數是可選的且其預設值:
+
+    {類型: '十進位'}
+    
+
+`options.type`可以是 '十進位'、 '%' 或 '貨幣'。
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 的地區設定,這將顯示一個彈出對話方塊與類似的文本 `number: 3.142` :
+
+    navigator.globalization.numberToString(
+        3.1415926,
+        function (number) {alert('number: ' + number.value + '\n');},
+        function () {alert('Error getting number\n');},
+        {type:'decimal'}
+    );
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>numberToString Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkNumber() {
+          navigator.globalization.numberToString(
+            3.1415926,
+            function (number) {alert('number: ' + number.value + '\n');},
+            function () {alert('Error getting number\n');},
+            {type:'decimal'}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkNumber()">Click for number</button>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.stringToDate.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.stringToDate.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.stringToDate.md
new file mode 100644
index 0000000..563eed8
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.stringToDate.md
@@ -0,0 +1,111 @@
+---
+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.
+
+title: globalization.stringToDate
+---
+
+# globalization.stringToDate
+
+分析日期格式設置為一個字串,根據用戶端的使用者首選項和日曆使用時區的用戶端,並返回對應的 date 物件。
+
+    navigator.globalization.stringToDate(dateString, successCallback, errorCallback, options);
+    
+
+## 說明
+
+返回的日期與成功回檔到 `properties` 物件作為參數。該物件應具有以下屬性:
+
+*   **一年**: 將四個數字的年份。*(人數)*
+
+*   **月**: 從 (0-11) 月。*(人數)*
+
+*   **一天**: 從 (1-31) 天。*(人數)*
+
+*   **小時**: 從 (0-23) 小時。*(人數)*
+
+*   **分鐘**: 從 (0-59) 分鐘。*(人數)*
+
+*   **第二**: 的第二位 (0-59)。*(人數)*
+
+*   **毫秒**: 的毫秒數 (從 0-999),在所有平臺上不可用。*(人數)*
+
+入站 `dateString` 參數的類型應為`String`.
+
+`options`參數是可選的並且預設為以下值:
+
+    {formatLength: '短',選擇器: 日期和時間}
+    
+
+`options.formatLength`可以是 `short` , `medium` , `long` ,或 `full` 。 `options.selector`可以是 `date` , `time` 或`date and
+time`.
+
+如果有錯誤解析日期字串,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).PARSING\_ERROR`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 的地區設定,這將顯示一個彈出對話方塊與類似的文本 `month:8 day:25 year:2012` 。 請注意,整數是一個月比少的字串,作為月整數代表陣列索引。
+
+    navigator.globalization.stringToDate(
+        '9/25/2012',
+        function (date) {alert('month:' + date.month +
+                               ' day:'  + date.day   +
+                               ' year:' + date.year  + '\n');},
+        function () {alert('Error getting date\n');},
+        {selector: 'date'}
+    );
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>stringToDate Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkStringDate() {
+          navigator.globalization.stringToDate(
+            '9/25/2012',
+            function (date) {alert('month:' + date.month +
+                                   ' day:' + date.day +
+                                   ' year:' + date.year + '\n');},
+            function () {alert('Error getting date\n');},
+            {selector:'date'}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkStringDate()">Click for parsed date</button>
+      </body>
+    </html>
+    
+
+## Windows Phone 8 怪癖
+
+*   `formatLength`選項僅支援 `short` 和 `full` 的值。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.stringToNumber.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.stringToNumber.md b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.stringToNumber.md
new file mode 100644
index 0000000..a8ee3f9
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/globalization/globalization.stringToNumber.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.
+
+title: globalization.stringToNumber
+---
+
+# globalization.stringToNumber
+
+分析的數位格式化為根據用戶端的使用者首選項的字串並返回相應的號碼。
+
+    navigator.globalization.stringToNumber(string, successCallback, errorCallback, options);
+    
+
+## 說明
+
+返回到數 `successCallback` 與 `properties` 物件作為參數。物件應具有 `value` 屬性與 `Number` 的值。
+
+如果有錯誤解析的字串,然後 `errorCallback` 執行與 `[GlobalizationError](GlobalizationError/globalizationerror.html)` 物件作為參數。 錯誤的期望的代碼`[GlobalizationError](GlobalizationError/globalizationerror.html).PARSING\_ERROR`.
+
+`options`參數是可選的並且預設為以下值:
+
+    {類型: '十進位'}
+    
+
+`options.type`可以是 `decimal` , `percent` ,或`currency`.
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機 WebWorks (OS 5.0 和更高)
+*   iOS
+*   Windows Phone 8
+
+## 快速的示例
+
+當瀏覽器設置為 `en\_US` 的地區設定,此時應顯示與文本類似于彈出式對話方塊中 `number: 1234.56` :
+
+    navigator.globalization.stringToNumber(
+        '1234.56',
+        function (number) {alert('number: ' + number.value + '\n');},
+        function () {alert('Error getting number\n');},
+        {type:'decimal'}
+    );
+    
+
+## 完整的示例
+
+    <!DOCTYPE HTML>
+    <html>
+      <head>
+        <title>stringToNumber Example</title>
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        function checkNumber() {
+          navigator.globalization.stringToNumber(
+            '1234.56',
+            function (number) {alert('number: ' + number.value + '\n');},
+            function () {alert('Error getting number\n');},
+            {type:'decimal'}
+          );
+        }
+    
+        </script>
+      </head>
+      <body>
+        <button onclick="checkNumber()">Click for parsed number</button>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/inappbrowser/inappbrowser.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/inappbrowser/inappbrowser.md b/www/docs/zh-cn/3.1.0/cordova/inappbrowser/inappbrowser.md
new file mode 100644
index 0000000..6475dc9
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/inappbrowser/inappbrowser.md
@@ -0,0 +1,503 @@
+---
+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.
+
+title: InAppBrowser
+---
+
+# InAppBrowser
+
+> `InAppBrowser`一個 web 瀏覽器視圖,顯示時調用 `[window.open](window.open.html)()` ,或當打開連結形成的作為`<a target="_blank">`.
+
+    var ref = window.open('http://apache.org', '_blank', 'location=yes');
+    
+
+**注:**InAppBrowser 視窗類似于一個標準的 web 瀏覽器,並且無法訪問科爾多瓦的 Api。
+
+## 說明
+
+從調用返回的物件`[window.open](window.open.html)`.
+
+## 方法
+
+*   addEventListener
+*   removeEventListener
+*   close
+*   show
+*   executeScript
+*   insertCSS
+
+## 訪問功能
+
+從 3.0 版,科爾多瓦作為*外掛程式*實現了設備級 Api。 使用 CLI 的 `plugin` 命令,描述在命令列介面,可以添加或刪除一個專案,為此功能:
+
+        $ cordova plugin add org.apache.cordova.inappbrowser
+        $ cordova plugin ls
+        [ 'org.apache.cordova.inappbrowser' ]
+        $ cordova plugin rm org.apache.cordova.inappbrowser
+    
+
+這些命令適用于所有有針對性的平臺,但修改如下所述的特定于平臺的配置設置:
+
+*   (在 android`app/res/xml/config.xml`)
+    
+        <feature name="InAppBrowser">
+            <param name="android-package" value="org.apache.cordova.InAppBrowser" />
+        </feature>
+        
+
+*   (在 iOS`config.xml`)
+    
+        <feature name="InAppBrowser">
+            <param name="ios-package" value="CDVInAppBrowser" />
+        </feature>
+        
+
+*   Windows Phone 7,8 個 (在`config.xml`)
+    
+        <feature name="InAppBrowser" />
+        
+
+一些平臺可能支援此功能,而無需任何特殊的配置。請參見在概述部分中*的平臺支援*。
+
+# addEventListener
+
+> 為事件添加一個攔截器`InAppBrowser`.
+
+    ref.addEventListener(eventname, callback);
+    
+
+*   **ref**: 參考 `InAppBrowser` 視窗*(InAppBrowser)*
+
+*   **事件名稱**: 事件偵聽*(字串)*
+    
+    *   **loadstart**: 當觸發事件 `InAppBrowser` 開始載入一個 URL。
+    *   **loadstop**: 當觸發事件 `InAppBrowser` 完成載入一個 URL。
+    *   **loaderror**: 當觸發事件 `InAppBrowser` 載入 URL 時遇到錯誤。
+    *   **退出**: 當觸發事件 `InAppBrowser` 關閉視窗。
+
+*   **回檔**: 執行時觸發該事件的函數。該函數通過 `InAppBrowserEvent` 物件作為參數。
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機
+*   iOS
+*   Windows Phone 7 和 8
+
+## 快速的示例
+
+    var ref = window.open('http://apache.org', '_blank', 'location=yes');
+    ref.addEventListener('loadstart', function() { alert(event.url); });
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>InAppBrowser.addEventListener 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 ref = window.open('http://apache.org', '_blank', 'location=yes');
+             ref.addEventListener('loadstart', function(event) { alert('start: ' + event.url); });
+             ref.addEventListener('loadstop', function(event) { alert('stop: ' + event.url); });
+             ref.addEventListener('loaderror', function(event) { alert('error: ' + event.message); });
+             ref.addEventListener('exit', function(event) { alert(event.type); });
+        }
+    
+        </script>
+      </head>
+      <body>
+      </body>
+    </html>
+    
+
+# removeEventListener
+
+> 移除的事件攔截器`InAppBrowser`.
+
+    ref.removeEventListener(eventname, callback);
+    
+
+*   **ref**: 參考 `InAppBrowser` 視窗。*() InAppBrowser*
+
+*   **事件名稱**: 要停止偵聽的事件。*(字串)*
+    
+    *   **loadstart**: 當觸發事件 `InAppBrowser` 開始載入一個 URL。
+    *   **loadstop**: 當觸發事件 `InAppBrowser` 完成載入一個 URL。
+    *   **loaderror**: 當觸發事件 `InAppBrowser` 遇到錯誤載入一個 URL。
+    *   **退出**: 當觸發事件 `InAppBrowser` 關閉視窗。
+
+*   **回檔**: 要在事件觸發時執行的函數。該函數通過 `InAppBrowserEvent` 物件。
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機
+*   iOS
+*   Windows Phone 7 和 8
+
+## 快速的示例
+
+    var ref = window.open('http://apache.org', '_blank', 'location=yes');
+    var myCallback = function() { alert(event.url); }
+    ref.addEventListener('loadstart', myCallback);
+    ref.removeEventListener('loadstart', myCallback);
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>InAppBrowser.removeEventListener 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);
+    
+        // Global InAppBrowser reference
+        var iabRef = null;
+    
+        function iabLoadStart(event) {
+            alert(event.type + ' - ' + event.url);
+        }
+    
+        function iabLoadStop(event) {
+            alert(event.type + ' - ' + event.url);
+        }
+    
+        function iabLoadError(event) {
+            alert(event.type + ' - ' + event.message);
+        }
+    
+        function iabClose(event) {
+             alert(event.type);
+             iabRef.removeEventListener('loadstart', iabLoadStart);
+             iabRef.removeEventListener('loadstop', iabLoadStop);
+             iabRef.removeEventListener('loaderror', iabLoadError);
+             iabRef.removeEventListener('exit', iabClose);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+             iabRef = window.open('http://apache.org', '_blank', 'location=yes');
+             iabRef.addEventListener('loadstart', iabLoadStart);
+             iabRef.addEventListener('loadstop', iabLoadStop);
+             iabRef.removeEventListener('loaderror', iabLoadError);
+             iabRef.addEventListener('exit', iabClose);
+        }
+    
+        </script>
+      </head>
+      <body>
+      </body>
+    </html>
+    
+
+# 關閉
+
+> 關閉 `InAppBrowser` 視窗。
+
+    ref.close();
+    
+
+*   **ref**: 參考 `InAppBrowser` 視窗*(InAppBrowser)*
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機
+*   iOS
+*   Windows Phone 7 和 8
+
+## 快速的示例
+
+    var ref = window.open('http://apache.org', '_blank', 'location=yes');
+    ref.close();
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>InAppBrowser.close 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 ref = window.open('http://apache.org', '_blank', 'location=yes');
+             // close InAppBrowser after 5 seconds
+             setTimeout(function() {
+                 ref.close();
+             }, 5000);
+        }
+    
+        </script>
+      </head>
+      <body>
+      </body>
+    </html>
+    
+
+# 顯示
+
+> 顯示打開了隱藏的 InAppBrowser 視窗。調用這沒有任何影響,如果 InAppBrowser 是已經可見。
+
+    ref.show();
+    
+
+*   **ref:**的 InAppBrowser 視窗 (參考`InAppBrowser`)
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機
+*   iOS
+
+## 快速的示例
+
+    var ref = window.open('http://apache.org', '_blank', 'hidden=yes');
+    ref.show();
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>InAppBrowser.show Example</title>
+    
+        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
+        <script type="text/javascript" charset="utf-8">
+    
+        // Wait for Cordova to load
+        //
+        document.addEventListener("deviceready", onDeviceReady, false);
+    
+        // Cordova is ready
+        //
+        function onDeviceReady() {
+             var ref = window.open('http://apache.org', '_blank', 'hidden=yes');
+             ref.addEventListener('loadstop', function(event) {
+                 alert('background window loaded'); 
+             });
+             // close InAppBrowser after 5 seconds
+             setTimeout(function() {
+                 ref.close();
+             }, 5000);
+        }
+    
+        </script>
+      </head>
+      <body>
+      </body>
+    </html>
+    
+
+# executeScript
+
+> 注入到 JavaScript 代碼 `InAppBrowser` 視窗
+
+    ref.executeScript 回檔的詳細資訊) ;
+    
+
+*   **ref**: 參考 `InAppBrowser` 視窗。*() InAppBrowser*
+
+*   **injectDetails**: 要運行的腳本的詳細資訊或指定 `file` 或 `code` 的關鍵。*(物件)*
+    
+    *   **檔**: 腳本的 URL 來注入。
+    *   **代碼**: 要注入腳本的文本。
+
+*   **回檔**: 執行後注入的 JavaScript 代碼的函數。
+    
+    *   如果插入的腳本的類型 `code` ,回檔執行使用單個參數,這是該腳本的傳回值,裹在 `Array` 。 對於多行腳本,這是最後一條語句或最後計算的運算式的傳回值。
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機
+*   iOS
+
+## 快速的示例
+
+    var ref = window.open('http://apache.org', '_blank', 'location=yes');
+    ref.addEventListener('loadstop', function() {
+        ref.executeSript({file: "myscript.js"});
+    });
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>InAppBrowser.executeScript 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);
+    
+        // Global InAppBrowser reference
+        var iabRef = null;
+    
+        // Inject our custom JavaScript into the InAppBrowser window
+        //
+        function replaceHeaderImage() {
+            iabRef.executeScript({
+                code: "var img=document.querySelector('#header img'); img.src='http://cordova.apache.org/images/cordova_bot.png';"
+            }, function() {
+                alert("Image Element Successfully Hijacked");
+            }
+        }
+    
+        function iabClose(event) {
+             iabRef.removeEventListener('loadstop', replaceHeaderImage);
+             iabRef.removeEventListener('exit', iabClose);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+             iabRef = window.open('http://apache.org', '_blank', 'location=yes');
+             iabRef.addEventListener('loadstop', replaceHeaderImage);
+             iabRef.addEventListener('exit', iabClose);
+        }
+    
+        </script>
+      </head>
+      <body>
+      </body>
+    </html>
+    
+
+# insertCSS
+
+> 注入到 CSS `InAppBrowser` 視窗。
+
+    ref.insertCSS(details, callback);
+    
+
+*   **ref**: 參考 `InAppBrowser` 視窗*(InAppBrowser)*
+
+*   **injectDetails**: 要運行的腳本的詳細資訊或指定 `file` 或 `code` 的關鍵。*(物件)*
+    
+    *   **檔**: 樣式表的 URL 來注入。
+    *   **代碼**: 文本樣式表的注入。
+
+*   **回檔**: 在 CSS 注射後執行的函數。
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機
+*   iOS
+
+## 快速的示例
+
+    var ref = window.open('http://apache.org', '_blank', 'location=yes');
+    ref.addEventListener('loadstop', function() {
+        ref.insertCSS({file: "mystyles.css"});
+    });
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>InAppBrowser.insertCSS 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);
+    
+        // Global InAppBrowser reference
+        var iabRef = null;
+    
+        // Inject our custom CSS into the InAppBrowser window
+        //
+        function changeBackgroundColor() {
+            iabRef.insertCSS({
+                code: "body { background: #ffff00"
+            }, function() {
+                alert("Styles Altered");
+            }
+        }
+    
+        function iabClose(event) {
+             iabRef.removeEventListener('loadstop', changeBackgroundColor);
+             iabRef.removeEventListener('exit', iabClose);
+        }
+    
+        // device APIs are available
+        //
+        function onDeviceReady() {
+             iabRef = window.open('http://apache.org', '_blank', 'location=yes');
+             iabRef.addEventListener('loadstop', changeBackgroundColor);
+             iabRef.addEventListener('exit', iabClose);
+        }
+    
+        </script>
+      </head>
+      <body>
+      </body>
+    </html>
+    
+
+# InAppBrowserEvent
+
+物件傳遞給回呼函數從 `addEventListener` 上調用 `InAppBrowser` 的物件。
+
+## 屬性
+
+*   **類型**: eventname,或者 `loadstart` , `loadstop` , `loaderror` ,或 `exit` 。*(字串)*
+
+*   **url**: 已載入的 URL。*(字串)*
+
+*   **代碼**: 僅中的情況的錯誤代碼 `loaderror` 。*(人數)*
+
+*   **消息**: 該錯誤訊息,只有在的情況下 `loaderror` 。*(字串)*
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/inappbrowser/window.open.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/inappbrowser/window.open.md b/www/docs/zh-cn/3.1.0/cordova/inappbrowser/window.open.md
new file mode 100644
index 0000000..06b1eba
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/inappbrowser/window.open.md
@@ -0,0 +1,107 @@
+---
+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.
+
+title: window.open
+---
+
+# window.open
+
+在一個新的中打開 URL `[InAppBrowser](inappbrowser.html)` 實例,當前的瀏覽器實例或系統瀏覽器。
+
+    var ref = window.open(url, target, options);
+    
+
+*   **ref**: 參考 `[InAppBrowser](inappbrowser.html)` 視窗。*() InAppBrowser*
+
+*   **url**: 要載入*(字串)*的 URL。調用 `encodeURI()` 這個如果 URL 包含 Unicode 字元。
+
+*   **目標**: 目標在其中載入的 URL,可選參數,預設值為 `_self` 。*(字串)*
+    
+    *   `_self`: 打開在科爾多瓦 web 視圖如果 URL 是在白名單中,否則它在打開`InAppBrowser`.
+    *   `_blank`: 在打開`InAppBrowser`.
+    *   `_system`: 在該系統的 web 瀏覽器中打開。
+
+*   **選項**: 選項為 `[InAppBrowser](inappbrowser.html)` 。可選,拖欠到: `location=yes` 。*(字串)*
+    
+    `options`字串必須不包含任何空白的空間,和必須用逗號分隔每個功能的名稱/值對。 功能名稱區分大小寫。 所有平臺都支援下面的值:
+    
+    *   **位置**: 設置為 `yes` 或 `no` ,打開 `InAppBrowser` 的位置欄打開或關閉。
+    ## Android 僅
+    
+    *   **closebuttoncaption** -將設置為一個字串,它將會在"完成"按鈕的標題。 
+    *   **隱藏**-設置為是以創建瀏覽器和載入頁面,但不是顯示它。 Load 事件將觸發載入完成時。 省略或設置為否 (預設值),以有瀏覽器打開,然後以正常方式載入。 
+    *   **clearcache** -設置為 'yes' 有瀏覽器的 cookie 緩存清除之前打開新視窗
+    *   **clearsessioncache** -設置為 'yes' 有會話 cookie 緩存清除之前打開新視窗
+    ## iOS 只
+    
+    *   **closebuttoncaption** -將設置為一個字串,它將會在"完成"按鈕的標題。注意你會有自己的當地語系化此值。
+    *   **隱藏**-設置為是以創建瀏覽器和載入頁面,但不是顯示它。 Load 事件將觸發載入完成時。 省略或設置為否 (預設值),以有瀏覽器打開,然後以正常方式載入。 
+    *   **工具列**-設置為 '是' 或 '否',打開工具列或關閉為 InAppBrowser (預設值為是)
+    *   **enableViewportScale**: 將設置為 `yes` 或 `no` ,防止通過 meta 標記 (預設為縮放的視區`no`).
+    *   **mediaPlaybackRequiresUserAction**: 將設置為 `yes` 或 `no` ,防止 HTML5 音訊或視頻從 autoplaying (預設為`no`).
+    *   **allowInlineMediaPlayback**: 將設置為 `yes` 或 `no` 允許內聯 HTML5 播放媒體,在瀏覽器視窗中,而不是特定于設備播放介面內顯示。 HTML 的 `video` 元素還必須包括 `webkit-playsinline` 屬性 (預設為`no`)
+    *   **keyboardDisplayRequiresUserAction**: 將設置為 `yes` 或 `no` 時,要打開鍵盤表單元素接收焦點通過 JavaScript 的 `focus()` 調用 (預設為`yes`).
+    *   **suppressesIncrementalRendering**: 將設置為 `yes` 或 `no` 等待,直到所有新查看的內容正在呈現 (預設為前收到`no`).
+    *   **presentationstyle**: 將設置為 `pagesheet` , `formsheet` 或 `fullscreen` 來設置[演示文稿樣式][1](預設為`fullscreen`).
+    *   **transitionstyle**: 將設置為 `fliphorizontal` , `crossdissolve` 或 `coververtical` 設置[過渡樣式][2](預設為`coververtical`).
+
+ [1]: http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalPresentationStyle
+ [2]: http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle
+
+## 支援的平臺
+
+*   Android 系統
+*   黑莓手機
+*   iOS
+*   Windows Phone 7 和 8
+
+## 快速的示例
+
+    var ref = window.open('http://apache.org', '_blank', 'location=yes');
+    var ref2 = window.open(encodeURI('http://ja.m.wikipedia.org/wiki/ハングル'), '_blank', 'location=yes');
+    
+
+## 完整的示例
+
+    <!DOCTYPE html>
+    <html>
+      <head>
+        <title>window.open 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() {
+            // external url
+            var ref = window.open(encodeURI('http://apache.org'), '_blank', 'location=yes');
+            // relative document
+            ref = window.open('next.html', '_self');
+        }
+    
+        </script>
+      </head>
+      <body>
+      </body>
+    </html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/media/MediaError/mediaError.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/media/MediaError/mediaError.md b/www/docs/zh-cn/3.1.0/cordova/media/MediaError/mediaError.md
new file mode 100644
index 0000000..764a32e
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/media/MediaError/mediaError.md
@@ -0,0 +1,42 @@
+---
+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.
+
+title: MediaError
+---
+
+# MediaError
+
+A `MediaError` 物件返回到 `[mediaError](../Parameters/mediaError.html)` 時出現錯誤的回呼函數。
+
+## 屬性
+
+*   **代碼**: 下面列出的預定義的錯誤代碼之一。
+
+*   **消息**: 錯誤訊息描述該錯誤的詳細資訊。
+
+## 常量
+
+*   `MediaError.MEDIA_ERR_ABORTED`
+*   `MediaError.MEDIA_ERR_NETWORK`
+*   `MediaError.MEDIA_ERR_DECODE`
+*   `MediaError.MEDIA_ERR_NONE_SUPPORTED`
+
+## 說明
+
+`MediaError`物件傳遞給 `[mediaError](../Parameters/mediaError.html)` 回呼函數時出現錯誤。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/media/Parameters/mediaError.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/media/Parameters/mediaError.md b/www/docs/zh-cn/3.1.0/cordova/media/Parameters/mediaError.md
new file mode 100644
index 0000000..1ddd9d5
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/media/Parameters/mediaError.md
@@ -0,0 +1,34 @@
+---
+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.
+
+title: mediaError
+---
+
+# mediaError
+
+當有錯誤的媒體功能執行使用者指定的回呼函數。
+
+    function(error) {
+        // Handle the error
+    }
+    
+
+## 參數
+
+*   **錯誤**: 設備所返回的錯誤。*() MediaError*
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureCB.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureCB.md b/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureCB.md
new file mode 100644
index 0000000..614dc73
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureCB.md
@@ -0,0 +1,45 @@
+---
+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.
+
+title: CaptureCB
+---
+
+# CaptureCB
+
+> 在成功的媒體捕獲操作時調用。
+
+    function captureSuccess( MediaFile[] mediaFiles ) { ... };
+    
+
+## 說明
+
+此函數執行成功捕獲操作完成後。 在已捕獲的媒體檔案,這點,或者使用者已退出媒體捕獲應用程式,或已達到捕獲限制。
+
+每個 `MediaFile` 物件描述一個捕捉的媒體檔案。
+
+## 快速的示例
+
+    // capture callback
+    function captureSuccess(mediaFiles) {
+        var i, path, len;
+        for (i = 0, len = mediaFiles.length; i < len; i += 1) {
+            path = mediaFiles[i].fullPath;
+            // do something interesting with the file
+        }
+    };
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureError.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureError.md b/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureError.md
new file mode 100644
index 0000000..874ca69
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureError.md
@@ -0,0 +1,41 @@
+---
+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.
+
+title: CaptureError
+---
+
+# CaptureError
+
+> 封裝失敗的媒體捕獲操作所引起的錯誤代碼。
+
+## 屬性
+
+*   **代碼**: 下面列出的預定義的錯誤代碼之一。
+
+## 常量
+
+*   `CaptureError.CAPTURE_INTERNAL_ERR`: 攝像機或麥克風無法捕獲的圖像或聲音。
+
+*   `CaptureError.CAPTURE_APPLICATION_BUSY`: 相機或音訊捕獲應用程式正在服另一個捕獲請求。
+
+*   `CaptureError.CAPTURE_INVALID_ARGUMENT`: API 的使用無效 (例如,價值 `limit` 小於 1)。
+
+*   `CaptureError.CAPTURE_NO_MEDIA_FILES`: 在使用者退出之前捕獲任何相機或音訊捕獲應用程式。
+
+*   `CaptureError.CAPTURE_NOT_SUPPORTED`: 請求的捕獲操作不受支援。
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureErrorCB.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureErrorCB.md b/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureErrorCB.md
new file mode 100644
index 0000000..399ea65
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/media/capture/CaptureErrorCB.md
@@ -0,0 +1,41 @@
+---
+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.
+
+title: CaptureErrorCB
+---
+
+# CaptureErrorCB
+
+> 如果媒體捕獲操作期間發生錯誤,調用。
+
+    function captureError( CaptureError error ) { ... };
+    
+
+## 說明
+
+如果發生錯誤時試圖發起一個媒體捕獲操作,執行此函數。 故障情形包括捕獲應用程式正忙、 捕獲操作已經發生,或使用者取消該操作之前捕獲任何媒體檔案時。
+
+此函數執行與 `[CaptureError](CaptureError.html)` 物件,其中包含適當的錯誤`code`.
+
+## 快速的示例
+
+    // capture error callback
+    var captureError = function(error) {
+        navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error');
+    };
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a890e4de/www/docs/zh-cn/3.1.0/cordova/media/capture/ConfigurationData.md
----------------------------------------------------------------------
diff --git a/www/docs/zh-cn/3.1.0/cordova/media/capture/ConfigurationData.md b/www/docs/zh-cn/3.1.0/cordova/media/capture/ConfigurationData.md
new file mode 100644
index 0000000..9356547
--- /dev/null
+++ b/www/docs/zh-cn/3.1.0/cordova/media/capture/ConfigurationData.md
@@ -0,0 +1,65 @@
+---
+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.
+
+title: 配置
+---
+
+# 配置
+
+> 封裝一組設備支援的媒體捕獲參數。
+
+## 說明
+
+描述設備所支援的媒體捕獲模式。配置資料包含的 MIME 類型和捕獲尺寸的視頻或圖像捕獲。
+
+MIME 類型應堅持[RFC2046][1]。例子:
+
+ [1]: http://www.ietf.org/rfc/rfc2046.txt
+
+*   `視頻/3gpp`
+*   `視頻/quicktime`
+*   `圖像/jpeg`
+*   `音訊/amr`
+*   `音訊/wav`
+
+## 屬性
+
+*   **類型**: ASCII 編碼的小寫字串表示的媒體類型。() DOMString
+
+*   **高度**: 圖像或視頻以圖元為單位的高度。值為零的音效片段。(人數)
+
+*   **寬度**: 圖像或視頻以圖元為單位的寬度。值為零的音效片段。(人數)
+
+## 快速的示例
+
+    // retrieve supported image modes
+    var imageModes = navigator.device.capture.supportedImageModes;
+    
+    // Select mode that has the highest horizontal resolution
+    var width = 0;
+    var selectedmode;
+    for each (var mode in imageModes) {
+        if (mode.width > width) {
+            width = mode.width;
+            selectedmode = mode;
+        }
+    }
+    
+
+不支援任何平臺。所有配置資料陣列都是空的。
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message