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
[13/25] docs commit: Translate files related to device
Translate files related to device
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/cd655cc1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/cd655cc1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/cd655cc1
Branch: refs/heads/master
Commit: cd655cc1fbdc8579d0494434bf7d4eaeb17a0dfb
Parents: a46fc6c
Author: Keiko Oda <ke...@gmail.com>
Authored: Tue Jun 12 14:05:35 2012 -0700
Committer: Keiko Oda <ke...@gmail.com>
Committed: Tue Jun 12 14:05:35 2012 -0700
----------------------------------------------------------------------
docs/jp/1.7.0/cordova/device/device.cordova.md | 38 +++++-----
docs/jp/1.7.0/cordova/device/device.md | 12 ++--
docs/jp/1.7.0/cordova/device/device.name.md | 70 +++++++++---------
docs/jp/1.7.0/cordova/device/device.platform.md | 58 +++++++-------
docs/jp/1.7.0/cordova/device/device.uuid.md | 68 +++++++++---------
docs/jp/1.7.0/cordova/device/device.version.md | 44 ++++++------
6 files changed, 145 insertions(+), 145 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/cd655cc1/docs/jp/1.7.0/cordova/device/device.cordova.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/device/device.cordova.md b/docs/jp/1.7.0/cordova/device/device.cordova.md
index 835d6a1..16ca11d 100644
--- a/docs/jp/1.7.0/cordova/device/device.cordova.md
+++ b/docs/jp/1.7.0/cordova/device/device.cordova.md
@@ -20,60 +20,60 @@ license: Licensed to the Apache Software Foundation (ASF) under one
device.cordova
===============
-Get the version of Cordova running on the device.
+現在使用している Cordova のバージョン情報を表します。
var string = device.cordova;
-
-Description
+
+概要
-----------
-`device.cordova` returns the version of Cordova running on the device.
+`device.cordova` は現在実行中の Cordova のバージョン情報を取得します。
-Supported Platforms
+サポートされているプラットフォーム
-------------------
- Android
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
- iPhone
-- Windows Phone 7 ( Mango )
+- Windows Phone 7 (Mango)
- Bada 1.2 & 2.x
-Quick Example
+使用例
-------------
var name = device.cordova;
-Full Example
+詳細な使用例
------------
<!DOCTYPE html>
<html>
<head>
- <title>Device Properties 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() {
var element = document.getElementById('deviceProperties');
-
- element.innerHTML = 'Device Name: ' + device.name + '<br />' +
- 'Device Cordova: ' + device.cordova + '<br />' +
- 'Device Platform: ' + device.platform + '<br />' +
- 'Device UUID: ' + device.uuid + '<br />' +
- 'Device Version: ' + device.version + '<br />';
+
+ element.innerHTML = 'デバイス名: ' + device.name + '<br />' +
+ 'デバイス Cordova: ' + device.cordova + '<br />' +
+ 'デバイスプラットフォーム: ' + device.platform + '<br />' +
+ 'デバイス UUID: ' + device.uuid + '<br />' +
+ 'デバイスバージョン: ' + device.version + '<br />';
}
</script>
</head>
<body>
- <p id="deviceProperties">Loading device properties...</p>
+ <p id="deviceProperties">デバイスプロパティーを読込中...</p>
</body>
</html>
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/cd655cc1/docs/jp/1.7.0/cordova/device/device.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/device/device.md b/docs/jp/1.7.0/cordova/device/device.md
index 9f0c944..9a5e605 100644
--- a/docs/jp/1.7.0/cordova/device/device.md
+++ b/docs/jp/1.7.0/cordova/device/device.md
@@ -20,9 +20,9 @@ license: Licensed to the Apache Software Foundation (ASF) under one
Device
======
-> The `device` object describes the device's hardware and software.
+> `device` オブジェクトはデバイスのハードウェアとソフトウェアの情報を表します。
-Properties
+プロパティー
----------
- device.name
@@ -31,12 +31,12 @@ Properties
- device.uuid
- device.version
-Variable Scope
+変数の範囲
--------------
-Since `device` is assigned to the `window` object, it is implicitly in the global scope.
+`device` オブジェクトは `window` オブジェクトに割当たれるため、暗黙的にグローバルスコープとして扱われます。
- // These reference the same `device`
+ // 下記は同じ `device` オブジェクト
//
var phoneName = window.device.name;
- var phoneName = device.name;
\ No newline at end of file
+ var phoneName = device.name;
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/cd655cc1/docs/jp/1.7.0/cordova/device/device.name.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/device/device.name.md b/docs/jp/1.7.0/cordova/device/device.name.md
index 0fd341d..71765ba 100644
--- a/docs/jp/1.7.0/cordova/device/device.name.md
+++ b/docs/jp/1.7.0/cordova/device/device.name.md
@@ -20,88 +20,88 @@ license: Licensed to the Apache Software Foundation (ASF) under one
device.name
===========
-Get the device's model name.
+デバイスのモデル名を取得します。
var string = device.name;
-
-Description
+
+概要
-----------
-`device.name` returns the name of the device's model or product. This value is set by the device manufacturer and may be different across versions of the same product.
+`device.name` はデバイスのモデル名を返します。この値はデバイスの製造者によって設定されるため、同じモデルでも異なるバージョンで値が異なる場合があります。
-Supported Platforms
+サポートされているプラットフォーム
-------------------
- Android
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
- iPhone
-- Windows Phone 7 ( Mango )
+- Windows Phone 7 (Mango)
- Bada 1.2 & 2.x
-Quick Example
+使用例
-------------
- // Android: Nexus One returns "Passion" (Nexus One code name)
- // Motorola Droid returns "voles"
- // BlackBerry: Torch 9800 returns "9800"
- // iPhone: All devices returns a name set by iTunes e.g. "Joe's iPhone"
+ // Android: Nexus One はコードネームである "Passion" を返します
+ // Motorola Droid は "voles" を返します
+ // BlackBerry: Torch 9800 は "9800" を返します
+ // iPhone: iTunes でセットした名前、 "Joe's iPhone" などを返します
//
var name = device.name;
-Full Example
+詳細な使用例
------------
<!DOCTYPE html>
<html>
<head>
- <title>Device Properties 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() {
var element = document.getElementById('deviceProperties');
-
- element.innerHTML = 'Device Name: ' + device.name + '<br />' +
- 'Device Cordova: ' + device.cordova + '<br />' +
- 'Device Platform: ' + device.platform + '<br />' +
- 'Device UUID: ' + device.uuid + '<br />' +
- 'Device Version: ' + device.version + '<br />';
+
+ element.innerHTML = 'デバイス名: ' + device.name + '<br />' +
+ 'デバイス Cordova: ' + device.cordova + '<br />' +
+ 'デバイスプラットフォーム: ' + device.platform + '<br />' +
+ 'デバイス UUID: ' + device.uuid + '<br />' +
+ 'デバイスバージョン: ' + device.version + '<br />';
}
</script>
</head>
<body>
- <p id="deviceProperties">Loading device properties...</p>
+ <p id="deviceProperties">デバイスプロパティーを読込中...</p>
</body>
</html>
-Android Quirks
+Android に関する注意点
--------------
-- Gets the [product name](http://developer.android.com/reference/android/os/Build.html#PRODUCT) instead of the [model name](http://developer.android.com/reference/android/os/Build.html#MODEL).
- - The product name is often the code name given during production.
- - e.g. Nexus One returns "Passion", Motorola Droid returns "voles"
+- [モデル名](http://developer.android.com/reference/android/os/Build.html#MODEL) の代わりに [製品名](http://developer.android.com/reference/android/os/Build.html#PRODUCT) を取得します。
+ - 製品名はほとんどの場合、生産時のコードネームになります。
+ - 例: Nexus One は "Passion" を返し、 Motorola Droid は "voles" を返します。
-iPhone Quirks
+iPhoneに関する注意点
-------------
-- Gets the [device's custom name](http://developer.apple.com/iphone/library/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/doc/uid/TP40006902-CH3-SW13) instead of the [device model name](http://developer.apple.com/iphone/library/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/doc/uid/TP40006902-CH3-SW1).
- - The custom name is set by the owner in iTunes.
- - e.g. "Joe's iPhone"
+- [モデル名](http://developer.apple.com/iphone/library/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/doc/uid/TP40006902-CH3-SW1) の代わりに [デバイスのカスタムネーム](http://developer.apple.com/iphone/library/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/doc/uid/TP40006902-CH3-SW13) を取得します。
+ - カスタムネームは iTunes のオーナーによって設定されます。
+ - 例: "Joe's iPhone"
-Windows Phone 7 Quirks
+Windows Phone 7 に関する注意点
-------------
-- returns the manufacturer specified device name, for example, the Samsung Focus returns 'SGH-i917'
+- 製造時のデバイス名を返します。例: 'SGH-i917'
-Bada Quirks
+Bada に関する注意点
-----------
-- returns the manufacturer model name. For example 'Samsung Wave S8500'
+- 製造時のモデル名を返します。 例: 'Samsung Wave S8500'
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/cd655cc1/docs/jp/1.7.0/cordova/device/device.platform.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/device/device.platform.md b/docs/jp/1.7.0/cordova/device/device.platform.md
index 44d2127..802c6a5 100644
--- a/docs/jp/1.7.0/cordova/device/device.platform.md
+++ b/docs/jp/1.7.0/cordova/device/device.platform.md
@@ -20,75 +20,75 @@ license: Licensed to the Apache Software Foundation (ASF) under one
device.platform
===============
-Get the device's operating system name.
+デバイスの OS 名を取得します。
var string = device.platform;
-Supported Platforms
+サポートされているプラットフォーム
-------------------
- Android
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
- iPhone
-- Windows Phone 7 ( Mango )
+- Windows Phone 7 (Mango)
- Bada 1.2 & 2.x
-Quick Example
+使用例
-------------
- // Depending on the device, a few examples are:
- // - "Android"
- // - "BlackBerry"
- // - "iPhone"
- // - "webOS"
- // - "WinCE"
+ // デバイスによって異なります。例:
+ // - "Android"
+ // - "BlackBerry"
+ // - "iPhone"
+ // - "webOS"
+ // - "WinCE"
var devicePlatform = device.platform;
-Full Example
+詳細な使用例
------------
<!DOCTYPE html>
<html>
<head>
- <title>Device Properties 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() {
var element = document.getElementById('deviceProperties');
-
- element.innerHTML = 'Device Name: ' + device.name + '<br />' +
- 'Device Cordova: ' + device.cordova + '<br />' +
- 'Device Platform: ' + device.platform + '<br />' +
- 'Device UUID: ' + device.uuid + '<br />' +
- 'Device Version: ' + device.version + '<br />';
+
+ element.innerHTML = 'デバイス名: ' + device.name + '<br />' +
+ 'デバイス Cordova: ' + device.cordova + '<br />' +
+ 'デバイスプラットフォーム: ' + device.platform + '<br />' +
+ 'デバイス UUID: ' + device.uuid + '<br />' +
+ 'デバイスバージョン: ' + device.version + '<br />';
}
</script>
</head>
<body>
- <p id="deviceProperties">Loading device properties...</p>
+ <p id="deviceProperties">デバイスプロパティーを読込中...</p>
</body>
</html>
-
-iPhone Quirks
+
+iPhone に関する注意点
-------------
-The iPhone returns `iPhone` as the platform. The iPad returns `iPad` as the platform. In the simulator they will return `iPhone Simulator` and `iPad Simulator` respectively. These are inaccurate in all cases because Apple has rebranded the iPhone operating system as `iOS`.
+iPhone は `iPhone` をプラットフォームとして返します。 iPad は `iPad` をプラットフォームとして返します。シミュレータの場合は、 `iPhone Simulator` や `iPad Simulator` をそれぞれ返します。 Apple は iPhone の OS の名称を `iOS` に変更したので、この返り値は厳密には正確でないという点に注意してください。
-BlackBerry Quirks
+BlackBerry に関する注意点
-----------------
-Devices may return the device platform version instead of the platform name. For example, the Storm2 9550 would return '2.13.0.95' or similar.
+OS 名ではなくプラットフォームのバージョンを返す可能性があります。例えば、 Storm2 9550 の場合 '2.13.0.95' を返すことがあります。
-Windows Phone 7 Quirks
+Windows Phone 7 に関する注意点
-----------------
-Windows Phone 7 devices report platform as 'WinCE'
+Windows Phone 7 デバイスはプラットフォームとして 'WinCE' を返します。
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/cd655cc1/docs/jp/1.7.0/cordova/device/device.uuid.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/device/device.uuid.md b/docs/jp/1.7.0/cordova/device/device.uuid.md
index 3025d3f..1ab6a9e 100644
--- a/docs/jp/1.7.0/cordova/device/device.uuid.md
+++ b/docs/jp/1.7.0/cordova/device/device.uuid.md
@@ -20,82 +20,82 @@ license: Licensed to the Apache Software Foundation (ASF) under one
device.uuid
===========
-Get the device's Universally Unique Identifier ([UUID](http://en.wikipedia.org/wiki/Universally_Unique_Identifier)).
+デバイスの固定 ID ([UUID](http://en.wikipedia.org/wiki/Universally_Unique_Identifier)) を取得します。
var string = device.uuid;
-
-Description
+
+概要
-----------
-The details of how a UUID is generated are determined by the device manufacturer and specific to the device's platform or model.
+UUID の生成方法については、デバイスの製造者やプラットフォームによって決定されます。
-Supported Platforms
+サポートされているプラットフォーム
-------------------
- Android
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
- iPhone
-- Windows Phone 7 ( Mango )
+- Windows Phone 7 (Mango)
- Bada 1.2 & 2.x
-Quick Example
+使用例
-------------
- // Android: Returns a random 64-bit integer (as a string, again!)
- // The integer is generated on the device's first boot
+ // Android: ランダムな64ビットの数値を文字列として返します
+ // 数値はデバイスの初回起動時に生成されます
+ //
+ // BlackBerry: デバイスの PIN 番号を文字列として返します
+ // この番号は9桁の一意な数値です
//
- // BlackBerry: Returns the PIN number of the device
- // This is a nine-digit unique integer (as a string, though!)
+ // iPhone: (UIDevice クラスのドキュメントに記載)
+ // ハードウエア ID に基づくハッシュ値を返します
+ // デバイスに固有でユーザアカウントとは
+ // リンクされていません
+ // Windows Phone 7 : デバイスユーザのハッシュ値を返します
+ // もしユーザが定義されていない場合、ガイドが生成され、アプリがアンインストールするまで存続します
//
- // iPhone: (Paraphrased from the UIDevice Class documentation)
- // Returns a string of hash values created from multiple hardware identifies.
- // It is guaranteed to be unique for every device and cannot be tied
- // to the user account.
- // Windows Phone 7 : Returns a hash of device+current user,
- // if the user is not defined, a guid is generated and will persist until the app is uninstalled
- //
var deviceID = device.uuid;
-Full Example
+詳細な使用例
------------
<!DOCTYPE html>
<html>
<head>
- <title>Device Properties 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() {
var element = document.getElementById('deviceProperties');
-
- element.innerHTML = 'Device Name: ' + device.name + '<br />' +
- 'Device Cordova: ' + device.cordova + '<br />' +
- 'Device Platform: ' + device.platform + '<br />' +
- 'Device UUID: ' + device.uuid + '<br />' +
- 'Device Version: ' + device.version + '<br />';
+
+ element.innerHTML = 'デバイス名: ' + device.name + '<br />' +
+ 'デバイス Cordova: ' + device.cordova + '<br />' +
+ 'デバイスプラットフォーム: ' + device.platform + '<br />' +
+ 'デバイス UUID: ' + device.uuid + '<br />' +
+ 'デバイスバージョン: ' + device.version + '<br />';
}
</script>
</head>
<body>
- <p id="deviceProperties">Loading device properties...</p>
+ <p id="deviceProperties">デバイスプロパティーを読込中...</p>
</body>
</html>
-iOS Quirk
+iOS に関する注意点
-------------
-The uuid for iOS is not unique for a device, but is unique per application per install. This will change if you delete the app and re-install, and possibly also when you upgrade your iOS version, or even upgrade your app per version (as we've seen in iOS 5.1). Not a reliable value.
+iOS の UUID はデバイスによって一意ではありませんが、インストールされたアプリごとに一意です。もしアプリを削除し再インストールすると、この値は変化します。また、 iOS のバージョンアップをしたとき、もしくはアプリのバージョンアップをしたときにも変化する可能性があります (iOS 5.1 で現象を確認) 。安定した値ではありません。
-Windows Phone 7 Quirks
+Windows Phone 7 に関する注意点
-------------
-The uuid for Windows Phone 7 requires the permission ID_CAP_IDENTITY_DEVICE. Microsoft will likely be deprecating this property in the near future. If the capablility is not available, the application generates a persistent guid, that will be maintained for the install-lifetime of the application on the device.
+Windows Phone 7 の UUID には IDCAPIDENTITY_DEVICE の許可が必要です。 Microsoft はこのプロパティを近い将来サポートしなくなります。もし機能が有効でなければ、アプリが永続的な guid を生成し、インストールされている限り保持されます。
http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/cd655cc1/docs/jp/1.7.0/cordova/device/device.version.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/device/device.version.md b/docs/jp/1.7.0/cordova/device/device.version.md
index 680ac7b..d6c76e4 100644
--- a/docs/jp/1.7.0/cordova/device/device.version.md
+++ b/docs/jp/1.7.0/cordova/device/device.version.md
@@ -20,63 +20,63 @@ license: Licensed to the Apache Software Foundation (ASF) under one
device.version
==============
-Get the operating system version.
+OS のバージョンを取得します。
var string = device.version;
-Supported Platforms
+サポートされているプラットフォーム
-------------------
- Android 2.1+
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
- iPhone
-- Windows Phone 7 ( Mango )
+- Windows Phone 7 (Mango)
- Bada 1.2 & 2.x
-Quick Example
+使用例
-------------
- // Android: Froyo OS would return "2.2"
- // Eclair OS would return "2.1", "2.0.1", or "2.0"
- // Version can also return update level "2.1-update1"
+ // Android: Froyo の場合は "2.2" を返す
+ // Eclair の場合は "2.1", "2.0.1" もしくは "2.0" を返す
+ // アップデートが行われると "2.1-update1" のように返す
//
- // BlackBerry: Torch 9800 using OS 6.0 would return "6.0.0.600"
+ // BlackBerry: OS 6.0 を搭載した Torch 9800 の場合は "6.0.0.600" を返す
//
- // iPhone: iOS 3.2 returns "3.2"
+ // iPhone: iOS 3.2 は "3.2" を返す
//
- // Windows Phone 7: returns current OS version number, ex. on Mango returns 7.10.7720
+ // Windows Phone 7: 現在の OS バージョンを返す、例: Mango は7.10.7720を返す
var deviceVersion = device.version;
-Full Example
+詳細な使用例
------------
<!DOCTYPE html>
<html>
<head>
- <title>Device Properties 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() {
var element = document.getElementById('deviceProperties');
-
- element.innerHTML = 'Device Name: ' + device.name + '<br />' +
- 'Device Cordova: ' + device.cordova + '<br />' +
- 'Device Platform: ' + device.platform + '<br />' +
- 'Device UUID: ' + device.uuid + '<br />' +
- 'Device Version: ' + device.version + '<br />';
+
+ element.innerHTML = 'デバイス名: ' + device.name + '<br />' +
+ 'デバイス Cordova: ' + device.cordova + '<br />' +
+ 'デバイスプラットフォーム: ' + device.platform + '<br />' +
+ 'デバイス UUID: ' + device.uuid + '<br />' +
+ 'デバイスバージョン: ' + device.version + '<br />';
}
</script>
</head>
<body>
- <p id="deviceProperties">Loading device properties...</p>
+ <p id="deviceProperties">デバイスプロパティーを読込中...</p>
</body>
</html>