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

[6/25] docs commit: Translate files related to notification

Translate files related to notification


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/65cddbb0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/65cddbb0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/65cddbb0

Branch: refs/heads/master
Commit: 65cddbb00dcace1e5da64985ea46fdc33b05ef03
Parents: a8112de
Author: Keiko Oda <ke...@gmail.com>
Authored: Fri Jun 15 14:30:16 2012 -0700
Committer: Keiko Oda <ke...@gmail.com>
Committed: Fri Jun 15 14:30:16 2012 -0700

----------------------------------------------------------------------
 .../cordova/notification/notification.alert.md     |   88 +++++++-------
 .../cordova/notification/notification.beep.md      |   66 +++++-----
 .../cordova/notification/notification.confirm.md   |   94 +++++++-------
 docs/jp/1.7.0/cordova/notification/notification.md |    6 +-
 .../cordova/notification/notification.vibrate.md   |   58 +++++-----
 5 files changed, 156 insertions(+), 156 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/65cddbb0/docs/jp/1.7.0/cordova/notification/notification.alert.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/notification/notification.alert.md b/docs/jp/1.7.0/cordova/notification/notification.alert.md
index af225e4..037e414 100644
--- a/docs/jp/1.7.0/cordova/notification/notification.alert.md
+++ b/docs/jp/1.7.0/cordova/notification/notification.alert.md
@@ -20,96 +20,96 @@ license: Licensed to the Apache Software Foundation (ASF) under one
 notification.alert
 ==================
 
-Shows a custom alert or dialog box.
+通知ダイアログボックスを表示します。
 
     navigator.notification.alert(message, alertCallback, [title], [buttonName])
 
-- __message:__ Dialog message (`String`)
-- __alertCallback:__ Callback to invoke when alert dialog is dismissed. (`Function`)
-- __title:__ Dialog title (`String`) (Optional, Default: "Alert")
-- __buttonName:__ Button name (`String`) (Optional, Default: "OK")
-    
-Description
+- __message:__ ダイアログのメッセージを表します (`String`)
+- __alertCallback:__ 通知ダイアログが確認された後に呼び出されるコールバック関数を表します (`Function`)
+- __title:__ ダイアログのタイトルを表します (`String`) (オプション, デフォルト: "Alert")
+- __buttonName:__ ボタンの名前を表します (`String`) (オプション, デフォルト: "OK")
+
+概要
 -----------
 
-Most Cordova implementations use a native dialog box for this feature.  However, some platforms simply use the browser's `alert` function, which is typically less customizable.
+ほとんどの Cordova の実装はネイティブのダイアログボックスを使用しています。一部のプラットフォームのみブラウザの `alert` 関数を使っており、通常これらはカスタマイズが制限されます。
 
-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 / BlackBerry WebWorks (OS 5.0 and higher) / iPhone
+    // Android / BlackBerry WebWorks (OS 5.0 以上) / iPhone
     //
     function alertDismissed() {
-        // do something
+        // 任意のコード
     }
 
     navigator.notification.alert(
-        'You are the winner!',  // message
-        alertDismissed,         // callback
-        'Game Over',            // title
-        'Done'                  // buttonName
+        'あなたの勝ちです!', // メッセージ
+        alertDismissed, // コールバック関数
+        'ゲームオーバー', // タイトル
+        '終了' // ボタン名
     );
-        
-Full Example
+
+詳細な使用例
 ------------
 
     <!DOCTYPE html>
     <html>
       <head>
-        <title>Notification Example</title>
+        <title>Notification の使用例</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() {
-            // Empty
+            // 処理なし
         }
-    
-        // alert dialog dismissed
-	    function alertDismissed() {
-	        // do something
-	    }
 
-        // Show a custom alert
+        // 通知ダイアログボックスが確認された
+        function alertDismissed() {
+            // 任意のコード
+        }
+
+        // 通知ダイアログを表示
         //
         function showAlert() {
-		    navigator.notification.alert(
-		        'You are the winner!',  // message
-		        alertDismissed,         // callback
-		        'Game Over',            // title
-		        'Done'                  // buttonName
-		    );
+            navigator.notification.alert(
+                'あなたの勝ちです!', // メッセージ
+                alertDismissed, // コールバック関数
+                'ゲームオーバー', // タイトル
+                '終了' // ボタン名
+            );
         }
-    
+
         </script>
       </head>
       <body>
-        <p><a href="#" onclick="showAlert(); return false;">Show Alert</a></p>
+        <p><a href="#" onclick="showAlert(); return false;">通知を表示</a></p>
       </body>
     </html>
 
-Windows Phone 7 Quirks
+Windows Phone 7 に関する注意点
 -------------
 
