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 2012/06/25 22:52:14 UTC
[18/25] docs commit: Translate files related to accelerometer
Translate files related to accelerometer
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/77358080
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/77358080
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/77358080
Branch: refs/heads/master
Commit: 7735808075da53d06865f80d9e8aff52e5ada8dc
Parents: e8792d0
Author: Keiko Oda <ke...@gmail.com>
Authored: Sat Jun 9 19:04:55 2012 -0700
Committer: Keiko Oda <ke...@gmail.com>
Committed: Sat Jun 9 19:06:03 2012 -0700
----------------------------------------------------------------------
.../accelerometer/acceleration/acceleration.md | 56 +++++-----
.../accelerometer/accelerometer.clearWatch.md | 62 ++++++------
.../accelerometer.getCurrentAcceleration.md | 62 ++++++------
.../1.7.0/cordova/accelerometer/accelerometer.md | 10 +-
.../accelerometer.watchAcceleration.md | 84 +++++++-------
.../accelerometer/parameters/accelerometerError.md | 6 +-
.../parameters/accelerometerOptions.md | 6 +-
.../parameters/accelerometerSuccess.md | 20 ++--
8 files changed, 153 insertions(+), 153 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/77358080/docs/jp/1.7.0/cordova/accelerometer/acceleration/acceleration.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/accelerometer/acceleration/acceleration.md b/docs/jp/1.7.0/cordova/accelerometer/acceleration/acceleration.md
index 0f6cb81..6529523 100644
--- a/docs/jp/1.7.0/cordova/accelerometer/acceleration/acceleration.md
+++ b/docs/jp/1.7.0/cordova/accelerometer/acceleration/acceleration.md
@@ -20,86 +20,86 @@ license: Licensed to the Apache Software Foundation (ASF) under one
Acceleration
============
-Contains `Accelerometer` data captured at a specific point in time.
+ある時間軸上でキャプチャーされた加速度センサーのデータを保持します。
-Properties
+プロパティー
----------
-- __x:__ Amount of acceleration on the x-axis. (in m/s^2) (`Number`)
-- __y:__ Amount of acceleration on the y-axis. (in m/s^2) (`Number`)
-- __z:__ Amount of acceleration on the z-axis. (in m/s^2) (`Number`)
-- __timestamp:__ Creation timestamp in milliseconds. (`DOMTimeStamp`)
+- __x:__ x 軸上での加速度を表します。 (単位 m/s^2) (`Number`)
+- __y:__ y 軸上での加速度を表します。 (単位 m/s^2) (`Number`)
+- __z:__ z 軸上での加速度を表します。 (単位 m/s^2) (`Number`)
+- __timestamp:__ ミリ秒単位のタイムスタンプ値を表します。 (`DOMTimeStamp`)
-Description
+概要
-----------
-This object is created and populated by Cordova, and returned by an `Accelerometer` method. The x, y, z acceleration values include the effect of gravity (9.81 m/s^2), so at when a device is lying flat on a table facing up, the value returned should be x=0, y=0, z=9.81.
+x, y, z の加速度は重力の影響 (9.81 m/s^2) を含みます。デバイスが机の上に表向きで置かれている場合、値はそれぞれ x=0, y=0, z=9.81 となります。
-Supported Platforms
+サポートされているプラットフォーム
-------------------
- Android
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
- iOS
- Windows Phone 7 (Mango)
- Bada 1.2 & 2.x
-Quick Example
+使用例
-------------
function onSuccess(acceleration) {
- alert('Acceleration X: ' + acceleration.x + '\n' +
- 'Acceleration Y: ' + acceleration.y + '\n' +
- 'Acceleration Z: ' + acceleration.z + '\n' +
- 'Timestamp: ' + acceleration.timestamp + '\n');
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
};
function onError() {
- alert('onError!');
+ alert('エラーが発生しました。');
};
navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
-Full Example
+詳細な使用例
------------
<!DOCTYPE html>
<html>
<head>
- <title>Acceleration Example</title>
+ <title>加速度センサーの使用例</title>
<script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
<script type="text/javascript" charset="utf-8">
- // Wait for Cordova to load
+ // Cordova の読み込み完了まで待機
//
document.addEventListener("deviceready", onDeviceReady, false);
- // Cordova is ready
+ // Cordova 準備完了
//
function onDeviceReady() {
navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
}
- // onSuccess: Get a snapshot of the current acceleration
+ // onSuccess: 現在の加速度情報を取得
//
function onSuccess(acceleration) {
- alert('Acceleration X: ' + acceleration.x + '\n' +
- 'Acceleration Y: ' + acceleration.y + '\n' +
- 'Acceleration Z: ' + acceleration.z + '\n' +
- 'Timestamp: ' + acceleration.timestamp + '\n');
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
}
- // onError: Failed to get the acceleration
+ // onError: 加速度情報の取得に失敗
//
function onError() {
- alert('onError!');
+ alert('エラーが発生しました。');
}
</script>
</head>
<body>
- <h1>Example</h1>
+ <h1>使用例</h1>
<p>getCurrentAcceleration</p>
</body>
</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/77358080/docs/jp/1.7.0/cordova/accelerometer/accelerometer.clearWatch.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/accelerometer/accelerometer.clearWatch.md b/docs/jp/1.7.0/cordova/accelerometer/accelerometer.clearWatch.md
index bfe381c..f87cc8e 100644
--- a/docs/jp/1.7.0/cordova/accelerometer/accelerometer.clearWatch.md
+++ b/docs/jp/1.7.0/cordova/accelerometer/accelerometer.clearWatch.md
@@ -20,65 +20,65 @@ license: Licensed to the Apache Software Foundation (ASF) under one
accelerometer.clearWatch
========================
-Stop watching the `Acceleration` referenced by the watch ID parameter.
+指定した watch ID の加速度情報の監視を停止します。
navigator.accelerometer.clearWatch(watchID);
-- __watchID__: The ID returned by `accelerometer.watchAcceleration`.
+- __watchID__: `accelerometer.watchAcceleration` によって返される ID。
-Supported Platforms
+サポートされているプラットフォーム
-------------------
- Android
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
- iPhone
- Windows Phone 7 (Mango)
- Bada 1.2 & 2.x
-Quick Example
+使用例
-------------
var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
-
- // ... later on ...
-
+
+ // ... 後に続く ...
+
navigator.accelerometer.clearWatch(watchID);
-
-Full Example
+
+詳細な使用例
------------
<!DOCTYPE html>
<html>
<head>
- <title>Acceleration Example</title>
+ <title>加速度センサーの使用例</title>
<script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
<script type="text/javascript" charset="utf-8">
- // The watch id references the current `watchAcceleration`
+ // watch ID が現在の `watchAcceleration` を参照
var watchID = null;
-
- // Wait for Cordova to load
+
+ // Cordova の読み込み完了まで待機
//
document.addEventListener("deviceready", onDeviceReady, false);
- // Cordova is ready
+ // Cordova 準備完了
//
function onDeviceReady() {
startWatch();
}
- // Start watching the acceleration
+ // 加速度情報の監視を開始
//
function startWatch() {
-
- // Update acceleration every 3 seconds
+
+ // 加速度情報を3秒ごとに更新
var options = { frequency: 3000 };
-
+
watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
}
-
- // Stop watching the acceleration
+
+ // 加速度情報の監視を停止
//
function stopWatch() {
if (watchID) {
@@ -86,27 +86,27 @@ Full Example
watchID = null;
}
}
-
- // onSuccess: Get a snapshot of the current acceleration
+
+ // onSuccess: 現在の加速度情報を取得
//
function onSuccess(acceleration) {
var element = document.getElementById('accelerometer');
- element.innerHTML = 'Acceleration X: ' + acceleration.x + '<br />' +
- 'Acceleration Y: ' + acceleration.y + '<br />' +
- 'Acceleration Z: ' + acceleration.z + '<br />' +
- 'Timestamp: ' + acceleration.timestamp + '<br />';
+ element.innerHTML = 'X 軸における加速度: ' + acceleration.x + '<br />' +
+ 'Y 軸における加速度: ' + acceleration.y + '<br />' +
+ 'Z 軸における加速度: ' + acceleration.z + '<br />' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '<br />';
}
- // onError: Failed to get the acceleration
+ // onError: 加速度情報の取得に失敗
//
function onError() {
- alert('onError!');
+ alert('エラーが発生しました。');
}
</script>
</head>
<body>
- <div id="accelerometer">Waiting for accelerometer...</div>
- <button onclick="stopWatch();">Stop Watching</button>
+ <div id="accelerometer">加速度センサーを待機...</div>
+ <button onclick="stopWatch();">監視中止</button>
</body>
</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/77358080/docs/jp/1.7.0/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/accelerometer/accelerometer.getCurrentAcceleration.md b/docs/jp/1.7.0/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
index d16d367..53e62ba 100644
--- a/docs/jp/1.7.0/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
+++ b/docs/jp/1.7.0/cordova/accelerometer/accelerometer.getCurrentAcceleration.md
@@ -20,89 +20,89 @@ license: Licensed to the Apache Software Foundation (ASF) under one
accelerometer.getCurrentAcceleration
====================================
-Get the current acceleration along the x, y, and z axis.
+デバイスの傾きの増加量を計測します。
navigator.accelerometer.getCurrentAcceleration(accelerometerSuccess, accelerometerError);
-Description
+概要
-----------
-The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current device orientation. The accelerometer can detect 3D movement along the x, y, and z axis.
+加速度センサーはデバイスの傾きの増加量を計測します。 加速度センサーでは x, y, z 軸の3次元の傾きを取得出来ます。
-The acceleration is returned using the `accelerometerSuccess` callback function.
+加速度情報は `accelerometerSuccess` コールバック関数によって返されます。
-Supported Platforms
+サポートされているプラットフォーム
-------------------
- Android
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
- iPhone
- Windows Phone 7 (Mango)
- Bada 1.2 & 2.x
-Quick Example
+使用例
-------------
function onSuccess(acceleration) {
- alert('Acceleration X: ' + acceleration.x + '\n' +
- 'Acceleration Y: ' + acceleration.y + '\n' +
- 'Acceleration Z: ' + acceleration.z + '\n' +
- 'Timestamp: ' + acceleration.timestamp + '\n');
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
};
function onError() {
- alert('onError!');
+ alert('エラーが発生しました。');
};
navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
-Full Example
+詳細な使用例
------------
<!DOCTYPE html>
<html>
<head>
- <title>Acceleration Example</title>
+ <title>加速度センサーの使用</title>
<script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
<script type="text/javascript" charset="utf-8">
- // Wait for Cordova to load
+ // Cordova の読み込み完了まで待機
//
document.addEventListener("deviceready", onDeviceReady, false);
- // Cordova is ready
+ // Cordova 準備完了
//
function onDeviceReady() {
navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
}
-
- // onSuccess: Get a snapshot of the current acceleration
+
+ // onSuccess: 現在の加速度情報を取得
//
function onSuccess(acceleration) {
- alert('Acceleration X: ' + acceleration.x + '\n' +
- 'Acceleration Y: ' + acceleration.y + '\n' +
- 'Acceleration Z: ' + acceleration.z + '\n' +
- 'Timestamp: ' + acceleration.timestamp + '\n');
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
}
-
- // onError: Failed to get the acceleration
+
+ // onError: 加速度情報の取得に失敗
//
function onError() {
- alert('onError!');
+ alert('エラーが発生しました。');
}
</script>
</head>
<body>
- <h1>Example</h1>
+ <h1>使用例</h1>
<p>getCurrentAcceleration</p>
</body>
</html>
-
-iPhone Quirks
+
+iPhoneに関する注意点
-------------
-- iPhone doesn't have the concept of getting the current acceleration at any given point.
-- You must watch the acceleration and capture the data at given time intervals.
-- Thus, the `getCurrentAcceleration` function will give you the last value reported from a Cordova `watchAccelerometer` call.
+- iPhone はピンポイントで現在の加速度情報を得ることは出来ません。
+- 加速度情報を取得するには、一定の時間間隔で加速度データの変異を計測する必要があります。
+- そのため、 `getCurrentAcceleration` 関数は Cordova の `watchAccelerometer` 関数で取得した最新値を返します。
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/77358080/docs/jp/1.7.0/cordova/accelerometer/accelerometer.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/accelerometer/accelerometer.md b/docs/jp/1.7.0/cordova/accelerometer/accelerometer.md
index b84eeb9..ecafe1a 100644
--- a/docs/jp/1.7.0/cordova/accelerometer/accelerometer.md
+++ b/docs/jp/1.7.0/cordova/accelerometer/accelerometer.md
@@ -20,23 +20,23 @@ license: Licensed to the Apache Software Foundation (ASF) under one
Accelerometer
=============
-> Captures device motion in the x, y, and z direction.
+> デバイスの動きを (x, y, z) 軸で取得します。
-Methods
+メソッド
-------
- accelerometer.getCurrentAcceleration
- accelerometer.watchAcceleration
- accelerometer.clearWatch
-Arguments
+引数
---------
- accelerometerSuccess
- accelerometerError
- accelerometerOptions
-Objects (Read-Only)
+オブジェクト (読み取り専用)
-------------------
-- Acceleration
\ No newline at end of file
+- Acceleration
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/77358080/docs/jp/1.7.0/cordova/accelerometer/accelerometer.watchAcceleration.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/accelerometer/accelerometer.watchAcceleration.md b/docs/jp/1.7.0/cordova/accelerometer/accelerometer.watchAcceleration.md
index f13c9cd..3f2b682 100644
--- a/docs/jp/1.7.0/cordova/accelerometer/accelerometer.watchAcceleration.md
+++ b/docs/jp/1.7.0/cordova/accelerometer/accelerometer.watchAcceleration.md
@@ -20,84 +20,84 @@ license: Licensed to the Apache Software Foundation (ASF) under one
accelerometer.watchAcceleration
===============================
-At a regular interval, get the acceleration along the x, y, and z axis.
+ある時間間隔における x, y, z 軸上の加速度を返します。
var watchID = navigator.accelerometer.watchAcceleration(accelerometerSuccess,
accelerometerError,
[accelerometerOptions]);
-
-Description
+
+概要
-----------
-The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current position. The accelerometer can detect 3D movement along the x, y, and z axis.
+加速度センサーはデバイスの傾きの増加量を計測します。加速度センサーでは x, y, z 軸の3次元の傾きを取得出来ます。
-The `accelerometer.watchAcceleration` gets the device's current acceleration at a regular interval. Each time the `Acceleration` is retrieved, the `accelerometerSuccess` callback function is executed. Specify the interval in milliseconds via the `frequency` parameter in the `acceleratorOptions` object.
+`accelerometer.watchAcceleration` 関数を使うと、一定の間隔ごとにデバイスの加速度情報を取得できます。加速度情報を取得するたびに、 `accelerometerSuccess` コールバック関数が実行されます。加速度情報を取得する間隔は、 `acceleratorOptions` オブジェクトのパラメーター `frequency` を通じてミリ秒単位で指定できます。
-The returned watch ID references references the accelerometer watch interval. The watch ID can be used with `accelerometer.clearWatch` to stop watching the accelerometer.
+本関数の戻り値である watch ID は、実行中の加速度センサー測定への参照を表します。また、 `accelerometer.clearWatch` 関数に watch ID を渡すことで、加速度センサーの監視を停止できます。
-Supported Platforms
+サポートされているプラットフォーム
-------------------
- Android
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
- iPhone
- Windows Phone 7 (Mango)
- Bada 1.2 & 2.x
-Quick Example
+使用例
-------------
function onSuccess(acceleration) {
- alert('Acceleration X: ' + acceleration.x + '\n' +
- 'Acceleration Y: ' + acceleration.y + '\n' +
- 'Acceleration Z: ' + acceleration.z + '\n' +
- 'Timestamp: ' + acceleration.timestamp + '\n');
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
};
function onError() {
- alert('onError!');
+ alert('エラーが発生しました。');
};
- var options = { frequency: 3000 }; // Update every 3 seconds
-
+ var options = { frequency: 3000 }; // 3秒ごとに更新
+
var watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
-Full Example
+詳細な使用例
------------
<!DOCTYPE html>
<html>
<head>
- <title>Acceleration Example</title>
+ <title>加速度センサーの使用例</title>
<script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>
<script type="text/javascript" charset="utf-8">
- // The watch id references the current `watchAcceleration`
+ // watch ID が現在の `watchAcceleration` を参照
var watchID = null;
-
- // Wait for Cordova to load
+
+ // Cordova の読み込み完了まで待機
//
document.addEventListener("deviceready", onDeviceReady, false);
- // Cordova is ready
+ // Cordova 準備完了
//
function onDeviceReady() {
startWatch();
}
- // Start watching the acceleration
+ // 加速度情報の監視を開始
//
function startWatch() {
-
- // Update acceleration every 3 seconds
+
+ // 加速度情報を3秒ごとに更新
var options = { frequency: 3000 };
-
+
watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
}
-
- // Stop watching the acceleration
+
+ // 加速度情報の監視を停止
//
function stopWatch() {
if (watchID) {
@@ -105,33 +105,33 @@ Full Example
watchID = null;
}
}
-
- // onSuccess: Get a snapshot of the current acceleration
+
+ // onSuccess: 現在の加速度情報を取得
//
function onSuccess(acceleration) {
var element = document.getElementById('accelerometer');
- element.innerHTML = 'Acceleration X: ' + acceleration.x + '<br />' +
- 'Acceleration Y: ' + acceleration.y + '<br />' +
- 'Acceleration Z: ' + acceleration.z + '<br />' +
- 'Timestamp: ' + acceleration.timestamp + '<br />';
+ element.innerHTML = 'X 軸における加速度: ' + acceleration.x + '<br />' +
+ 'Y 軸における加速度: ' + acceleration.y + '<br />' +
+ 'Z 軸における加速度: ' + acceleration.z + '<br />' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '<br />';
}
- // onError: Failed to get the acceleration
+ // onError: 加速度情報の取得に失敗
//
function onError() {
- alert('onError!');
+ alert('エラーが発生しました。');
}
</script>
</head>
<body>
- <div id="accelerometer">Waiting for accelerometer...</div>
+ <div id="accelerometer">加速度センサーを待機...</div>
</body>
</html>
-
- iPhone Quirks
+
+ iPhoneに関する注意点
-------------
-- At the interval requested, Cordova will call the success callback function and pass the accelerometer results.
-- However, in requests to the device Cordova restricts the interval to minimum of every 40ms and a maximum of every 1000ms.
- - For example, if you request an interval of 3 seconds (3000ms), Cordova will request an interval of 1 second from the device but invoke the success callback at the requested interval of 3 seconds.
+- 指定された時間間隔に対して、 Cordova はコールバック関数を呼び出し、加速度情報を渡します。
+- ただし、時間間隔は Cordova によって最低 40ms 、最高 1000ms に制限されています。
+- たとえば時間間隔として 3秒 (3000ms) を指定した場合、 Cordova は加速度情報を1秒で取得しますが、コールバック関数は3秒ごとに呼び出されます。
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/77358080/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerError.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerError.md b/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerError.md
index c908c16..737cac5 100644
--- a/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerError.md
+++ b/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerError.md
@@ -20,8 +20,8 @@ license: Licensed to the Apache Software Foundation (ASF) under one
accelerometerError
==================
-onError callback function for acceleration functions.
+加速度情報の取得に失敗したときに呼び出されるコールバック関数です。
function() {
- // Handle the error
- }
\ No newline at end of file
+ // エラー処理
+ }
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/77358080/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerOptions.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerOptions.md b/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerOptions.md
index 197f416..71b776b 100644
--- a/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerOptions.md
+++ b/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerOptions.md
@@ -20,9 +20,9 @@ license: Licensed to the Apache Software Foundation (ASF) under one
accelerometerOptions
====================
-An optional parameter to customize the retrieval of the accelerometer.
+加速度センサーを取得する際のパラメータを表します。
-Options
+オプション
-------
-- __frequency:__ How often to retrieve the `Acceleration` in milliseconds. _(Number)_ (Default: 10000)
\ No newline at end of file
+- __frequency:__ 加速度情報の取得頻度をミリ秒単位で表します。 _(Number)_ (デフォルト: 10000)
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/77358080/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerSuccess.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerSuccess.md b/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerSuccess.md
index 277fca8..1488b13 100644
--- a/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerSuccess.md
+++ b/docs/jp/1.7.0/cordova/accelerometer/parameters/accelerometerSuccess.md
@@ -20,23 +20,23 @@ license: Licensed to the Apache Software Foundation (ASF) under one
accelerometerSuccess
====================
-onSuccess callback function that provides the Acceleration information.
+加速度情報を返す onSuccess コールバック関数です。
function(acceleration) {
- // Do something
+ // 任意のコード
}
-Parameters
+パラメーター
----------
-- __acceleration:__ The acceleration at a single moment in time. (Acceleration)
+- __acceleration:__ ある瞬間における加速度を表します。 (Acceleration)
-Example
+使用例
-------
function onSuccess(acceleration) {
- alert('Acceleration X: ' + acceleration.x + '\n' +
- 'Acceleration Y: ' + acceleration.y + '\n' +
- 'Acceleration Z: ' + acceleration.z + '\n' +
- 'Timestamp: ' + acceleration.timestamp + '\n');
- };
\ No newline at end of file
+ alert('X 軸における加速度: ' + acceleration.x + '\n' +
+ 'Y 軸における加速度: ' + acceleration.y + '\n' +
+ 'Z 軸における加速度: ' + acceleration.z + '\n' +
+ 'タイムスタンプ: ' + acceleration.timestamp + '\n');
+ };