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/01/02 23:25:39 UTC
[9/16] docs commit: Copy docs/jp/2.0.0 to docs/jp/2.1.0
Copy docs/jp/2.0.0 to docs/jp/2.1.0
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/4272ca34
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/4272ca34
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/4272ca34
Branch: refs/heads/master
Commit: 4272ca34407061f63cbdcd0eb69b1aa1aee2c780
Parents: 5bc8f5f
Author: Keiko Oda <ke...@gmail.com>
Authored: Sun Dec 30 23:46:25 2012 -0800
Committer: Keiko Oda <ke...@gmail.com>
Committed: Sun Dec 30 23:46:25 2012 -0800
----------------------------------------------------------------------
docs/jp/2.1.0/config.json | 171 +++++++
.../accelerometer/acceleration/acceleration.md | 105 +++++
.../accelerometer/accelerometer.clearWatch.md | 112 +++++
.../accelerometer.getCurrentAcceleration.md | 108 +++++
.../2.1.0/cordova/accelerometer/accelerometer.md | 90 ++++
.../accelerometer.watchAcceleration.md | 137 ++++++
.../accelerometer/parameters/accelerometerError.md | 27 ++
.../parameters/accelerometerOptions.md | 28 ++
.../parameters/accelerometerSuccess.md | 42 ++
docs/jp/2.1.0/cordova/camera/camera.cleanup.md | 50 ++
docs/jp/2.1.0/cordova/camera/camera.getPicture.md | 207 +++++++++
docs/jp/2.1.0/cordova/camera/camera.md | 93 ++++
.../camera/parameter/CameraPopoverOptions.md | 71 +++
.../2.1.0/cordova/camera/parameter/cameraError.md | 32 ++
.../cordova/camera/parameter/cameraOptions.md | 121 +++++
.../cordova/camera/parameter/cameraSuccess.md | 42 ++
.../jp/2.1.0/cordova/compass/compass.clearWatch.md | 110 +++++
.../cordova/compass/compass.clearWatchFilter.md | 23 +
.../cordova/compass/compass.getCurrentHeading.md | 95 ++++
docs/jp/2.1.0/cordova/compass/compass.md | 81 ++++
.../2.1.0/cordova/compass/compass.watchHeading.md | 131 ++++++
.../cordova/compass/compass.watchHeadingFilter.md | 23 +
.../cordova/compass/compassError/compassError.md | 40 ++
.../cordova/compass/parameters/compassError.md | 30 ++
.../cordova/compass/parameters/compassHeading.md | 47 ++
.../cordova/compass/parameters/compassOptions.md | 45 ++
.../cordova/compass/parameters/compassSuccess.md | 40 ++
docs/jp/2.1.0/cordova/connection/connection.md | 92 ++++
.../jp/2.1.0/cordova/connection/connection.type.md | 125 +++++
docs/jp/2.1.0/cordova/contacts/Contact/contact.md | 231 ++++++++++
.../contacts/ContactAddress/contactaddress.md | 172 +++++++
.../cordova/contacts/ContactError/contactError.md | 45 ++
.../cordova/contacts/ContactField/contactfield.md | 146 ++++++
.../ContactFindOptions/contactfindoptions.md | 116 +++++
.../cordova/contacts/ContactName/contactname.md | 145 ++++++
.../ContactOrganization/contactorganization.md | 153 +++++++
docs/jp/2.1.0/cordova/contacts/contacts.create.md | 77 ++++
docs/jp/2.1.0/cordova/contacts/contacts.find.md | 116 +++++
docs/jp/2.1.0/cordova/contacts/contacts.md | 108 +++++
.../cordova/contacts/parameters/contactError.md | 27 ++
.../cordova/contacts/parameters/contactFields.md | 25 +
.../contacts/parameters/contactFindOptions.md | 35 ++
.../cordova/contacts/parameters/contactSuccess.md | 41 ++
docs/jp/2.1.0/cordova/device/device.cordova.md | 79 ++++
docs/jp/2.1.0/cordova/device/device.md | 95 ++++
docs/jp/2.1.0/cordova/device/device.name.md | 108 +++++
docs/jp/2.1.0/cordova/device/device.platform.md | 95 ++++
docs/jp/2.1.0/cordova/device/device.uuid.md | 103 +++++
docs/jp/2.1.0/cordova/device/device.version.md | 84 ++++
docs/jp/2.1.0/cordova/events/events.backbutton.md | 87 ++++
.../2.1.0/cordova/events/events.batterycritical.md | 93 ++++
docs/jp/2.1.0/cordova/events/events.batterylow.md | 93 ++++
.../2.1.0/cordova/events/events.batterystatus.md | 101 +++++
docs/jp/2.1.0/cordova/events/events.deviceready.md | 87 ++++
.../2.1.0/cordova/events/events.endcallbutton.md | 86 ++++
docs/jp/2.1.0/cordova/events/events.md | 93 ++++
docs/jp/2.1.0/cordova/events/events.menubutton.md | 87 ++++
docs/jp/2.1.0/cordova/events/events.offline.md | 95 ++++
docs/jp/2.1.0/cordova/events/events.online.md | 95 ++++
docs/jp/2.1.0/cordova/events/events.pause.md | 97 ++++
docs/jp/2.1.0/cordova/events/events.resume.md | 97 ++++
.../jp/2.1.0/cordova/events/events.searchbutton.md | 86 ++++
.../2.1.0/cordova/events/events.startcallbutton.md | 86 ++++
.../cordova/events/events.volumedownbutton.md | 86 ++++
.../2.1.0/cordova/events/events.volumeupbutton.md | 86 ++++
.../cordova/file/directoryentry/directoryentry.md | 350 +++++++++++++++
.../file/directoryreader/directoryreader.md | 66 +++
docs/jp/2.1.0/cordova/file/file.md | 96 ++++
docs/jp/2.1.0/cordova/file/fileentry/fileentry.md | 293 ++++++++++++
docs/jp/2.1.0/cordova/file/fileerror/fileerror.md | 49 ++
docs/jp/2.1.0/cordova/file/fileobj/fileobj.md | 45 ++
.../jp/2.1.0/cordova/file/filereader/filereader.md | 196 ++++++++
.../jp/2.1.0/cordova/file/filesystem/filesystem.md | 91 ++++
.../cordova/file/filetransfer/filetransfer.md | 217 +++++++++
.../file/filetransfererror/filetransfererror.md | 43 ++
.../file/fileuploadoptions/fileuploadoptions.md | 44 ++
.../file/fileuploadresult/fileuploadresult.md | 39 ++
.../jp/2.1.0/cordova/file/filewriter/filewriter.md | 194 ++++++++
docs/jp/2.1.0/cordova/file/flags/flags.md | 46 ++
.../file/localfilesystem/localfilesystem.md | 110 +++++
docs/jp/2.1.0/cordova/file/metadata/metadata.md | 51 +++
.../cordova/geolocation/Coordinates/coordinates.md | 125 +++++
.../2.1.0/cordova/geolocation/Position/position.md | 118 +++++
.../geolocation/PositionError/positionError.md | 53 +++
.../cordova/geolocation/geolocation.clearWatch.md | 117 +++++
.../geolocation/geolocation.getCurrentPosition.md | 126 ++++++
docs/jp/2.1.0/cordova/geolocation/geolocation.md | 104 +++++
.../geolocation/geolocation.watchPosition.md | 128 ++++++
.../geolocation/parameters/geolocation.options.md | 40 ++
.../geolocation/parameters/geolocationError.md | 32 ++
.../geolocation/parameters/geolocationSuccess.md | 46 ++
.../2.1.0/cordova/media/MediaError/mediaError.md | 44 ++
.../2.1.0/cordova/media/Parameters/mediaError.md | 32 ++
docs/jp/2.1.0/cordova/media/capture/CaptureCB.md | 44 ++
.../jp/2.1.0/cordova/media/capture/CaptureError.md | 37 ++
.../2.1.0/cordova/media/capture/CaptureErrorCB.md | 40 ++
.../cordova/media/capture/ConfigurationData.md | 62 +++
.../media/capture/MediaFile.getFormatData.md | 53 +++
docs/jp/2.1.0/cordova/media/capture/MediaFile.md | 37 ++
.../2.1.0/cordova/media/capture/MediaFileData.md | 62 +++
docs/jp/2.1.0/cordova/media/capture/capture.md | 134 ++++++
.../jp/2.1.0/cordova/media/capture/captureAudio.md | 140 ++++++
.../cordova/media/capture/captureAudioOptions.md | 56 +++
.../jp/2.1.0/cordova/media/capture/captureImage.md | 158 +++++++
.../cordova/media/capture/captureImageOptions.md | 53 +++
.../jp/2.1.0/cordova/media/capture/captureVideo.md | 159 +++++++
.../cordova/media/capture/captureVideoOptions.md | 59 +++
.../cordova/media/media.getCurrentPosition.md | 173 +++++++
docs/jp/2.1.0/cordova/media/media.getDuration.md | 165 +++++++
docs/jp/2.1.0/cordova/media/media.md | 121 +++++
docs/jp/2.1.0/cordova/media/media.pause.md | 169 +++++++
docs/jp/2.1.0/cordova/media/media.play.md | 188 ++++++++
docs/jp/2.1.0/cordova/media/media.release.md | 154 +++++++
docs/jp/2.1.0/cordova/media/media.seekTo.md | 157 +++++++
docs/jp/2.1.0/cordova/media/media.startRecord.md | 141 ++++++
docs/jp/2.1.0/cordova/media/media.stop.md | 169 +++++++
docs/jp/2.1.0/cordova/media/media.stopRecord.md | 139 ++++++
.../cordova/notification/notification.alert.md | 115 +++++
.../cordova/notification/notification.beep.md | 113 +++++
.../cordova/notification/notification.confirm.md | 133 ++++++
docs/jp/2.1.0/cordova/notification/notification.md | 80 ++++
.../cordova/notification/notification.vibrate.md | 103 +++++
docs/jp/2.1.0/cordova/storage/database/database.md | 124 +++++
.../cordova/storage/localstorage/localstorage.md | 119 +++++
.../cordova/storage/parameters/display_name.md | 23 +
docs/jp/2.1.0/cordova/storage/parameters/name.md | 23 +
docs/jp/2.1.0/cordova/storage/parameters/size.md | 23 +
.../jp/2.1.0/cordova/storage/parameters/version.md | 23 +
docs/jp/2.1.0/cordova/storage/sqlerror/sqlerror.md | 47 ++
.../cordova/storage/sqlresultset/sqlresultset.md | 133 ++++++
.../storage/sqlresultsetlist/sqlresultsetlist.md | 136 ++++++
.../storage/sqltransaction/sqltransaction.md | 113 +++++
docs/jp/2.1.0/cordova/storage/storage.md | 79 ++++
.../2.1.0/cordova/storage/storage.opendatabase.md | 74 +++
docs/jp/2.1.0/guide/command-line/index.md | 190 ++++++++
docs/jp/2.1.0/guide/cordova-webview/android.md | 66 +++
docs/jp/2.1.0/guide/cordova-webview/index.md | 27 ++
docs/jp/2.1.0/guide/cordova-webview/ios.md | 126 ++++++
.../2.1.0/guide/getting-started/android/index.md | 137 ++++++
docs/jp/2.1.0/guide/getting-started/bada/index.md | 93 ++++
.../guide/getting-started/blackberry/index.md | 101 +++++
docs/jp/2.1.0/guide/getting-started/index.md | 29 ++
docs/jp/2.1.0/guide/getting-started/ios/index.md | 114 +++++
.../2.1.0/guide/getting-started/symbian/index.md | 78 ++++
docs/jp/2.1.0/guide/getting-started/webos/index.md | 78 ++++
.../guide/getting-started/windows-phone/index.md | 101 +++++
.../guide/plugin-development/android/index.md | 154 +++++++
.../2.1.0/guide/plugin-development/bada/index.md | 74 +++
.../guide/plugin-development/blackberry/index.md | 138 ++++++
docs/jp/2.1.0/guide/plugin-development/index.md | 111 +++++
.../jp/2.1.0/guide/plugin-development/ios/index.md | 157 +++++++
.../2.1.0/guide/plugin-development/webos/index.md | 23 +
.../plugin-development/windows-phone/index.md | 23 +
docs/jp/2.1.0/guide/upgrading/android/index.md | 162 +++++++
docs/jp/2.1.0/guide/upgrading/bada/index.md | 48 ++
docs/jp/2.1.0/guide/upgrading/blackberry/index.md | 117 +++++
docs/jp/2.1.0/guide/upgrading/index.md | 31 ++
docs/jp/2.1.0/guide/upgrading/ios/index.md | 266 +++++++++++
docs/jp/2.1.0/guide/upgrading/symbian/index.md | 21 +
docs/jp/2.1.0/guide/upgrading/webos/index.md | 51 +++
.../2.1.0/guide/upgrading/windows-phone/index.md | 147 ++++++
docs/jp/2.1.0/guide/whitelist/index.md | 163 +++++++
docs/jp/2.1.0/index.md | 107 +++++
163 files changed, 15733 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/config.json
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/config.json b/docs/jp/2.1.0/config.json
new file mode 100644
index 0000000..903f2b2
--- /dev/null
+++ b/docs/jp/2.1.0/config.json
@@ -0,0 +1,171 @@
+{
+ "language": "Japanese",
+ "merge": {
+ "accelerometer.md": [
+ "cordova/accelerometer/accelerometer.md",
+ "cordova/accelerometer/accelerometer.getCurrentAcceleration.md",
+ "cordova/accelerometer/accelerometer.watchAcceleration.md",
+ "cordova/accelerometer/accelerometer.clearWatch.md",
+ "cordova/accelerometer/acceleration/acceleration.md",
+ "cordova/accelerometer/parameters/accelerometerSuccess.md",
+ "cordova/accelerometer/parameters/accelerometerError.md",
+ "cordova/accelerometer/parameters/accelerometerOptions.md"
+ ],
+ "camera.md": [
+ "cordova/camera/camera.md",
+ "cordova/camera/camera.getPicture.md",
+ "cordova/camera/parameter/cameraSuccess.md",
+ "cordova/camera/parameter/cameraError.md",
+ "cordova/camera/parameter/cameraOptions.md",
+ "cordova/camera/parameter/CameraPopoverOptions.md"
+ ],
+ "capture.md": [
+ "cordova/media/capture/capture.md",
+ "cordova/media/capture/captureAudio.md",
+ "cordova/media/capture/captureAudioOptions.md",
+ "cordova/media/capture/captureImage.md",
+ "cordova/media/capture/captureImageOptions.md",
+ "cordova/media/capture/captureVideo.md",
+ "cordova/media/capture/captureVideoOptions.md",
+ "cordova/media/capture/CaptureError.md",
+ "cordova/media/capture/CaptureCB.md",
+ "cordova/media/capture/CaptureErrorCB.md",
+ "cordova/media/capture/ConfigurationData.md",
+ "cordova/media/capture/MediaFile.md",
+ "cordova/media/capture/MediaFile.getFormatData.md",
+ "cordova/media/capture/MediaFileData.md"
+ ],
+ "compass.md": [
+ "cordova/compass/compass.md",
+ "cordova/compass/compass.getCurrentHeading.md",
+ "cordova/compass/compass.watchHeading.md",
+ "cordova/compass/compass.clearWatch.md",
+ "cordova/compass/compass.watchHeadingFilter.md",
+ "cordova/compass/compass.clearWatchFilter.md",
+ "cordova/compass/parameters/compassSuccess.md",
+ "cordova/compass/parameters/compassError.md",
+ "cordova/compass/parameters/compassOptions.md",
+ "cordova/compass/parameters/compassHeading.md",
+ "cordova/compass/compassError/compassError.md"
+ ],
+ "contacts.md": [
+ "cordova/contacts/contacts.md",
+ "cordova/contacts/contacts.create.md",
+ "cordova/contacts/contacts.find.md",
+ "cordova/contacts/Contact/contact.md",
+ "cordova/contacts/ContactAddress/contactaddress.md",
+ "cordova/contacts/ContactField/contactfield.md",
+ "cordova/contacts/ContactFindOptions/contactfindoptions.md",
+ "cordova/contacts/ContactName/contactname.md",
+ "cordova/contacts/ContactOrganization/contactorganization.md",
+ "cordova/contacts/ContactError/contactError.md",
+ "cordova/contacts/parameters/contactSuccess.md",
+ "cordova/contacts/parameters/contactError.md",
+ "cordova/contacts/parameters/contactFields.md",
+ "cordova/contacts/parameters/contactFindOptions.md"
+ ],
+ "device.md": [
+ "cordova/device/device.md",
+ "cordova/device/device.name.md",
+ "cordova/device/device.cordova.md",
+ "cordova/device/device.platform.md",
+ "cordova/device/device.uuid.md",
+ "cordova/device/device.version.md"
+ ],
+ "events.md": [
+ "cordova/events/events.md",
+ "cordova/events/events.deviceready.md",
+ "cordova/events/events.pause.md",
+ "cordova/events/events.resume.md",
+ "cordova/events/events.online.md",
+ "cordova/events/events.offline.md",
+ "cordova/events/events.backbutton.md",
+ "cordova/events/events.batterycritical.md",
+ "cordova/events/events.batterylow.md",
+ "cordova/events/events.batterystatus.md",
+ "cordova/events/events.menubutton.md",
+ "cordova/events/events.searchbutton.md",
+ "cordova/events/events.startcallbutton.md",
+ "cordova/events/events.endcallbutton.md",
+ "cordova/events/events.volumedownbutton.md",
+ "cordova/events/events.volumeupbutton.md"
+ ],
+ "file.md": [
+ "cordova/file/file.md",
+ "cordova/file/fileobj/fileobj.md",
+ "cordova/file/filereader/filereader.md",
+ "cordova/file/filewriter/filewriter.md",
+ "cordova/file/filesystem/filesystem.md",
+ "cordova/file/fileentry/fileentry.md",
+ "cordova/file/directoryentry/directoryentry.md",
+ "cordova/file/directoryreader/directoryreader.md",
+ "cordova/file/filetransfer/filetransfer.md",
+ "cordova/file/fileuploadoptions/fileuploadoptions.md",
+ "cordova/file/fileuploadresult/fileuploadresult.md",
+ "cordova/file/flags/flags.md",
+ "cordova/file/localfilesystem/localfilesystem.md",
+ "cordova/file/metadata/metadata.md",
+ "cordova/file/fileerror/fileerror.md",
+ "cordova/file/filetransfererror/filetransfererror.md"
+ ],
+ "geolocation.md": [
+ "cordova/geolocation/geolocation.md",
+ "cordova/geolocation/geolocation.getCurrentPosition.md",
+ "cordova/geolocation/geolocation.watchPosition.md",
+ "cordova/geolocation/geolocation.clearWatch.md",
+ "cordova/geolocation/Coordinates/coordinates.md",
+ "cordova/geolocation/Position/position.md",
+ "cordova/geolocation/PositionError/positionError.md",
+ "cordova/geolocation/parameters/geolocationSuccess.md",
+ "cordova/geolocation/parameters/geolocationError.md",
+ "cordova/geolocation/parameters/geolocation.options.md"
+ ],
+ "media.md": [
+ "cordova/media/media.md",
+ "cordova/media/media.getCurrentPosition.md",
+ "cordova/media/media.getDuration.md",
+ "cordova/media/media.pause.md",
+ "cordova/media/media.play.md",
+ "cordova/media/media.release.md",
+ "cordova/media/media.seekTo.md",
+ "cordova/media/media.startRecord.md",
+ "cordova/media/media.stop.md",
+ "cordova/media/media.stopRecord.md",
+ "cordova/media/MediaError/mediaError.md",
+ "cordova/media/Parameters/mediaError.md"
+ ],
+ "network.md": [
+ "cordova/network/network.md",
+ "cordova/network/network.isReachable.md",
+ "cordova/network/NetworkStatus/NetworkStatus.md",
+ "cordova/network/parameters/reachableCallback.md",
+ "cordova/network/parameters/reachableHostname.md",
+ "cordova/network/parameters/reachableOptions.md"
+ ],
+ "connection.md": [
+ "cordova/connection/connection.md",
+ "cordova/connection/connection.type.md"
+ ],
+ "notification.md": [
+ "cordova/notification/notification.md",
+ "cordova/notification/notification.alert.md",
+ "cordova/notification/notification.confirm.md",
+ "cordova/notification/notification.beep.md",
+ "cordova/notification/notification.vibrate.md"
+ ],
+ "storage.md": [
+ "cordova/storage/storage.md",
+ "cordova/storage/storage.opendatabase.md",
+ "cordova/storage/parameters/name.md",
+ "cordova/storage/parameters/version.md",
+ "cordova/storage/parameters/display_name.md",
+ "cordova/storage/parameters/size.md",
+ "cordova/storage/database/database.md",
+ "cordova/storage/sqltransaction/sqltransaction.md",
+ "cordova/storage/sqlresultset/sqlresultset.md",
+ "cordova/storage/sqlresultsetlist/sqlresultsetlist.md",
+ "cordova/storage/sqlerror/sqlerror.md",
+ "cordova/storage/localstorage/localstorage.md"
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/accelerometer/acceleration/acceleration.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/accelerometer/acceleration/acceleration.md b/docs/jp/2.1.0/cordova/accelerometer/acceleration/acceleration.md
new file mode 100644
index 0000000..ef1b454
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/accelerometer/acceleration/acceleration.md
@@ -0,0 +1,105 @@
+---
+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.
+---
+
+Acceleration
+============
+
+ある時間軸上でキャプチャーされた加速度センサーのデータを保持します。
+
+プロパティー
+----------
+
+- __x:__ x 軸上での加速度を表します。 (単位 m/s^2) (`Number`)
+- __y:__ y 軸上での加速度を表します。 (単位 m/s^2) (`Number`)
+- __z:__ z 軸上での加速度を表します。 (単位 m/s^2) (`Number`)
+- __timestamp:__ ミリ秒単位のタイムスタンプ値を表します。 (`DOMTimeStamp`)
+
+概要
+-----------
+
+x, y, z の加速度は重力の影響 (9.81 m/s^2) を含みます。デバイスが机の上に表向きで置かれている場合、値はそれぞれ x=0, y=0, z=9.81 となります。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iOS
+- Windows Phone 7 (Mango)
+- Bada 1.2 & 2.x
+
+使用例
+-------------
+
+ function onSuccess(acceleration) {
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
+ };
+
+ function onError() {
+ alert('エラーが発生しました。');
+ };
+
+ navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>加速度センサーの使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
+ }
+
+ // onSuccess: 現在の加速度情報を取得
+ //
+ function onSuccess(acceleration) {
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
+ }
+
+ // onError: 加速度情報の取得に失敗
+ //
+ function onError() {
+ alert('エラーが発生しました。');
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>使用例</h1>
+ <p>getCurrentAcceleration</p>
+ </body>
+ </html>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/accelerometer/accelerometer.clearWatch.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/accelerometer/accelerometer.clearWatch.md b/docs/jp/2.1.0/cordova/accelerometer/accelerometer.clearWatch.md
new file mode 100644
index 0000000..050fba2
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/accelerometer/accelerometer.clearWatch.md
@@ -0,0 +1,112 @@
+---
+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.
+---
+
+accelerometer.clearWatch
+========================
+
+指定した watch ID の加速度情報の監視を停止します。
+
+ navigator.accelerometer.clearWatch(watchID);
+
+- __watchID__: `accelerometer.watchAcceleration` によって返される ID。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iPhone
+- Windows Phone 7 (Mango)
+- Bada 1.2 & 2.x
+
+使用例
+-------------
+
+ var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
+
+ // ... 後に続く ...
+
+ navigator.accelerometer.clearWatch(watchID);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>加速度センサーの使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // watch ID が現在の `watchAcceleration` を参照
+ var watchID = null;
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ startWatch();
+ }
+
+ // 加速度情報の監視を開始
+ //
+ function startWatch() {
+
+ // 加速度情報を3秒ごとに更新
+ var options = { frequency: 3000 };
+
+ watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
+ }
+
+ // 加速度情報の監視を停止
+ //
+ function stopWatch() {
+ if (watchID) {
+ navigator.accelerometer.clearWatch(watchID);
+ watchID = null;
+ }
+ }
+
+ // onSuccess: 現在の加速度情報を取得
+ //
+ function onSuccess(acceleration) {
+ var element = document.getElementById('accelerometer');
+ element.innerHTML = 'X 軸における加速度: ' + acceleration.x + '<br />' +
+ 'Y 軸における加速度: ' + acceleration.y + '<br />' +
+ 'Z 軸における加速度: ' + acceleration.z + '<br />' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '<br />';
+ }
+
+ // onError: 加速度情報の取得に失敗
+ //
+ function onError() {
+ alert('エラーが発生しました。');
+ }
+
+ </script>
+ </head>
+ <body>
+ <div id="accelerometer">加速度センサーを待機...</div>
+ <button onclick="stopWatch();">監視中止</button>
+ </body>
+ </html>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/accelerometer/accelerometer.getCurrentAcceleration.md b/docs/jp/2.1.0/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
new file mode 100644
index 0000000..e14b5be
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
@@ -0,0 +1,108 @@
+---
+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.
+---
+
+accelerometer.getCurrentAcceleration
+====================================
+
+デバイスの傾きの増加量を計測します。
+
+ navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError);
+
+概要
+-----------
+
+加速度センサーはデバイスの傾きの増加量を計測します。 加速度センサーでは x, y, z 軸の3次元の傾きを取得出来ます。
+
+加速度情報は `accelerometerSuccess` コールバック関数によって返されます。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iPhone
+- Windows Phone 7 (Mango)
+- Bada 1.2 & 2.x
+
+使用例
+-------------
+
+ function onSuccess(acceleration) {
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
+ };
+
+ function onError() {
+ alert('エラーが発生しました。');
+ };
+
+ navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>加速度センサーの使用</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
+ }
+
+ // onSuccess: 現在の加速度情報を取得
+ //
+ function onSuccess(acceleration) {
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
+ }
+
+ // onError: 加速度情報の取得に失敗
+ //
+ function onError() {
+ alert('エラーが発生しました。');
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>使用例</h1>
+ <p>getCurrentAcceleration</p>
+ </body>
+ </html>
+
+iPhone に関する注意点
+-------------
+
+- iPhone はピンポイントで現在の加速度情報を得ることは出来ません。
+- 加速度情報を取得するには、一定の時間間隔で加速度データの変異を計測する必要があります。
+- そのため、 `getCurrentAcceleration` 関数は Cordova の `watchAccelerometer` 関数で取得した最新値を返します。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/accelerometer/accelerometer.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/accelerometer/accelerometer.md b/docs/jp/2.1.0/cordova/accelerometer/accelerometer.md
new file mode 100644
index 0000000..db4c4be
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/accelerometer/accelerometer.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.
+---
+
+Accelerometer
+=============
+
+> デバイスの動きを (x, y, z) 軸で取得します。
+
+メソッド
+-------
+
+- accelerometer.getCurrentAcceleration
+- accelerometer.watchAcceleration
+- accelerometer.clearWatch
+
+引数
+---------
+
+- accelerometerSuccess
+- accelerometerError
+- accelerometerOptions
+
+オブジェクト (読み取り専用)
+-------------------
+
+- Acceleration
+
+パーミッション
+-----------
+
+### Android
+
+#### app/res/xml/plugins.xml
+
+ <plugin name="Accelerometer" value="org.apache.cordova.AccelListener" />
+
+### Bada
+
+ パーミッションの設定は必要ありません。
+
+### BlackBerry WebWorks
+
+#### www/plugins.xml
+
+ <plugin name="Accelerometer" value="org.apache.cordova.accelerometer.Accelerometer" />
+
+#### www/config.xml
+
+ <feature id="blackberry.system" required="true" version="1.0.0.0" />
+ <feature id="org.apache.cordova" required="true" version="1.0.0" />
+
+### iOS
+
+#### App/Supporting Files/Cordova.plist
+
+ <key>Plugins</key>
+ <dict>
+ <key>Accelerometer</key>
+ <string>CDVAccelerometer</string>
+ </dict>
+
+### webOS
+
+ パーミッションの設定は必要ありません。
+
+### Windows Phone
+
+#### Properties/WPAppManifest.xml
+
+ <Capabilities>
+ <Capability Name="ID_CAP_SENSORS" />
+ </Capabilities>
+
+参照: [Application Manifest for Windows Phone](http://msdn.microsoft.com/en-us/library/ff769509%28v=vs.92%29.aspx)
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/accelerometer/accelerometer.watchAcceleration.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/accelerometer/accelerometer.watchAcceleration.md b/docs/jp/2.1.0/cordova/accelerometer/accelerometer.watchAcceleration.md
new file mode 100644
index 0000000..b520eaf
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/accelerometer/accelerometer.watchAcceleration.md
@@ -0,0 +1,137 @@
+---
+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.
+---
+
+accelerometer.watchAcceleration
+===============================
+
+ある時間間隔における x, y, z 軸上の加速度を返します。
+
+ var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess,
+ accelerometerError,
+ [accelerometerOptions]);
+
+概要
+-----------
+
+加速度センサーはデバイスの傾きの増加量を計測します。加速度センサーでは x, y, z 軸の3次元の傾きを取得出来ます。
+
+`accelerometer.watchAcceleration` 関数を使うと、一定の間隔ごとにデバイスの加速度情報を取得できます。加速度情報を取得するたびに、 `accelerometerSuccess` コールバック関数が実行されます。加速度情報を取得する間隔は、 `acceleratorOptions` オブジェクトのパラメーター `frequency` を通じてミリ秒単位で指定できます。
+
+本関数の戻り値である watch ID は、実行中の加速度センサー測定への参照を表します。また、 `accelerometer.clearWatch` 関数に watch ID を渡すことで、加速度センサーの監視を停止できます。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iPhone
+- Windows Phone 7 (Mango)
+- Bada 1.2 & 2.x
+
+
+使用例
+-------------
+
+ function onSuccess(acceleration) {
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
+ };
+
+ function onError() {
+ alert('エラーが発生しました。');
+ };
+
+ var options = { frequency: 3000 }; // 3秒ごとに更新
+
+ var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>加速度センサーの使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // watch ID が現在の `watchAcceleration` を参照
+ var watchID = null;
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ startWatch();
+ }
+
+ // 加速度情報の監視を開始
+ //
+ function startWatch() {
+
+ // 加速度情報を3秒ごとに更新
+ var options = { frequency: 3000 };
+
+ watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
+ }
+
+ // 加速度情報の監視を停止
+ //
+ function stopWatch() {
+ if (watchID) {
+ navigator.accelerometer.clearWatch(watchID);
+ watchID = null;
+ }
+ }
+
+ // onSuccess: 現在の加速度情報を取得
+ //
+ function onSuccess(acceleration) {
+ var element = document.getElementById('accelerometer');
+ element.innerHTML = 'X 軸における加速度: ' + acceleration.x + '<br />' +
+ 'Y 軸における加速度: ' + acceleration.y + '<br />' +
+ 'Z 軸における加速度: ' + acceleration.z + '<br />' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '<br />';
+ }
+
+ // onError: 加速度情報の取得に失敗
+ //
+ function onError() {
+ alert('エラーが発生しました。');
+ }
+
+ </script>
+ </head>
+ <body>
+ <div id="accelerometer">加速度センサーを待機...</div>
+ </body>
+ </html>
+
+ iPhone に関する注意点
+-------------
+
+- 指定された時間間隔に対して、 Cordova はコールバック関数を呼び出し、加速度情報を渡します。
+- ただし、時間間隔は Cordova によって最低 40ms 、最高 1000ms に制限されています。
+- たとえば時間間隔として 3秒 (3000ms) を指定した場合、 Cordova は加速度情報を1秒で取得しますが、コールバック関数は3秒ごとに呼び出されます。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerError.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerError.md b/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerError.md
new file mode 100644
index 0000000..737cac5
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerError.md
@@ -0,0 +1,27 @@
+---
+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.
+---
+
+accelerometerError
+==================
+
+加速度情報の取得に失敗したときに呼び出されるコールバック関数です。
+
+ function() {
+ // エラー処理
+ }
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerOptions.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerOptions.md b/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerOptions.md
new file mode 100644
index 0000000..f88c89f
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerOptions.md
@@ -0,0 +1,28 @@
+---
+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.
+---
+
+accelerometerOptions
+====================
+
+加速度センサーを取得する際のパラメーターを表します。
+
+オプション
+-------
+
+- __frequency:__ 加速度情報の取得頻度をミリ秒単位で表します。 _(Number)_ (デフォルト: 10000)
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerSuccess.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerSuccess.md b/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerSuccess.md
new file mode 100644
index 0000000..1488b13
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/accelerometer/parameters/accelerometerSuccess.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.
+---
+
+accelerometerSuccess
+====================
+
+加速度情報を返す onSuccess コールバック関数です。
+
+ function(acceleration) {
+ // 任意のコード
+ }
+
+パラメーター
+----------
+
+- __acceleration:__ ある瞬間における加速度を表します。 (Acceleration)
+
+使用例
+-------
+
+ function onSuccess(acceleration) {
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
+ };
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/camera/camera.cleanup.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/camera/camera.cleanup.md b/docs/jp/2.1.0/cordova/camera/camera.cleanup.md
new file mode 100644
index 0000000..73874f0
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/camera/camera.cleanup.md
@@ -0,0 +1,50 @@
+---
+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.
+---
+
+camera.cleanup
+=================
+
+カメラで撮影され、ローカルストレージ temporary ディレクトリに保存された画像ファイルをクリーンアップします。
+
+ navigator.camera.cleanup( cameraSuccess, cameraError );
+
+概要
+-----------
+
+`camera.getPicture` が `Camera.sourceType = Camera.PictureSourceType.CAMERA` と `Camera.destinationType = Camera.DestinationType.FILE_URI` と一緒に使用されたとき、ローカルストレージ temporary ディレクトリに保存された画像ファイルをクリーンアップします。
+
+
+サポートされているプラットフォーム
+-------------------
+
+- iOS
+
+
+使用例
+-------------
+
+ navigator.camera.cleanup(onSuccess, onFail);
+
+ function onSuccess() {
+ console.log("クリーンアップに成功しました。")
+ }
+
+ function onFail(message) {
+ alert('クリーンアップに失敗: ' + message);
+ }
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/camera/camera.getPicture.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/camera/camera.getPicture.md b/docs/jp/2.1.0/cordova/camera/camera.getPicture.md
new file mode 100644
index 0000000..bc22f84
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/camera/camera.getPicture.md
@@ -0,0 +1,207 @@
+---
+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.
+---
+
+camera.getPicture
+=================
+
+デバイスのカメラで写真を撮る、またはデバイスのアルバム内にある写真を検索します。 Base64 形式でエンコードされたフォトイメージを表す文字列、またはイメージファイルの URI が返されます。
+
+ navigator.camera.getPicture( cameraSuccess, cameraError, [ cameraOptions ] );
+
+概要
+-----------
+
+`camera.getPicture` 関数はユーザーが写真を撮れるように、デバイスが標準で備えるカメラアプリを起動します (もしデフォルト設定である `Camera.sourceType = Camera.PictureSourceType.CAMERA` の場合) 。写真の撮影が完了するとカメラアプリは終了し、アプリケーションに戻ります。
+
+もし `Camera.sourceType = Camera.PictureSourceType.PHOTOLIBRARY` もしくは `Camera.PictureSourceType.SAVEDPHOTOALBUM` が指定された場合、写真選択ダイアログが表示され、アルバムから写真を選択できるようになります。
+
+返り値は `cameraSuccess` 関数に送信されます。値は `cameraOptions` の設定に従い、以下のいずれかのフォーマットで送られます:
+
+- Base64 形式でエンコードされたフォトイメージを表す文字列 (デフォルト)
+- ローカルストレージ内に記録されたファイルの場所を表す文字列
+
+エンコードされたイメージや URI をもとに、以下のような処理の記述が可能です:
+
+- `<img>` タグで画像を表示 _(下記の使用例を参考にしてください)_
+- データをローカルに保存 (`LocalStorage` や [Lawnchair](http://brianleroux.github.com/lawnchair/) など)
+- データをリモートサーバーに送信
+
+注意: iPhone 4 や Black Berry Touch 9800 などの最新デバイスで撮影したイメージの画質は良好で、フォトアルバムから取得する画像はたとえ quality パラメーターで画質を指定したとしても、縮小されません。 _そのような画像を Base64 でエンコードすると、メモリーの問題が発生します。_ よって、 FILE_URI を 'Camera.destinationType' として使用することが推奨されます。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- BlackBerry WebWorks (OS 5.0 以上)
+- iOS
+- Windows Phone 7 (Mango)
+- Bada 1.2
+
+iOS に関する注意点
+----------
+
+JavaScript の alert() をコールバック関数に含めると、問題が生じる可能性があります。 alert を setTimeout() でラップすることで、 alert が表示される前に iOS の image picker または popover が完全に閉じるようにします: setTimeout("alert('message');", 0);
+
+
+Windows Phone 7 に関する注意点
+----------------------
+
+Zune とデバイスが接続している間は、ネイティブカメラアプリケーションは起動せずに、エラーコールバックが呼び出されます。
+
+
+使用例
+-------------
+
+写真を撮影し、 Base64 形式のイメージとして取得します。
+
+ navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
+ destinationType: Camera.DestinationType.DATA_URL
+ });
+
+ function onSuccess(imageData) {
+ var image = document.getElementById('myImage');
+ image.src = "data:image/jpeg;base64," + imageData;
+ }
+
+ function onFail(message) {
+ alert('エラーが発生しました: ' + message);
+ }
+
+撮影した写真の URI を取得します。
+
+ navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
+ destinationType: Camera.DestinationType.FILE_URI });
+
+ function onSuccess(imageURI) {
+ var image = document.getElementById('myImage');
+ image.src = imageURI;
+ }
+
+ function onFail(message) {
+ alert('エラーが発生しました: ' + message);
+ }
+
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>写真を撮ってみよう</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ var pictureSource; // 写真ソース
+ var destinationType; // 戻り値のフォーマット
+
+ // Cordova がデバイスと接続するまで待機
+ //
+ document.addEventListener("deviceready",onDeviceReady,false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ pictureSource=navigator.camera.PictureSourceType;
+ destinationType=navigator.camera.DestinationType;
+ }
+
+ // 写真の撮影に成功した場合 (URI 形式)
+ //
+ function onPhotoDataSuccess(imageData) {
+ // 下記のコメントを外すことで Base64 形式のデータをログに出力
+ // console.log(imageData);
+
+ // 画像ハンドルを取得
+ //
+ var smallImage = document.getElementById('smallImage');
+
+ // 画像要素を表示
+ //
+ smallImage.style.display = 'block';
+
+ // 取得した写真を表示
+ // 画像のリサイズにインライン CSS を使用
+ //
+ smallImage.src = "data:image/jpeg;base64," + imageData;
+ }
+
+ // 写真の撮影に成功した場合 (URI 形式)
+ //
+ function onPhotoURISuccess(imageURI) {
+ // 下記のコメントを外すことでファイル URI をログに出力
+ // console.log(imageURI);
+
+ // 画像ハンドルを取得
+ //
+ var largeImage = document.getElementById('largeImage');
+
+ // 画像要素を表示
+ //
+ largeImage.style.display = 'block';
+
+ // 取得した写真を表示
+ // 画像のリサイズにインライン CSS を使
+ //
+ largeImage.src = imageURI;
+ }
+
+ // ボタンがクリックされた場合の処理
+ //
+ function capturePhoto() {
+ // 編集が許可された写真を撮影し、 Base64 形式のイメージとして取得する場合
+ navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
+ destinationType: destinationType.DATA_URL });
+ }
+
+ // ボタンがクリックされた場合の処理
+ //
+ function capturePhotoEdit() {
+ // 編集が許可された写真を撮影し、 Base64 形式のイメージとして取得する場合
+ navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 20, allowEdit: true,
+ destinationType: destinationType.DATA_URL });
+ }
+
+ // ボタンがクリックされた場合の処理
+ //
+ function getPhoto(source) {
+ // 写真をファイル URI として取得する場合
+ navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
+ destinationType: destinationType.FILE_URI,
+ sourceType: source });
+ }
+
+ // エラー発生時の処理
+ //
+ function onFail(message) {
+ alert('エラーが発生しました: ' + message);
+ }
+
+ </script>
+ </head>
+ <body>
+ <button onclick="capturePhoto();">写真を撮影</button> <br>
+ <button onclick="capturePhotoEdit();">写真を撮影して編集</button> <br>
+ <button onclick="getPhoto(pictureSource.PHOTOLIBRARY);">フォトライブラリから取得</button><br>
+ <button onclick="getPhoto(pictureSource.SAVEDPHOTOALBUM);">フォトアルバムから取得</button><br>
+ <img style="display:none;width:60px;height:60px;" id="smallImage" src="" />
+ <img style="display:none;" id="largeImage" src="" />
+ </body>
+ </html>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/camera/camera.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/camera/camera.md b/docs/jp/2.1.0/cordova/camera/camera.md
new file mode 100644
index 0000000..47892e7
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/camera/camera.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.
+---
+
+Camera
+======
+
+> `camera` オブジェクトは、デバイスのカメラアプリへの制御を提供します。
+
+メソッド
+-------
+
+- camera.getPicture
+- camera.cleanup
+
+パーミッション
+-----------
+
+### Android
+
+#### app/res/xml/plugins.xml
+
+ <plugin name="Camera" value="org.apache.cordova.CameraLauncher" />
+
+#### app/AndroidManifest
+
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+
+### Bada
+
+#### manifest.xml
+
+ <Privilege>
+ <Name>CAMERA</Name>
+ </Privilege>
+ <Privilege>
+ <Name>RECORDING</Name>
+ </Privilege>
+
+### BlackBerry WebWorks
+
+#### www/plugins.xml
+
+ <plugin name="Camera" value="org.apache.cordova.camera.Camera" />
+
+#### www/config.xml
+
+ <feature id="blackberry.media.camera" />
+
+ <rim:permissions>
+ <rim:permit>use_camera</rim:permit>
+ </rim:permissions>
+
+### iOS
+
+#### App/Supporting Files/Cordova.plist
+
+ <key>Plugins</key>
+ <dict>
+ <key>Camera</key>
+ <string>CDVCamera</string>
+ </dict>
+
+### webOS
+
+ パーミッションの設定は必要ありません。
+
+### Windows Phone
+
+#### Properties/WPAppManifest.xml
+
+ <Capabilities>
+ <Capability Name="ID_CAP_CAMERA" />
+ <Capability Name="ID_CAP_ISV_CAMERA" />
+ <Capability Name="ID_HW_FRONTCAMERA" />
+ </Capabilities>
+
+参照: [Application Manifest for Windows Phone](http://msdn.microsoft.com/en-us/library/ff769509%28v=vs.92%29.aspx)
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/camera/parameter/CameraPopoverOptions.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/camera/parameter/CameraPopoverOptions.md b/docs/jp/2.1.0/cordova/camera/parameter/CameraPopoverOptions.md
new file mode 100644
index 0000000..6a329d5
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/camera/parameter/CameraPopoverOptions.md
@@ -0,0 +1,71 @@
+---
+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.
+---
+
+CameraPopoverOptions
+====================
+
+画像をライブラリーもしくはアルバムから選択する際の、 iPad でのポップオーバーの位置や矢印の向きを指定するためのパラメーターです。 iOS のみのオプションです。
+
+ { x : 0,
+ y : 32,
+ width : 320,
+ height : 480,
+ arrowDir : Camera.PopoverArrowDirection.ARROW_ANY
+ };
+
+CameraPopoverOptions
+--------------------
+
+- __x:__ ポップオーバーの x 座標をピクセルで表します。 (`Number`)
+
+- __y:__ ポップオーバーの y 座標をピクセルで表します。 (`Number`)
+
+- __width:__ ポップオーバーの幅をピクセルで表します。 (`Number`)
+
+- __height:__ ポップオーバーの高さをピクセルで表します。 (`Number`)
+
+- __arrowDir:__ ポップオーバーの矢印の向きを表します。 Camera.PopoverArrowDirection で定義されます。 (`Number`)
+
+ Camera.PopoverArrowDirection = {
+ ARROW_UP : 1, // iOS の UIPopoverArrowDirection 定数に同じ
+ ARROW_DOWN : 2,
+ ARROW_LEFT : 4,
+ ARROW_RIGHT : 8,
+ ARROW_ANY : 15
+ };
+
+ポップオーバーのサイズは矢印の方向や画面の向きによって調節され、変わる可能性があることについて注意してください。アンカー要素の位置を特定するとき、画面の向きの変化を考慮に入れることを忘れないで下さい。
+
+使用例
+-------------
+
+ var popover = new CameraPopoverOptions(300,300,100,100,Camera.PopoverArrowDirection.ARROW_ANY);
+ var options = { quality: 50, destinationType: Camera.DestinationType.DATA_URL,sourceType: Camera.PictureSource.SAVEDPHOTOALBUM, popoverOptions : popover };
+
+ navigator.camera.getPicture(onSuccess, onFail, options);
+
+ function onSuccess(imageData) {
+ var image = document.getElementById('myImage');
+ image.src = "data:image/jpeg;base64," + imageData;
+ }
+
+ function onFail(message) {
+ alert('Failed because: ' + message);
+ }
+
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/camera/parameter/cameraError.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/camera/parameter/cameraError.md b/docs/jp/2.1.0/cordova/camera/parameter/cameraError.md
new file mode 100644
index 0000000..90b57f0
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/camera/parameter/cameraError.md
@@ -0,0 +1,32 @@
+---
+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.
+---
+
+cameraError
+===========
+
+エラーが発生した場合に呼び出されるコールバック関数です。
+
+ function(message) {
+ // エラーメッセージを表示
+ }
+
+パラメーター
+----------
+
+- __message:__ デバイスのネイティブコードによって与えられたメッセージ (`String`)
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/camera/parameter/cameraOptions.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/camera/parameter/cameraOptions.md b/docs/jp/2.1.0/cordova/camera/parameter/cameraOptions.md
new file mode 100644
index 0000000..97439c0
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/camera/parameter/cameraOptions.md
@@ -0,0 +1,121 @@
+---
+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.
+---
+
+cameraOptions
+=============
+
+カメラの設定をカスタマイズするのためのオプションパラメーターです。
+
+ { quality : 75,
+ destinationType : Camera.DestinationType.DATA_URL,
+ sourceType : Camera.PictureSourceType.CAMERA,
+ allowEdit : true,
+ encodingType: Camera.EncodingType.JPEG,
+ targetWidth: 100,
+ targetHeight: 100,
+ popoverOptions: CameraPopoverOptions,
+ saveToPhotoAlbum: false };
+
+オプション
+-------
+
+- __quality:__ イメージの画質を指定します。 範囲: 0から100 (`Number`)
+
+- __destinationType:__ 返り値のフォーマットを指定します。フォーマットは navigator.camera.DestinationType で定義されています。 (`Number`)
+
+ Camera.DestinationType = {
+ DATA_URL : 0, // 画像を Base64 形式で取得
+ FILE_URI : 1 // 画像をファイル URI として取得
+ };
+
+- __sourceType:__ 取得ソースを指定します。ソースは nagivator.camera.PictureSourceType で定義されています。 (`Number`)
+
+ Camera.PictureSourceType = {
+ PHOTOLIBRARY : 0,
+ CAMERA : 1,
+ SAVEDPHOTOALBUM : 2
+ };
+
+- __allowEdit:__ イメージ選択の前に、簡単な編集を許可します。 (`Boolean`)
+
+- __encodingType:__ 画像ファイルのエンコード形式を選択します。形式は navigator.camera.EncodingType で定義されています。 (`Number`)
+
+ Camera.EncodingType = {
+ JPEG : 0, // 画像を JPEG 形式で取得
+ PNG : 1 // 画像を PNG 形式で取得
+ };
+
+- __targetWidth:__ 画像をスケールするための幅をピクセルで指定します。 targetHeight と同時に使用してください。アスペクト比は保持されます。 (`Number`)
+- __targetHeight:__ 画像をスケールするための高さをピクセルで指定します。 targetWidth と同時に使用してください。アスペクト比は保持されます。 (`Number`)
+
+- __mediaType:__ 画像の取得元を指定します。 PictureSourceType に PHOTOLIBRARY もしくは SAVEPHOTOALBUM が指定されている場合にのみ有効です。取得元は nagivator.camera.MediaType で定義されています。 (`Number`)
+
+ Camera.MediaType = {
+ PICTURE: 0, // 取得元は静止画像のみとします。デフォルトです。返り値のフォーマットは DestinationType によって指定されたものになります。
+ VIDEO: 1, // 取得元はビデオのみとします。戻り値のフォーマットは常にファイル URI となります。
+ ALLMEDIA : 2 // 全てのメディアタイプからの取得を許可します。
+ };
+
+- __correctOrientation:__ 写真が撮影されたときと同じ向きになるよう写真を回転させます。 (`Boolean`)
+- __saveToPhotoAlbum:__ 写真が撮影された後、デバイスのフォトアルバムに画像を保存します。 (`Boolean`)
+- __popoverOptions:__ iPad でのポップオーバーの位置を指定します。iOS のみのオプションです。 CameraPopoverOptions で定義されます。
+
+Android に関する注意点
+--------------
+
+- `allowEdit` は無視されます。
+- Camera.PictureSourceType.PHOTOLIBRARY と Camera.PictureSourceType.SAVEDPHOTOALBUM は同じフォトアルバムを表示します。
+
+BlackBerry に関する注意点
+-----------------
+
+- `quality` パラメーターは無視されます。
+- `sourceType` パラメーターは無視されます。
+- `allowEdit` は無視されます。
+- 撮影後にカメラアプリを閉じるためには、アプリケーションにキー入力許可の権限が付与されている必要があります。
+- 大きなサイズで撮影を行った場合、高画質カメラを搭載したデバイスでエンコードすることができない場合があります。 (Torch 9800 など)
+- Camera.MediaType はサポートされていません。
+- `correctOrientation` パラメーターは無視されます。
+
+WebOS に関する注意点
+-----------
+
+- `quality` パラメーターは無視されます。
+- `sourceType` パラメーターは無視されます。
+- `allowEdit` は無視されます。
+- Camera.MediaType はサポートされていません。
+- `correctOrientation` パラメーターは無視されます。
+- `saveToPhotoAlbum` パラメーターは無視されます。
+
+iOS に関する注意点
+--------------
+
+- メモリエラーを防ぐには、 `quality` パラメーターを50以下に設定してください。
+- `destinationType.FILE_URI` が使用された場合、撮影された写真や編集された写真はアプリケーションの temporary ディレクトリに保存されます。もしストレージの空きが少ない場合、このディレクトリは navigator.fileMgr API を使って消去できます。
+
+Windows Phone 7 に関する注意点
+--------------
+
+- `allowEdit` は無視されます。
+- `correctOrientation` パラメーターは無視されます。
+
+Bada 1.2 に関する注意点
+--------------
+- オプションはサポートされていません。
+- 常に FILE URI を返します。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/camera/parameter/cameraSuccess.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/camera/parameter/cameraSuccess.md b/docs/jp/2.1.0/cordova/camera/parameter/cameraSuccess.md
new file mode 100644
index 0000000..4abbd0b
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/camera/parameter/cameraSuccess.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.
+---
+
+cameraSuccess
+=============
+
+撮影が成功したときに呼び出されるコールバック関数です。
+
+ function(imageData) {
+ // 任意のコード
+ }
+
+パラメーター
+----------
+
+- __imageData:__ Base64 エンコーディングされた画像データ、またはイメージファイルの URI (`cameraOptions`による) (`String`)
+
+使用例
+-------
+
+ // 画像を表示
+ //
+ function cameraCallback(imageData) {
+ var image = document.getElementById('myImage');
+ image.src = "data:image/jpeg;base64," + imageData;
+ }
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/compass/compass.clearWatch.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/compass/compass.clearWatch.md b/docs/jp/2.1.0/cordova/compass/compass.clearWatch.md
new file mode 100755
index 0000000..06ad359
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/compass/compass.clearWatch.md
@@ -0,0 +1,110 @@
+---
+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.
+---
+
+compass.clearWatch
+========================
+
+watch ID パラメーターによって参照されるコンパスの監視を停止します。
+
+ navigator.compass.clearWatch(watchID);
+
+- __watchID__: `compass.watchHeading` によって返される ID。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- iPhone
+- Windows Phone 7 ( Mango ) ハードウェア内で有効な場合
+- Bada 1.2 & 2.x
+
+使用例
+-------------
+
+ var watchID = navigator.compass.watchHeading(onSuccess, onError, options);
+
+ // ... 後に続く ...
+
+ navigator.compass.clearWatch(watchID);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>Compass Example</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // watch ID が現在の `watchHeading` を参照
+ var watchID = null;
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ startWatch();
+ }
+
+ // コンパスの監視を開始
+ //
+ function startWatch() {
+
+ // コンパスを3秒ごとに更新
+ var options = { frequency: 3000 };
+
+ watchID = navigator.compass.watchHeading(onSuccess, onError, options);
+ }
+
+ // コンパスの監視を停止
+ //
+ function stopWatch() {
+ if (watchID) {
+ navigator.compass.clearWatch(watchID);
+ watchID = null;
+ }
+ }
+
+ // onSuccess: 現在の方位を取得
+ //
+ function onSuccess(heading) {
+ var element = document.getElementById('heading');
+ element.innerHTML = '方位: ' + heading.magneticHeading;
+ }
+
+ // onError: 方位の取得に失敗
+ //
+ function onError(compassError) {
+ alert('コンパスのエラーが発生しました: ' + compassError.code);
+ }
+
+
+ </script>
+ </head>
+ <body>
+ <div id="heading">方位を待機...</div>
+ <button onclick="startWatch();">監視開始</button>
+ <button onclick="stopWatch();">監視中止</button>
+ </body>
+ </html>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/compass/compass.clearWatchFilter.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/compass/compass.clearWatchFilter.md b/docs/jp/2.1.0/cordova/compass/compass.clearWatchFilter.md
new file mode 100644
index 0000000..b6f4b32
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/compass/compass.clearWatchFilter.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.
+---
+
+compass.clearWatchFilter
+========================
+
+1.6以降はサポートされていません。 `compass.clearWatch` を参照してください。
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/compass/compass.getCurrentHeading.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/compass/compass.getCurrentHeading.md b/docs/jp/2.1.0/cordova/compass/compass.getCurrentHeading.md
new file mode 100755
index 0000000..bfcdfab
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/compass/compass.getCurrentHeading.md
@@ -0,0 +1,95 @@
+---
+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.
+---
+
+compass.getCurrentHeading
+=========================
+
+現在のコンパスの向きを取得します。
+
+ navigator.compass.getCurrentHeading(compassSuccess, compassError, compassOptions);
+
+概要
+-----------
+
+コンパスはデバイスが向いている方向を感知するセンサーです。コンパスはその方角を0から359.99の範囲で計測します。
+
+コンパスの向き情報は、 compassSuccess コールバック関数の CompassHeading オブジェクトを通じて返されます。
+
+サポートされているプラットフォーム
+-------------------
+
+- Android
+- iPhone
+- Windows Phone 7 ( Mango ) ハードウェア内で有効な場合
+- Bada 1.2 & 2.x
+
+使用例
+-------------
+
+ function onSuccess(heading) {
+ alert('現在の方位: ' + heading.magneticHeading);
+ };
+
+ function onError(error) {
+ alert('コンパスのエラーが発生しました: ' + error.code);
+ };
+
+ navigator.compass.getCurrentHeading(onSuccess, onError);
+
+詳細な使用例
+------------
+
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <title>コンパスの使用例</title>
+
+ <script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
+ <script type="text/javascript" charset="utf-8">
+
+ // Cordova の読み込み完了まで待機
+ //
+ document.addEventListener("deviceready", onDeviceReady, false);
+
+ // Cordova 準備完了
+ //
+ function onDeviceReady() {
+ navigator.compass.getCurrentHeading(onSuccess, onError);
+ }
+
+ // onSuccess: 現在の方位を取得
+ //
+ function onSuccess(heading) {
+ alert('現在の方位: ' + heading.magneticHeading);
+ }
+
+ // onError: 方位の取得に失敗
+ //
+ function onError(compassError) {
+ alert('コンパスのエラーが発生しました: ' + compassError.code);
+ }
+
+ </script>
+ </head>
+ <body>
+ <h1>使用例</h1>
+ <p>getCurrentHeading</p>
+ </body>
+ </html>
+
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/4272ca34/docs/jp/2.1.0/cordova/compass/compass.md
----------------------------------------------------------------------
diff --git a/docs/jp/2.1.0/cordova/compass/compass.md b/docs/jp/2.1.0/cordova/compass/compass.md
new file mode 100755
index 0000000..8af03a2
--- /dev/null
+++ b/docs/jp/2.1.0/cordova/compass/compass.md
@@ -0,0 +1,81 @@
+---
+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.
+---
+
+Compass
+=======
+
+> デバイスの向いている方向に関する情報を取得します。
+
+メソッド
+-------
+
+- compass.getCurrentHeading
+- compass.watchHeading
+- compass.clearWatch
+- compass.watchHeadingFilter (廃止)
+- compass.clearWatchFilter (廃止)
+
+引数
+---------
+
+- compassSuccess
+- compassError
+- compassOptions
+- compassHeading
+
+パーミッション
+-----------
+
+### Android
+
+#### app/res/xml/plugins.xml
+
+ <plugin name="Compass" value="org.apache.cordova.CompassListener" />
+
+### Bada
+
+ パーミッションの設定は必要ありません。
+
+### BlackBerry WebWorks
+
+ パーミッションの設定は必要ありません。
+
+### iOS
+
+#### App/Supporting Files/Cordova.plist
+
+ <key>Plugins</key>
+ <dict>
+ <key>Compass</key>
+ <string>CDVLocation</string>
+ </dict>
+
+### webOS
+
+ パーミッションの設定は必要ありません。
+
+### Windows Phone
+
+#### Properties/WPAppManifest.xml
+
+ <Capabilities>
+ <Capability Name="ID_CAP_SENSORS" />
+ </Capabilities>
+
+参照: [Application Manifest for Windows Phone](http://msdn.microsoft.com/en-us/library/ff769509%28v=vs.92%29.aspx)