-- Ignores button names, always uses 'OK'
-- There is no built in browser alert, so if you want to just write alert('foo'); you can assign window.alert = navigator.notification.alert;
-- alert + confirm calls are non-blocking, and result is only available asyncronously.
+- ボタンの名前は無視され、常に 'OK' が使用されます。
+- ビルトインのブラウザ通知ダイアログ機能はないため、もし alert('foo'); とだけ書きたい場合は、 window.alert = navigator.notification.alert; と window.alert に Cordova の notification.alert をアサインできます。
+- 通知と確認の呼び出しはノンブロッキングで、結果は非同期でのみ取得可能です。
 
-Bada 2.x Quirks
+Bada 2.xに関する注意点
 ---------------
-- alert uses javascript alert
+- 通知は、 Javascript の alert を使用します。

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/65cddbb0/docs/jp/1.7.0/cordova/notification/notification.beep.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/notification/notification.beep.md b/docs/jp/1.7.0/cordova/notification/notification.beep.md
index ff6b594..2f10730 100644
--- a/docs/jp/1.7.0/cordova/notification/notification.beep.md
+++ b/docs/jp/1.7.0/cordova/notification/notification.beep.md
@@ -20,65 +20,65 @@ license: Licensed to the Apache Software Foundation (ASF) under one
 notification.beep
 =================
 
-The device will play a beep sound.
+デバイスが警告音を鳴らします。
 
     navigator.notification.beep(times);
 
-- __times:__ The number of times to repeat the beep (`Number`)
+- __times:__ 警告音を鳴らす回数を表します (`Number`)
 
-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
+使用例
 -------------
 
-    // Beep twice!
+    // 警告音を2回鳴らす
     navigator.notification.beep(2);
 
-Full Example
+詳細な使用例
 ------------
 
     <!DOCTYPE html>
     <html>
       <head>
-        <title>Notification Example</title>
+        <title>Notification の使用例</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() {
-            // Empty
+            // 処理なし
         }
 
-        // Show a custom alert
+        // 通知ダイアログを表示
         //
         function showAlert() {
-		    navigator.notification.alert(
-		        'You are the winner!',  // message
-		        'Game Over',            // title
-		        'Done'                  // buttonName
-		    );
+            navigator.notification.alert(
+                'あなたの勝ちです!', // メッセージ
+                'ゲームオーバー', // タイトル
+                '終了' // ボタン名
+            );
         }
 
-        // Beep three times
+        // 警告音を3回鳴らす
         //
         function playBeep() {
             navigator.notification.beep(3);
         }
 
