You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/09/10 19:37:23 UTC
[38/51] [abbrv] [partial] Move Japanese to docs/ja and Korean to
docs/ko.
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/media/media.startRecord.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/media/media.startRecord.md b/docs/ja/1.8.1/cordova/media/media.startRecord.md
new file mode 100644
index 0000000..06b0e23
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/media/media.startRecord.md
@@ -0,0 +1,141 @@
+---
+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.
+---
+
+media.startRecord
+=================
+
+オーディオファイルの録音を開始します。
+
+ media.startRecord();
+
+
+概要
+-----------
+
+`media.startRecord` 関数はオーディオファイルの録音を開始する同期関数です。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iOS
+- Windows Phone 7 (Mango)
+
+使用例
+-------------
+
+ // オーディオの録音
+ //
+ function recordAudio() {
+ var src = "myrecording.mp3";
+ var mediaRec = new Media(src,
+ // 呼び出し成功
+ function() {
+ console.log("recordAudio():Audio Success");
+ },
+
+ // 呼び出し失敗
+ function(err) {
+ console.log("recordAudio():Audio Error: "+ err.code);
+ });
+
+ // オーディオの録音
+ mediaRec.startRecord();
+ }
+
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>デバイスプロパティーの使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // オーディオの録音
+ //
+ function recordAudio() {
+ var src = "myrecording.mp3";
+ var mediaRec = new Media(src, onSuccess, onError);
+
+ // オーディオの録音
+ mediaRec.startRecord();
+
+ // 10秒後に録音を停止
+ var recTime = 0;
+ var recInterval = setInterval(function() {
+ recTime = recTime + 1;
+ setAudioPosition(recTime + " sec");
+ if (recTime >= 10) {
+ clearInterval(recInterval);
+ mediaRec.stopRecord();
+ }
+ }, 1000);
+ }
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ recordAudio();
+ }
+
+ // 成功時のコールバック関数
+ //
+ function onSuccess() {
+ console.log("recordAudio():Audio Success");
+ }
+
+ // エラー時のコールバック関数
+ //
+ function onError(error) {
+ alert('コード: ' + error.code + '\n' +
+ 'メッセージ: ' + error.message + '\n');
+ }
+
+ // 再生位置をセット
+ //
+ function setAudioPosition(position) {
+ document.getElementById('audio_position').innerHTML = position;
+ }
+
+ </script>
+ </head>
+ <body>
+ <p id="media">オーディオを録音...</p>
+ <p id="audio_position"></p>
+ </body>
+ </html>
+
+BlackBerry WebWorks に関する注意点
+----------
+
+- BlackBerry デバイスはオーディオを Adaptive Multi-Rate フォーマットで録音します。ファイル名は .amr 拡張子で指定される必要があります。
+
+iOS に関する注意点
+----------
+
+- 録音するためのファイルは既に .wav 形式で存在していなければなりません。 File API 群を使用することでファイルを作成することができます。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/media/media.stop.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/media/media.stop.md b/docs/ja/1.8.1/cordova/media/media.stop.md
new file mode 100644
index 0000000..43e0fc8
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/media/media.stop.md
@@ -0,0 +1,169 @@
+---
+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.
+---
+
+media.stop
+==========
+
+オーディオファイルを停止します。
+
+ media.stop();
+
+
+概要
+-----------
+
+`media.stop` 関数はオーディオファイルを停止させる同期関数です。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iOS
+- Windows Phone 7 (Mango)
+
+使用例
+-------------
+
+ // オーディオ再生
+ //
+ function playAudio(url) {
+ // URL のオーディオファイルを再生
+ var my_media = new Media(url,
+ // 呼び出し成功
+ function() {
+ console.log("playAudio():Audio Success");
+ },
+ // 呼び出し失敗
+ function(err) {
+ console.log("playAudio():Audio Error: "+err);
+ });
+
+ // オーディオ再生
+ my_media.play();
+
+ // 10秒後に一時停止
+ setTimeout(function() {
+ my_media.stop();
+ }, 10000);
+ }
+
+詳細な使用例
+------------
+
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+ <html>
+ <head>
+ <title>メディアの使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ playAudio("http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3");
+ }
+
+ // オーディオプレイヤー
+ //
+ var my_media = null;
+ var mediaTimer = null;
+
+ // オーディオ再生
+ //
+ function playAudio(src) {
+ // src から Media オブジェクトを作成
+ my_media = new Media(src, onSuccess, onError);
+
+ // オーディオ再生
+ my_media.play();
+
+ // my_media の再生位置を一秒ごとに更新
+ if (mediaTimer == null) {
+ mediaTimer = setInterval(function() {
+ // my_media の再生位置を取得
+ my_media.getCurrentPosition(
+ // 呼び出し成功
+ function(position) {
+ if (position > -1) {
+ setAudioPosition((position) + " sec");
+ }
+ },
+ // 呼び出し失敗
+ function(e) {
+ console.log("Error getting pos=" + e);
+ setAudioPosition("Error: " + e);
+ }
+ );
+ }, 1000);
+ }
+ }
+
+ // オーディオ一時停止
+ //
+ function pauseAudio() {
+ if (my_media) {
+ my_media.pause();
+ }
+ }
+
+ // オーディオ停止
+ //
+ function stopAudio() {
+ if (my_media) {
+ my_media.stop();
+ }
+ clearInterval(mediaTimer);
+ mediaTimer = null;
+ }
+
+ // 成功時のコールバック関数
+ //
+ function onSuccess() {
+ console.log("playAudio():Audio Success");
+ }
+
+ // エラー時のコールバック関数
+ //
+ function onError(error) {
+ alert('コード: ' + error.code + '\n' +
+ 'メッセージ: ' + error.message + '\n');
+ }
+
+ // 再生位置をセット
+ //
+ function setAudioPosition(position) {
+ document.getElementById('audio_position').innerHTML = position;
+ }
+
+ </script>
+ </head>
+ <body>
+ <a href="#" class="btn large" onclick="playAudio('http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3');">再生</a>
+ <a href="#" class="btn large" onclick="pauseAudio();">一時停止</a>
+ <a href="#" class="btn large" onclick="stopAudio();">停止</a>
+ <p id="audio_position"></p>
+ </body>
+ </html>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/media/media.stopRecord.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/media/media.stopRecord.md b/docs/ja/1.8.1/cordova/media/media.stopRecord.md
new file mode 100644
index 0000000..f3a9d80
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/media/media.stopRecord.md
@@ -0,0 +1,139 @@
+---
+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.
+---
+
+media.stopRecord
+================
+
+オーディオファイルの録音を停止します。
+
+ media.stopRecord();
+
+
+概要
+-----------
+
+`media.stopRecord` 関数はオーディオファイルの録音を停止させる同期関数です。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iOS
+- Windows Phone 7 (Mango)
+
+使用例
+-------------
+
+ // オーディオの録音
+ //
+ function recordAudio() {
+ var src = "myrecording.mp3";
+ var mediaRec = new Media(src,
+ // 呼び出し成功
+ function() {
+ console.log("recordAudio():Audio Success");
+ },
+
+ // 呼び出し失敗
+ function(err) {
+ console.log("recordAudio():Audio Error: "+ err.code);
+ });
+
+ // オーディオの録音
+ mediaRec.startRecord();
+
+ // 10秒後に録音を停止
+ setTimeout(function() {
+ mediaRec.stopRecord();
+ }, 10000);
+ }
+
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>デバイスプロパティーの使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // オーディオの録音
+ //
+ function recordAudio() {
+ var src = "myrecording.mp3";
+ var mediaRec = new Media(src, onSuccess, onError);
+
+ // オーディオの録音
+ mediaRec.startRecord();
+
+ // 10秒後に録音を停止
+ var recTime = 0;
+ var recInterval = setInterval(function() {
+ recTime = recTime + 1;
+ setAudioPosition(recTime + " sec");
+ if (recTime >= 10) {
+ clearInterval(recInterval);
+ mediaRec.stopRecord();
+ }
+ }, 1000);
+ }
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ recordAudio();
+ }
+
+ // 成功時のコールバック関数
+ //
+ function onSuccess() {
+ console.log("recordAudio():Audio Success");
+ }
+
+ // エラー時のコールバック関数
+ //
+ function onError(error) {
+ alert('コード: ' + error.code + '\n' +
+ 'メッセージ: ' + error.message + '\n');
+ }
+
+ // 再生位置をセット
+ //
+ function setAudioPosition(position) {
+ document.getElementById('audio_position').innerHTML = position;
+ }
+
+ </script>
+ </head>
+ <body>
+ <p id="media">オーディオを録音...</p>
+ <p id="audio_position"></p>
+ </body>
+ </html>
+
+
+
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/notification/notification.alert.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/notification/notification.alert.md b/docs/ja/1.8.1/cordova/notification/notification.alert.md
new file mode 100644
index 0000000..c89ddb4
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/notification/notification.alert.md
@@ -0,0 +1,115 @@
+---
+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.
+---
+
+notification.alert
+==================
+
+通知ダイアログボックスを表示します。
+
+ navigator.notification.alert(message, alertCallback, [title], [buttonName])
+
+- __message:__ ダイアログのメッセージを表します (`String`)
+- __alertCallback:__ 通知ダイアログが確認された後に呼び出されるコールバック関数を表します (`Function`)
+- __title:__ ダイアログのタイトルを表します (`String`) (オプション, デフォルト: "Alert")
+- __buttonName:__ ボタンの名前を表します (`String`) (オプション, デフォルト: "OK")
+
+概要
+-----------
+
+ほとんどの Cordova の実装はネイティブのダイアログボックスを使用しています。一部のプラットフォームのみブラウザの `alert` 関数を使っており、通常これらはカスタマイズが制限されます。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iPhone
+- Windows Phone 7 (Mango)
+- Bada 1.2 & 2.x
+
+使用例
+-------------
+
+ // Android / BlackBerry WebWorks (OS 5.0 以上) / iPhone
+ //
+ function alertDismissed() {
+ // 任意のコード
+ }
+
+ navigator.notification.alert(
+ 'あなたの勝ちです!', // メッセージ
+ alertDismissed, // コールバック関数
+ 'ゲームオーバー', // タイトル
+ '終了' // ボタン名
+ );
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Notification の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ // 処理なし
+ }
+
+ // 通知ダイアログボックスが確認された
+ function alertDismissed() {
+ // 任意のコード
+ }
+
+ // 通知ダイアログを表示
+ //
+ function showAlert() {
+ navigator.notification.alert(
+ 'あなたの勝ちです!', // メッセージ
+ alertDismissed, // コールバック関数
+ 'ゲームオーバー', // タイトル
+ '終了' // ボタン名
+ );
+ }
+
+ </script>
+ </head>
+ <body>
+ <p><a href="#" onclick="showAlert(); return false;">通知を表示</a></p>
+ </body>
+ </html>
+
+Windows Phone 7 に関する注意点
+-------------
+
+- ボタンの名前は無視され、常に 'OK' が使用されます。
+- ビルトインのブラウザ通知ダイアログ機能はないため、もし alert('foo'); とだけ書きたい場合は、 window.alert = navigator.notification.alert; と window.alert に Cordova の notification.alert をアサインできます。
+- 通知と確認の呼び出しはノンブロッキングで、結果は非同期でのみ取得可能です。
+
+Bada 2.xに関する注意点
+---------------
+- 通知は、 Javascript の alert を使用します。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/notification/notification.beep.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/notification/notification.beep.md b/docs/ja/1.8.1/cordova/notification/notification.beep.md
new file mode 100644
index 0000000..d1c886e
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/notification/notification.beep.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.
+---
+
+notification.beep
+=================
+
+デバイスが警告音を鳴らします。
+
+ navigator.notification.beep(times);
+
+- __times:__ 警告音を鳴らす回数を表します (`Number`)
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iPhone
+- Windows Phone 7 (Mango)
+- Bada 1.2 & 2.x
+
+使用例
+-------------
+
+ // 警告音を2回鳴らす
+ navigator.notification.beep(2);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Notification の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ // 処理なし
+ }
+
+ // 通知ダイアログを表示
+ //
+ function showAlert() {
+ navigator.notification.alert(
+ 'あなたの勝ちです!', // メッセージ
+ 'ゲームオーバー', // タイトル
+ '終了' // ボタン名
+ );
+ }
+
+ // 警告音を3回鳴らす
+ //
+ function playBeep() {
+ navigator.notification.beep(3);
+ }
+
+ // 2秒間バイブレーションさせます
+ //
+ function vibrate() {
+ navigator.notification.vibrate(2000);
+ }
+
+ </script>
+ </head>
+ <body>
+ <p><a href="#" onclick="showAlert(); return false;">通知を表示</a></p>
+ <p><a href="#" onclick="playBeep(); return false;">警告音を鳴らす</a></p>
+ <p><a href="#" onclick="vibrate(); return false;">バイブレーション</a></p>
+ </body>
+ </html>
+
+Android に関する注意点
+--------------
+
+- Android では、 "Settings/Sound & Display" パネルで設定されたデフォルトの "Notification ringtone" を鳴らします。
+
+iPhone に関する注意点
+-------------
+
+- 引数の警告音の回数を無視します。
+- iPhone はネイティブの beep API を持っていません。
+- Cordova は media API を使って、オーディオファイルを再生することで警告音を実装しています。
+- ユーザーは適切な警告音のファイルを用意する必要があります。
+- このファイルは30秒未満とし、 www/root に beep.wav として保存してください。
+
+Windows Phone 7 に関する注意点
+-------------
+
+- WP7 の Cordova ライブラリは独自の警告音ファイルを含んでおり、それを使用しています。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/notification/notification.confirm.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/notification/notification.confirm.md b/docs/ja/1.8.1/cordova/notification/notification.confirm.md
new file mode 100755
index 0000000..605c0c0
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/notification/notification.confirm.md
@@ -0,0 +1,133 @@
+---
+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.
+---
+
+notification.confirm
+====================
+
+カスタマイズ可能な確認ダイアログボックスを表示します。
+
+ navigator.notification.confirm(message, confirmCallback, [title], [buttonLabels])
+
+- __message:__ ダイアログのメッセージを表します (`String`)
+- __confirmCallback:__ 押されたボタンのインデックス (1, 2, または3) とともに呼び出されるコールバック関数を表します (`Function`)
+- __title:__ ダイアログのタイトルを表します (`String`) (オプション, デフォルト: "Confirm")
+- __buttonLabels:__ ボタンのラベルを設定するためのカンマ区切りの文字列を表します (String) (オプション, デフォルト: "OK,Cancel")
+
+概要
+-----------
+
+`notification.confirm` 関数は、ブラウザの confirm 関数よりも広いカスタマイズ性を持ったネイティブダイアログボックスを表示する関数です。
+
+confirmCallback
+---------------
+
+`confirmCallback` はユーザーが確認ダイアログのいずれかのボタンが押したときに呼び出されます。
+
+コールバックは、押されたボタンを表すインデックス `buttonIndex` (`Number`) を引数にとります。このインデックスは、 `1`, `2`, `3` のように1始まりであることに注意してください。
+
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iPhone
+- Windows Phone 7 (Mango)
+- Bada 1.2 & 2.x
+
+使用例
+-------------
+
+ // 確認ダイアログの表示プロセスの開始
+ function onConfirm(buttonIndex) {
+ alert('選択されたボタン ' + buttonIndex);
+ }
+
+ // カスタム確認ダイアログを表示
+ //
+ function showConfirm() {
+ navigator.notification.confirm(
+ 'あなたの勝ちです!', // メッセージ
+ onConfirm, // 選択されたボタン情報とともに呼ばれるコールバック関数
+ 'ゲームオーバー', // タイトル
+ 'リスタート,終了' // ボタン
+ );
+ }
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Notification の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ // 処理なし
+ }
+
+ // 確認ダイアログの表示プロセスの開始
+ function onConfirm(buttonIndex) {
+ alert('選択されたボタン ' + buttonIndex);
+ }
+
+ // カスタム確認ダイアログを表示
+ //
+ function showConfirm() {
+ navigator.notification.confirm(
+ 'あなたの勝ちです!', // メッセージ
+ onConfirm, // 選択されたボタン情報とともに呼ばれるコールバック関数
+ 'ゲームオーバー', // タイトル
+ 'リスタート,終了' // ボタン
+ );
+ }
+
+ </script>
+ </head>
+ <body>
+ <p><a href="#" onclick="showConfirm(); return false;">確認ダイアログを表示</a></p>
+ </body>
+ </html>
+
+Windows Phone 7 に関する注意点
+----------------------
+
+- ボタンの名前は無視され、常に `'OK|Cancel'` が使用されます。
+- `window.confirm` に対応するビルトインのブラウザ確認ダイアログ機能はありません。
+ - `window.confirm = navigator.notification.confirm;` と指定することによって、 `window.confirm` にこの関数をアサインできます。
+- 通知 (`alert`) と確認 (`confirm`) の呼び出しはノンブロッキングで、結果は非同期でのみ取得可能です。
+
+Bada 2.x に関する注意点
+---------------
+
+- 確認 (`confirm`) は、ブラウザのビルトイン `alert` 関数を使用します。
+
+Bada 1.2 に関する注意点
+---------------
+
+- ボタンの名前は無視され、常に `'OK|Cancel'` が使用されます。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/notification/notification.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/notification/notification.md b/docs/ja/1.8.1/cordova/notification/notification.md
new file mode 100644
index 0000000..cd2f869
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/notification/notification.md
@@ -0,0 +1,80 @@
+---
+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.
+---
+
+Notification
+============
+
+> 視覚、聴覚、触覚を用いたデバイス通知機能を提供します。
+
+メソッド
+-------
+
+- notification.alert
+- notification.confirm
+- notification.beep
+- notification.vibrate
+
+パーミッション
+-----------
+
+### Android
+
+#### app/res/xml/plugins.xml
+
+ <plugin name="Notification" value="org.apache.cordova.Notification"/>
+
+#### app/AndroidManifest.xml
+
+ <uses-permission android:name="android.permission.VIBRATE" />
+
+### Bada
+
+#### manifest.xml
+
+ <Privilege>
+ <Name>SYSTEM_SERVICE</Name>
+ </Privilege>
+
+### BlackBerry WebWorks
+
+#### www/plugins.xml
+
+ <plugin name="Notification" value="org.apache.cordova.notification.Notification" />
+
+#### www/config.xml
+
+ <feature id="blackberry.ui.dialog" />
+
+### iOS
+
+#### App/Supporting Files/Cordova.plist
+
+ <key>Plugins</key>
+ <dict>
+ <key>Notification</key>
+ <string>CDVNotification</string>
+ </dict>
+
+### webOS
+
+ パーミッションの設定は必要ありません。
+
+### Windows Phone
+
+ パーミッションの設定は必要ありません。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/notification/notification.vibrate.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/notification/notification.vibrate.md b/docs/ja/1.8.1/cordova/notification/notification.vibrate.md
new file mode 100644
index 0000000..f0d5ae5
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/notification/notification.vibrate.md
@@ -0,0 +1,103 @@
+---
+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.
+---
+
+notification.vibrate
+====================
+
+指定された時間デバイスをバイブレーションさせます。
+
+ navigator.notification.vibrate(milliseconds)
+
+- __time:__ バイブレーションの長さをミリ秒単位で表します。 1000ミリ秒は1秒です (`Number`)
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iPhone
+- Windows Phone 7
+- Bada 1.2 & 2.x
+
+使用例
+-------------
+
+ // 2.5秒間バイブレーションさせます
+ //
+ navigator.notification.vibrate(2500);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Notification の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ // 処理なし
+ }
+
+ // 通知ダイアログを表示
+ //
+ function showAlert() {
+ navigator.notification.alert(
+ 'あなたの勝ちです!', // メッセージ
+ 'ゲームオーバー', // タイトル
+ '終了' // ボタン名
+ );
+ }
+
+ // 警告音を3回鳴らす
+ //
+ function playBeep() {
+ navigator.notification.beep(3);
+ }
+
+ // 2秒間バイブレーションさせます
+ //
+ function vibrate() {
+ navigator.notification.vibrate(2000);
+ }
+
+ </script>
+ </head>
+ <body>
+ <p><a href="#" onclick="showAlert(); return false;">通知を表示</a></p>
+ <p><a href="#" onclick="playBeep(); return false;">警告音を鳴らす</a></p>
+ <p><a href="#" onclick="vibrate(); return false;">バイブレーション</a></p>
+ </body>
+ </html>
+
+iPhone に関する注意点
+-------------
+
+- __time:__ 引数のバイブレーションの長さを無視し、あらかじめ定められた時間バイブレーションします。
+
+ navigator.notification.vibrate();
+ navigator.notification.vibrate(2500); // 2500は無視されます
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/database/database.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/database/database.md b/docs/ja/1.8.1/cordova/storage/database/database.md
new file mode 100644
index 0000000..5873321
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/database/database.md
@@ -0,0 +1,124 @@
+---
+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.
+---
+
+Database
+=======
+
+データベースの操作に必要なメソッドを提供します。
+
+メソッド
+-------
+
+- __transaction__: データベースのトランザクションを実行します
+- __changeVersion__: スクリプトがデータベースのバージョンを自動的に確認し、スキーマのアップデートと同時にバージョンを変更します
+
+詳細
+-------
+
+Database オブジェクトは `window.openDatabase()` メソッド呼び出し時に返されるオブジェクトです。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 6.0 以上)
+- iPhone
+- webOS
+
+Transaction の例
+------------------
+ function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+ }
+
+ function errorCB(err) {
+ alert("SQL実行中にエラーが発生しました: "+err.code);
+ }
+
+ function successCB() {
+ alert("成功しました。");
+ }
+
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(populateDB, errorCB, successCB);
+
+Change Version の例
+-------------------
+
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.changeVersion("1.0", "1.1");
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Storage の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(populateDB, errorCB, successCB);
+ }
+
+ // データベースを操作
+ //
+ function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+ }
+
+ // トランザクション失敗時のコールバック
+ //
+ function errorCB(tx, err) {
+ alert("SQL実行中にエラーが発生しました: "+err);
+ }
+
+ // トランザクション成功時のコールバック
+ //
+ function successCB() {
+ alert("成功しました。");
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>Example</h1>
+ <p>Database</p>
+ </body>
+ </html>
+
+Android 1.X に関する注意点
+------------------
+
+- __changeVersion:__ このメソッドは Android 1.X デバイスではサポートされていません。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/localstorage/localstorage.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/localstorage/localstorage.md b/docs/ja/1.8.1/cordova/storage/localstorage/localstorage.md
new file mode 100644
index 0000000..4c7c975
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/localstorage/localstorage.md
@@ -0,0 +1,119 @@
+---
+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.
+---
+
+localStorage
+===============
+
+W3C Storage interface (http://dev.w3.org/html5/webstorage/#the-localstorage-attribute) へのアクセスを提供します。
+
+ var storage = window.localStorage;
+
+メソッド
+-------
+
+- __key__: キーの名前を返します
+- __getItem__: キーによって指定されたアイテムを返します
+- __setItem__: キーによって指定されたアイテムを保存します
+- __removeItem__: キーによって指定されたアイテムを削除します
+- __clear__: 全てのキーとアイテムを削除します
+
+詳細
+-----------
+
+localStorage は W3C Storage interface へのインターフェースを提供します。キーと値のペアでデータを管理します。
+
+注意: window.sessionStorage は同じインターフェースを提供しますが、アプリが起動するたびにこの値はクリアされます。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 6.0 以上)
+- iPhone
+- Windows Phone 7
+
+Key の例
+-------------
+
+ var keyName = window.localStorage.key(0);
+
+Set Item の例
+-------------
+
+ window.localStorage.setItem("key", "value");
+
+Get Item の例
+-------------
+
+ var value = window.localStorage.getItem("key");
+ // value の値は "value"
+
+Remove Item の例
+-------------
+
+ window.localStorage.removeItem("key");
+
+Clear の例
+-------------
+
+ window.localStorage.clear();
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Storage の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ window.localStorage.setItem("key", "value");
+ var keyname = window.localStorage.key(i);
+ // key の値は "key"
+ var value = window.localStorage.getItem("key");
+ // value の値は "value"
+ window.localStorage.removeItem("key");
+ window.localStorage.setItem("key2", "value2");
+ window.localStorage.clear();
+ // localStorage は空
+ }
+
+
+ </script>
+ </head>
+ <body>
+ <h1>使用例</h1>
+ <p>localStorage のサンプル</p>
+ </body>
+ </html>
+
+
+Windows Phone 7 に関する注意点
+-------------
+
+- ドット表記は Windows Phone では使用できません。 window.localStorage.setItem/getItem メソッドを使用して、 W3C の仕様で定義されている window.localStorage.someKey = 'someValue'; の方法は使用しないでください。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/parameters/display_name.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/parameters/display_name.md b/docs/ja/1.8.1/cordova/storage/parameters/display_name.md
new file mode 100644
index 0000000..f4a780f
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/parameters/display_name.md
@@ -0,0 +1,23 @@
+---
+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.
+---
+
+database_displayname
+==================
+
+実際に表示されるデータベース名です。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/parameters/name.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/parameters/name.md b/docs/ja/1.8.1/cordova/storage/parameters/name.md
new file mode 100644
index 0000000..069bcc2
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/parameters/name.md
@@ -0,0 +1,23 @@
+---
+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.
+---
+
+database_name
+============
+
+データベース名です。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/parameters/size.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/parameters/size.md b/docs/ja/1.8.1/cordova/storage/parameters/size.md
new file mode 100644
index 0000000..7e726c3
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/parameters/size.md
@@ -0,0 +1,23 @@
+---
+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.
+---
+
+database_size
+==============
+
+データベースのサイズです。バイト単位で表されます。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/parameters/version.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/parameters/version.md b/docs/ja/1.8.1/cordova/storage/parameters/version.md
new file mode 100644
index 0000000..a24b4e1
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/parameters/version.md
@@ -0,0 +1,23 @@
+---
+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.
+---
+
+database_version
+=============
+
+データベースのバージョンです。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/sqlerror/sqlerror.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/sqlerror/sqlerror.md b/docs/ja/1.8.1/cordova/storage/sqlerror/sqlerror.md
new file mode 100644
index 0000000..a55a362
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/sqlerror/sqlerror.md
@@ -0,0 +1,47 @@
+---
+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.
+---
+
+SQLError
+========
+
+エラー発生時に投げられる `SQLError` オブジェクトです。
+
+プロパティー
+----------
+
+- __code:__ 事前に定義された以下のエラーコードのうちの1つを表します
+- __message:__ エラーの詳細メッセージを表します
+
+定数
+---------
+
+- `SQLError.UNKNOWN_ERR`
+- `SQLError.DATABASE_ERR
+- `SQLError.VERSION_ERR`
+- `SQLError.TOO_LARGE_ERR`
+- `SQLError.QUOTA_ERR`
+- `SQLError.SYNTAX_ERR`
+- `SQLError.CONSTRAINT_ERR`
+- `SQLError.TIMEOUT_ERR`
+
+概要
+-----------
+
+データベース操作時のエラーに対して投げられる `SQLError` オブジェクトです。
+
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/sqlresultset/sqlresultset.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/sqlresultset/sqlresultset.md b/docs/ja/1.8.1/cordova/storage/sqlresultset/sqlresultset.md
new file mode 100644
index 0000000..4682deb
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/sqlresultset/sqlresultset.md
@@ -0,0 +1,133 @@
+---
+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.
+---
+
+SQLResultSet
+=======
+
+SQLTransaction の executeSql メソッドが呼ばれるとき、 SQLResultSet とともにコールバック関数が呼び出されます。
+
+プロパティー
+-------
+
+- __insertId__: SQLResultSet オブジェクトの SQL 文によりデータベースに挿入された行の行番号を表します
+- __rowsAffected__: SQL 文によって変更された行数を表します。もし SQL 文がデータベースに変更を加えなかった場合は0を返します
+- __rows__: 結果を表す SQLResultSetRowList オブジェクトです。行が返されなかった場合、オブジェクトは空になります
+
+詳細
+-------
+
+SQLTransaction の executeSql メソッドが呼び出されるとき、 SQLResultSet オブジェクトとともにコールバック関数が呼び出されます。この結果オブジェクトは3つのプロパティーを持っています。1つめは `insertId` で、 SQL の insert 文が成功した行の番号を返します。もし SQL 文が insert 文では無かった場合、 `insertId` はセットされません。2つめの `rowsAffected` は SQL の select 文に対しては常に0を返します。 insert もしくは update 文に対しては、修正された行数を返します。最後の SQLResultSetList は、 SQL の select 文によって返されたデータを保持します。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 6.0 以上)
+- iPhone
+- webOS
+
+Execute SQL の例
+------------------
+
+ function queryDB(tx) {
+ tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
+ }
+
+ function querySuccess(tx, results) {
+ console.log("検索された行 = " + results.rows.length);
+ // select 文のため、 rowsAffected は0となり、 true となります
+ if (!results.rowsAffected) {
+ console.log('どの行も変更されていません。');
+ return false;
+ }
+ // insert 文では、このプロパティーは挿入された最終行を表します
+ console.log("挿入された行 = " + results.insertId);
+ }
+
+ function errorCB(err) {
+ alert("SQL 実行中にエラーが発生しました: "+err.code);
+ }
+
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(queryDB, errorCB);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Storage の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // データベースを操作
+ //
+ function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+ }
+
+ // データベースに問い合わせ
+ //
+ function queryDB(tx) {
+ tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
+ }
+
+ // 問い合わせ成功時のコールバック
+ //
+ function querySuccess(tx, results) {
+ console.log("検索された行 = " + results.rows.length);
+ // select 文のため、 rowsAffected は0となり、 true となります
+ if (!results.rowsAffected) {
+ console.log('どの行も変更されていません。');
+ return false;
+ }
+ // insert 文では、このプロパティーは挿入された最終行を表します
+ console.log("挿入された行 = " + results.insertId);
+ }
+
+ // トランザクション失敗時のコールバック
+ //
+ function successCB() {
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(queryDB, errorCB);
+ }
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(populateDB, errorCB, successCB);
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>使用例</h1>
+ <p>データベース</p>
+ </body>
+ </html>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/sqlresultsetlist/sqlresultsetlist.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/sqlresultsetlist/sqlresultsetlist.md b/docs/ja/1.8.1/cordova/storage/sqlresultsetlist/sqlresultsetlist.md
new file mode 100644
index 0000000..d44d639
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/sqlresultsetlist/sqlresultsetlist.md
@@ -0,0 +1,136 @@
+---
+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.
+---
+
+SQLResultSetList
+=======
+
+SQL 問い合わせから返される行を保持した SQLResultSet のプロパティーのうちの1つです。
+
+プロパティー
+-------
+
+- __length__: SQL 問い合わせによって返される行の行数を表します
+
+メソッド
+-------
+
+- __item__: 指定された行を JavaScript オブジェクトとして返します
+
+詳細
+-------
+
+SQLResultSetList は SQL の select 文によって返されるデータを保持しています。このオブジェクトは select 文によって返された行の数を表す length プロパティーを持っています。ある行のデータを取得するためには、行番号を指定した `item` メソッドを使用します。この item メソッドは JavaScript オブジェクトを返します。この JavaScript オブジェクトは select 文が実行されたデータベースのカラムをプロパティーとして持っています。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 6.0 以上)
+- iPhone
+- webOS
+
+Execute SQL の例
+------------------
+
+ function queryDB(tx) {
+ tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
+ }
+
+ function querySuccess(tx, results) {
+ var len = results.rows.length;
+ console.log("DEMO table: " + len + " 行見つかりました。");
+ for (var i=0; i<len; i++){
+ console.log("行 = " + i + " ID = " + results.rows.item(i).id + " Data = " + results.rows.item(i).data);
+ }
+ }
+
+ function errorCB(err) {
+ alert("SQL 実行中にエラーが発生しました: "+err.code);
+ }
+
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(queryDB, errorCB);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Storage の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // データベースを操作
+ //
+ function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+ }
+
+ // データベースに問い合わせ
+ //
+ function queryDB(tx) {
+ tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
+ }
+
+ // 問い合わせ成功時のコールバック
+ //
+ function querySuccess(tx, results) {
+ var len = results.rows.length;
+ console.log("DEMO table: " + len + " 行見つかりました。");
+ for (var i=0; i<len; i++){
+ console.log("行 = " + i + " ID = " + results.rows.item(i).id + " Data = " + results.rows.item(i).data);
+ }
+ }
+
+ // トランザクション失敗時のコールバック
+ //
+ function errorCB(err) {
+ console.log("SQL 実行中にエラーが発生しました: "+err.code);
+ }
+
+ // トランザクション成功時のコールバック
+ //
+ function successCB() {
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(queryDB, errorCB);
+ }
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(populateDB, errorCB, successCB);
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>使用例</h1>
+ <p>データベース</p>
+ </body>
+ </html>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/sqltransaction/sqltransaction.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/sqltransaction/sqltransaction.md b/docs/ja/1.8.1/cordova/storage/sqltransaction/sqltransaction.md
new file mode 100644
index 0000000..4d070eb
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/sqltransaction/sqltransaction.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.
+---
+
+SQLTransaction
+=======
+
+データベースに対して SQL を実行するためのメソッドを提供します。
+
+メソッド
+-------
+
+- __executeSql__: SQL 文を実行します
+
+詳細
+-------
+
+Database オブジェクトの transaction メソッドを呼ぶとき、それに対応するコールバック関数が SQLTransaction オブジェクトと一緒に呼び出されます。 executeSql メソッドを複数回使用することで、データベーストランザクションを作成できます。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 6.0 以上)
+- iPhone
+- webOS
+
+Execute SQL の例
+------------------
+
+ function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+ }
+
+ function errorCB(err) {
+ alert("SQL 実行中にエラーが発生しました: "+err);
+ }
+
+ function successCB() {
+ alert("成功しました。");
+ }
+
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(populateDB, errorCB, successCB);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Storage の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
+ db.transaction(populateDB, errorCB, successCB);
+ }
+
+ // データベースを操作
+ //
+ function populateDB(tx) {
+ tx.executeSql('DROP TABLE IF EXISTS DEMO');
+ tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
+ tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
+ }
+
+ // トランザクション失敗時のコールバック
+ //
+ function errorCB(err) {
+ alert("SQL 実行中にエラーが発生しました: "+err);
+ }
+
+ // トランザクション成功時のコールバック
+ //
+ function successCB() {
+ alert("成功しました。");
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>使用例</h1>
+ <p>SQLトランザクション</p>
+ </body>
+ </html>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/storage.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/storage.md b/docs/ja/1.8.1/cordova/storage/storage.md
new file mode 100644
index 0000000..5b03215
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/storage.md
@@ -0,0 +1,79 @@
+---
+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.
+---
+
+Storage
+==========
+
+> デバイスのストレージにアクセスする機能を提供します。
+
+この API は [W3C Web SQL Database 仕様書](http://dev.w3.org/html5/webdatabase/) と [W3C Web Storage API 仕様書](http://dev.w3.org/html5/webstorage/) をベースとしています。いくつかのデバイスではすでにこの機能の実装を提供しています。これらについては、 Cordova の実装ではなくビルトインのサポートが実行されます。ストレージのサポートがされてないデバイスについては、 Cordova の実装によって W3C の仕様に沿った機能が提供されます。
+
+メソッド
+-------
+
+- openDatabase
+
+引数
+---------
+
+- database_name
+- database_version
+- database_displayname
+- database_size
+
+オブジェクト
+-------
+
+- Database
+- SQLTransaction
+- SQLResultSet
+- SQLResultSetList
+- SQLError
+- localStorage
+
+パーミッション
+-----------
+
+### Android
+
+#### app/res/xml/plugins.xml
+
+ <plugin name="Storage" value="org.apache.cordova.Storage" />
+
+### Bada
+
+ パーミッションの設定は必要ありません。
+
+### BlackBerry WebWorks
+
+#### www/config.xml
+
+ <feature id="blackberry.widgetcache" required="true" version="1.0.0.0" />
+
+### iOS
+
+ パーミッションの設定は必要ありません。
+
+### webOS
+
+ パーミッションの設定は必要ありません。
+
+### Windows Phone
+
+ パーミッションの設定は必要ありません。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/cordova/storage/storage.opendatabase.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/cordova/storage/storage.opendatabase.md b/docs/ja/1.8.1/cordova/storage/storage.opendatabase.md
new file mode 100644
index 0000000..2dd4d43
--- /dev/null
+++ b/docs/ja/1.8.1/cordova/storage/storage.opendatabase.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.
+---
+
+openDatabase
+===============
+
+Database オブジェクトを新規作成します。
+
+ var dbShell = window.openDatabase(database_name, database_version, database_displayname, database_size);
+
+概要
+-----------
+
+window.openDatabase メソッドは新しい Database オブジェクトを返します。
+
+このメソッドは SQLite のデータベースを新規作成し、 Database オブジェクトを返します。 Database オブジェクトは、データを操作するために使います。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 6.0 以上)
+- iPhone
+- webOS
+
+使用例
+-------------
+
+ var db = window.openDatabase("test", "1.0", "Test DB", 1000000);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Storage の使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ var db = window.openDatabase("test", "1.0", "Test DB", 1000000);
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>使用例</h1>
+ <p>データベースを開く</p>
+ </body>
+ </html>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/guide/getting-started/android/index.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/guide/getting-started/android/index.md b/docs/ja/1.8.1/guide/getting-started/android/index.md
new file mode 100644
index 0000000..f435867
--- /dev/null
+++ b/docs/ja/1.8.1/guide/getting-started/android/index.md
@@ -0,0 +1,129 @@
+---
+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.
+---
+
+Getting Started with Android
+============================
+
+このガイドは、 Cordova のための開発環境セットアップ方法、またシンプルなアプリの動かし方を解説します。 Cordova は以前は PhoneGap と呼ばれていたため、いくつかのサイトは PhoneGap という名前をまだ使用しています。
+
+
+1. 必要なもの
+---------------
+
+- Eclipse 3.4以上
+
+
+2. SDK と Cordova のインストール
+------------------------
+
+- [Eclipse Classic](http://www.eclipse.org/downloads/) のダウンロードとインストール
+- [Android SDK](http://developer.android.com/sdk/index.html) のダウンロードとインストール
+- [ADT Plugin](http://developer.android.com/sdk/eclipse-adt.html#installing) のダウンロードとインストール
+- [Cordova](http://phonegap.com/download) の最新版をダウンロードし解凍します。これから Android ディレクトリと一緒に作業を進めます。
+
+ 3. 新規プロジェクトの作成
+---------------------
+
+- Eclipse を起動し、メニューから **ファイル新規 > Android Project** を選択します。 **New Android Project** ウィザードの3つの画面を、以下のとおり設定します。
+
+ ![](img/guide/getting-started/android/AndroidFlow.png)
+
+- 作成したプロジェクトのルートディレクトリに、以下の2つの新しいディレクトリを作成します:
+ - **/libs**
+ - **assets/www**
+- ダウンロードした Cordova から **cordova-1.8.1.js** を **assets/www** にコピーしてください。
+- ダウンロードした Cordova から **cordova-1.8.1.jar** を **/libs** にコピーしてください。
+- ダウンロードした Cordova から **xml** フォルダーを **/res** にコピーしてください。
+
+- **cordova-1.8.1.jar** がプロジェクトのビルドパスに追加されていることを確認してください。 /libs フォルダーを右クリックし、 **ビルド・パス > ビルド・パスの構成** を選択します。ライブラリータブで、 **cordova-1.8.1.jar** をプロジェクトに追加します。もしうまくいかない場合は、 F5 キーを押してプロジェクトをリフレッシュする必要があるかもしれません。
+
+ ![](img/guide/getting-started/android/buildPath.jpg)
+
+- 作成したプロジェクトの **src** フォルダーにあるメインの Java ファイルを編集します:
+ - **import org.apache.cordova.*;** を追加
+ - クラスの継承元を **Activity** から **DroidGap** に変更
+ - **setContentView()** の行を **super.loadUrl("file:///android_asset/www/index.html");** に置き換え
+
+ ![](img/guide/getting-started/android/javaSrc.jpg)
+
+- AndroidManifest.xml を右クリックし、 **アプリケーションから開く > XML エディター** を選択します。
+- 以下のコードを、 **<uses-sdk.../>** と **<application.../>** タグの間に貼り付けてください。
+
+ <supports-screens
+ android:largeScreens="true"
+ android:normalScreens="true"
+ android:smallScreens="true"
+ android:resizeable="true"
+ android:anyDensity="true" />
+ <uses-permission android:name="android.permission.VIBRATE" />
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
+ <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
+ <uses-permission android:name="android.permission.READ_PHONE_STATE" />
+ <uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.RECEIVE_SMS" />
+ <uses-permission android:name="android.permission.RECORD_AUDIO" />
+ <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
+ <uses-permission android:name="android.permission.READ_CONTACTS" />
+ <uses-permission android:name="android.permission.WRITE_CONTACTS" />
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+ <uses-permission android:name="android.permission.GET_ACCOUNTS" />
+ <uses-permission android:name="android.permission.BROADCAST_STICKY" />
+
+- 画面の回転をサポートするために、以下を **<activity>** タグの中に貼り付けてください。
+
+ android:configChanges="orientation|keyboardHidden|screenSize"
+
+- AndroidManifest.xml は以下のようになります。
+
+ ![](img/guide/getting-started/android/manifest.jpg)
+
+4. Hello World の作成
+--------------
+
+- **index.html** という名前のファイルを **assets/www** ディレクトリに新規作成します。 以下のコードを貼り付けます:
+
+ <!DOCTYPE HTML>
+ <html>
+ <head>
+ <title>Cordova</title>
+ <script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
+ </head>
+ <body>
+ <h1>Hello World</h1>
+ </body>
+ </html>
+
+5A. シミュレーターへのデプロイ
+-----------------------
+
+- プロジェクトを右クリックし、次を **実行 > Android Application** を選択
+- 適切な AVD を選択。 もしない場合は、作成する必要があります
+
+
+5B. デバイスへのデプロイ
+--------------------
+
+- デバイスの設定で USB デバッグが有効になっていること、またコンピュータに接続されていることを確認 (**設定 > アプリケーション > 開発**)
+- プロジェクトを右クリックし、次を **実行 > Android Application** を選択
+
+
+終了
+-----
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e7168dd7/docs/ja/1.8.1/guide/getting-started/bada/index.md
----------------------------------------------------------------------
diff --git a/docs/ja/1.8.1/guide/getting-started/bada/index.md b/docs/ja/1.8.1/guide/getting-started/bada/index.md
new file mode 100644
index 0000000..23743b3
--- /dev/null
+++ b/docs/ja/1.8.1/guide/getting-started/bada/index.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.
+---
+
+Getting Started with Bada
+=========================
+
+このガイドは、 Cordova のための開発環境セットアップ方法、またシンプルなアプリの動かし方を解説します。 Cordova は以前は PhoneGap と呼ばれていたため、いくつかのサイトは PhoneGap という名前をまだ使用しています。
+
+1. 必要なもの
+---------------
+
+- Windows
+- cordova-bada を使うためには、 bada 1.2 SDK が必要です (すでに Samsung のウェブサイトでは入手できません)
+
+2. SDK と Cordova のインストール
+-------------------------
+
+- [Bada SDK](http://developer.bada.com) のダウンロードとインストール (Windows のみ)
+- [Cordova](http://phonegap.com/download) の最新版をダウンロードし解凍します。 これから bada ディレクトリと一緒に作業を進めます。
+
+
+3. 新規プロジェクトの作成
+--------------------
+- Bada IDE で、 File -> Import project -> Bada C++ / Flash Project を選択します
+ - 注意: Bada 1.2 では "Bada Application Project" を選択します
+
+ ![](img/guide/getting-started/bada/import_bada_project.png)
+
+- "Select root directory" がチェックされていることを確認し、 Browse ボタンをクリックします
+- Cordova bada プロジェクトフォルダー (1.2にはbadaフォルダー、2.xにはbada-wacフォルダー) を選択します "Copy projects into workspace" がチェックされていることを確認します
+
+ ![](img/guide/getting-started/bada/import_bada_project.png)
+
+- "Finish" をクリックします
+
+ ![](img/guide/getting-started/bada/bada_project.png)
+
+4. Hello World の作成
+--------------
+
+**Bada 2.x**: HTML/CSS/Javascript のコードは Res/ フォルダー直下にあります。 以下の2行が index.html の <head> に含まれていることを確認します。
+
+
+ <link href="osp://webapp/css/style.css" rel="stylesheet" type="text/css" />
+ <script type="text/javascript" src="osp://webapp/js/webapp_core.js"></script>
+
+**Bada 1.2**: HTML/CSS/Javascript のコードは Res/ フォルダー直下にあります。 以下の行が index.html に含まれていることを確認します。
+
+ <script type="text/javascript" src="cordova/cordova.js"> </script>
+
+5A. シミュレーターへのデプロイ
+-----------------------
+
+- **Bada 2.x**: プロジェクトで右クリックをし、 Run As -> bada Emulator Web Application を選択します
+
+ ![](img/guide/getting-started/bada/bada_1_run.png)
+
+- **Bada 1.2**: プロジェクトで右クリックをし、 Build configurations -&g; Set Active -> Simulator-Debugを選択します
+
+ ![](img/guide/getting-started/bada/bada_set_target.png)
+
+- プロジェクトで右クリックをし、 Run As -> bada Simulator Application を選択します。 アプリを更新するたびに、エミュレーターを閉じる必要があります。
+
+5B. デバイスへのデプロイ
+--------------------
+
+- デバイスが適切に設定されていることを確認します
+
+**Bada 2.x**: プロジェクトで右クリックをし、 Run As -> bada Target Web Application を選択します
+
+**Bada 1.2**:
+- プロジェクトで右クリックをし、 Build configurations -&g; Set Active -> Target-Debugを選択します
+- プロジェクトで右クリックをし、 Run As -> bada Target Application を選択します アプリを更新するたびに、エミュレーターを閉じる必要があります。
+
+
+終了
+-----