-        // Vibrate for 2 seconds
+        // 2秒間バイブレーションさせます
         //
         function vibrate() {
             navigator.notification.vibrate(2000);
@@ -87,27 +87,27 @@ Full Example
         </script>
       </head>
       <body>
-        <p><a href="#" onclick="showAlert(); return false;">Show Alert</a></p>
-        <p><a href="#" onclick="playBeep(); return false;">Play Beep</a></p>
-        <p><a href="#" onclick="vibrate(); return false;">Vibrate</a></p>
+        <p><a href="#" onclick="showAlert(); return false;">通知を表示</a></p>
+        <p><a href="#" onclick="playBeep(); return false;">警告音を鳴らす</a></p>
+        <p><a href="#" onclick="vibrate(); return false;">バイブレーション</a></p>
       </body>
     </html>
 
-Android Quirks
+Android に関する注意点
 --------------
 
-- Android plays the default "Notification ringtone" specified under the "Settings/Sound & Display" panel.
+- Android では、 "Settings/Sound & Display" パネルで設定されたデフォルトの "Notification ringtone" を鳴らします。
 
-iPhone Quirks
+iPhone に関する注意点
 -------------
 
-- Ignores the beep count argument.
-- There is no native beep API for iPhone.
-  - Cordova implements beep by playing an audio file via the media API.
-  - The user must provide a file with the desired beep tone.
-  - This file must be less than 30 seconds long, located in the www/ root, and must be named `beep.wav`.
+- 引数の警告音の回数を無視します。
+- iPhone はネイティブの beep API を持っていません。
+- Cordova は media API を使って、オーディオファイルを再生することで警告音を実装しています。
+- ユーザーは適切な警告音のファイルを用意する必要があります。
+- このファイルは30秒未満とし、 www/root に beep.wav として保存してください。
 
-Windows Phone 7 Quirks
+Windows Phone 7 に関する注意点
 -------------
 
-- WP7 Cordova lib includes a generic beep file that is used. 
+- WP7 の Cordova ライブラリは独自の警告音ファイルを含んでおり、それを使用しています。

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/65cddbb0/docs/jp/1.7.0/cordova/notification/notification.confirm.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/notification/notification.confirm.md b/docs/jp/1.7.0/cordova/notification/notification.confirm.md
index b17a9ad..00b7f61 100755
--- a/docs/jp/1.7.0/cordova/notification/notification.confirm.md
+++ b/docs/jp/1.7.0/cordova/notification/notification.confirm.md
@@ -20,103 +20,103 @@ license: Licensed to the Apache Software Foundation (ASF) under one
 notification.confirm
 ====================
 
-Shows a customizable confirmation dialog box.
+カスタマイズ可能な確認ダイアログボックスを表示します。
 
     navigator.notification.confirm(message, confirmCallback, [title], [buttonLabels])
 
-- __message:__ Dialog message (`String`)
-- __confirmCallback:__ - Callback to invoke with index of button pressed (1, 2 or 3). (`Number`)
-- __title:__ Dialog title (`String`) (Optional, Default: "Confirm")
-- __buttonLabels:__ Comma separated string with button labels (`String`) (Optional, Default: "OK,Cancel")
-    
-Description
+- __message:__ ダイアログのメッセージを表します (`String`)
+- __confirmCallback:__ 押されたボタンのインデックス (1, 2, または3) とともに呼び出されるコールバック関数を表します (`Number`)
+- __title:__ ダイアログのタイトルを表します (`String`) (オプション, デフォルト: "Confirm")
+- __buttonLabels:__ ボタンのラベルを設定するためのカンマ区切りの文字列を表します (String) (オプション, デフォルト: "OK,Cancel")
+
+概要
 -----------
 
-Function `notification.confirm` displays a native dialog box that is more customizable than the browser's `confirm` function.
+`notification.confirm` 関数は、ブラウザの confirm 関数よりも広いカスタマイズ性を持ったネイティブダイアログボックスを表示する関数です。
 
-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
+使用例
 -------------
 
-	// process the confirmation dialog result
-	function onConfirm(button) {
-		alert('You selected button ' + button);
-	}
+    // 確認ダイアログの表示プロセスの開始
+    function onConfirm(button) {
+        alert('選択されたボタン ' + button);
+    }
 
-    // Show a custom confirmation dialog
+    // カスタム確認ダイアログを表示
     //
     function showConfirm() {
         navigator.notification.confirm(
-	        'You are the winner!',  // message
-			onConfirm,				// callback to invoke with index of button pressed
-	        'Game Over',            // title
-	        'Restart,Exit'          // buttonLabels
+            'あなたの勝ちです!', // メッセージ
+            onConfirm, // 選択されたボタン情報とともに呼ばれるコールバック関数
+            'ゲームオーバー', // タイトル
+            'リスタート,終了' // ボタン
         );
     }
-        
-Full Example
+
+詳細な使用例
 ------------
 
     <!DOCTYPE html>
     <html>
       <head>
-        <title>Notification Example</title>
+        <title>Notification の使用例</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() {
-            // Empty
+            // 処理なし
         }
-    
-		// process the confirmation dialog result
-		function onConfirm(button) {
-			alert('You selected button ' + button);
-		}
 
-        // Show a custom confirmation dialog
+        // 確認ダイアログの表示プロセスの開始
+        function onConfirm(button) {
+            alert('選択されたボタン ' + button);
+        }
+
+        // カスタム確認ダイアログを表示
         //
         function showConfirm() {
             navigator.notification.confirm(
-		        'You are the winner!',  // message
-				onConfirm,				// callback to invoke with index of button pressed
-		        'Game Over',            // title
-		        'Restart,Exit'          // buttonLabels
+                'あなたの勝ちです!', // メッセージ
+                onConfirm, // 選択されたボタン情報とともに呼ばれるコールバック関数
+                'ゲームオーバー', // タイトル
+                'リスタート,終了' // ボタン
             );
         }
-    
+
         </script>
       </head>
       <body>
-        <p><a href="#" onclick="showConfirm(); return false;">Show Confirm</a></p>
+        <p><a href="#" onclick="showConfirm(); return false;">確認ダイアログを表示</a></p>
       </body>
     </html>
 
-Windows Phone 7 Quirks
+Windows Phone 7 に関する注意点
 -------------
 
-- Ignores button names, always 'OK|Cancel'
-- There is no built in browser confirm, so if you want to just write alert('foo'); you can assign window.confirm = navigator.notification.confirm;
-- alert + confirm calls are non-blocking, and result is only available asyncronously.
+- ボタンの名前は無視され、常に 'OK|Cancel' が使用されます。
+- ビルトインのブラウザ確認ダイアログ機能はないため、もし confirm('foo'); とだけ書きたい場合は、 window.confirm = navigator.notification.confirm; と window.confirm に Cordova の notification.confirm をアサインできます。
+- 通知と確認の呼び出しはノンブロッキングで、結果は非同期でのみ取得可能です。
 
-Bada 2.x Quirks
+Bada 2.x に関する注意点
 ---------------
-- confirm uses javascript alert
+- 確認は、 Javascript の alert を使用します。
 
-Bada 1.2 Quirks
+Bada 1.2 に関する注意点
 ---------------
-- Ignore button names, always 'OK|Cancel'
+- ボタンの名前は無視され、常に 'OK|Cancel' が使用されます。

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/65cddbb0/docs/jp/1.7.0/cordova/notification/notification.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/notification/notification.md b/docs/jp/1.7.0/cordova/notification/notification.md
index 865809f..b973916 100644
--- a/docs/jp/1.7.0/cordova/notification/notification.md
+++ b/docs/jp/1.7.0/cordova/notification/notification.md
@@ -20,12 +20,12 @@ license: Licensed to the Apache Software Foundation (ASF) under one
 Notification
 ============
 
-> Visual, audible, and tactile device notifications.
+> 視覚、聴覚、触覚を用いたデバイス通知機能を提供します。
 
-Methods
+メソッド
 -------
 
 - notification.alert
 - notification.confirm
 - notification.beep
-- notification.vibrate
\ No newline at end of file
+- notification.vibrate

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/65cddbb0/docs/jp/1.7.0/cordova/notification/notification.vibrate.md
----------------------------------------------------------------------
diff --git a/docs/jp/1.7.0/cordova/notification/notification.vibrate.md b/docs/jp/1.7.0/cordova/notification/notification.vibrate.md
index 7bd7125..8229a64 100644
--- a/docs/jp/1.7.0/cordova/notification/notification.vibrate.md
+++ b/docs/jp/1.7.0/cordova/notification/notification.vibrate.md
@@ -20,66 +20,66 @@ license: Licensed to the Apache Software Foundation (ASF) under one
 notification.vibrate
 ====================
 
-Vibrates the device for the specified amount of time.
+指定された時間デバイスをバイブレーションさせます。
 
     navigator.notification.vibrate(milliseconds)
 
-- __time:__ Milliseconds to vibrate the device. 1000 milliseconds equals 1 second (`Number`)
+- __time:__ バイブレーションの長さをミリ秒単位で表します。 1000ミリ秒は1秒です (`Number`)
 
-Supported Platforms
+サポートされているプラットフォーム
 -------------------
 
 - Android
-- BlackBerry WebWorks (OS 5.0 and higher)
+- BlackBerry WebWorks (OS 5.0 以上)
 - iPhone
 - Windows Phone 7
 - Bada 1.2 & 2.x
 
-Quick Example
+使用例
 -------------
 
-    // Vibrate for 2.5 seconds
+    // 2.5秒間バイブレーションさせます
     //
     navigator.notification.vibrate(2500);
 
-Full Example
+詳細な使用例
 ------------
-    
+
     <!DOCTYPE html>
     <html>
       <head>
-        <title>Notification Example</title>
+        <title>Notification の使用例</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() {
-            // Empty
+            // 処理なし
         }
-    
-        // Show a custom alert
+
+        // 通知ダイアログを表示
         //
         function showAlert() {
-		    navigator.notification.alert(
-		        'You are the winner!',  // message
-		        'Game Over',            // title
-		        'Done'                  // buttonName
-		    );
+            navigator.notification.alert(
+                'あなたの勝ちです!', // メッセージ
+                'ゲームオーバー', // タイトル
+                '終了' // ボタン名
+            );
         }
-    
-        // Beep three times
+
+        // 警告音を3回鳴らす
         //
         function playBeep() {
             navigator.notification.beep(3);
         }
-    
-        // Vibrate for 2 seconds
+
+        // 2秒間バイブレーションさせます
         //
         function vibrate() {
             navigator.notification.vibrate(2000);
@@ -88,16 +88,16 @@ Full Example
         </script>
       </head>
       <body>
-        <p><a href="#" onclick="showAlert(); return false;">Show Alert</a></p>
-        <p><a href="#" onclick="playBeep(); return false;">Play Beep</a></p>
-        <p><a href="#" onclick="vibrate(); return false;">Vibrate</a></p>
+        <p><a href="#" onclick="showAlert(); return false;">通知を表示</a></p>
+        <p><a href="#" onclick="playBeep(); return false;">警告音を鳴らす</a></p>
+        <p><a href="#" onclick="vibrate(); return false;">バイブレーション</a></p>
       </body>
     </html>
 
-iPhone Quirks
+iPhone に関する注意点
 -------------
 
-- __time:__ Ignores the time and vibrates for a pre-set amount of time.
+- __time:__ 引数のバイブレーションの長さを無視し、あらかじめ定められた時間バイブレーションします。
 
         navigator.notification.vibrate();
-        navigator.notification.vibrate(2500);   // 2500 is ignored
+        navigator.notification.vibrate(2500); // 2500は無視されます