You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ld...@apache.org on 2014/07/07 19:49:45 UTC

[08/10] git commit: documentation translation: cordova-plugin-battery-status

documentation translation: cordova-plugin-battery-status


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/7bf2c50f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/7bf2c50f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/7bf2c50f

Branch: refs/heads/master
Commit: 7bf2c50fea2fec98e03e4165c99bda51f9f6aad8
Parents: 734807b
Author: ldeluca <ld...@us.ibm.com>
Authored: Tue May 27 21:35:54 2014 -0400
Committer: ldeluca <ld...@us.ibm.com>
Committed: Tue May 27 21:35:54 2014 -0400

----------------------------------------------------------------------
 doc/de/index.md | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++
 doc/ja/index.md |  11 +++--
 2 files changed, 139 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/7bf2c50f/doc/de/index.md
----------------------------------------------------------------------
diff --git a/doc/de/index.md b/doc/de/index.md
new file mode 100644
index 0000000..6d7e4ff
--- /dev/null
+++ b/doc/de/index.md
@@ -0,0 +1,132 @@
+<!---
+    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.
+-->
+
+# org.Apache.Cordova.Battery-status
+
+Dieses Plugin stellt eine Implementierung der eine alte Version des [Batterie-Status-Ereignisse-API][1].
+
+ [1]: http://www.w3.org/TR/2011/WD-battery-status-20110915/
+
+Es fügt die folgenden drei `window` Veranstaltungen:
+
+*   batterystatus
+*   batterycritical
+*   batterylow
+
+## Installation
+
+    cordova plugin add org.apache.cordova.battery-status
+    
+
+## batterystatus
+
+Dieses Ereignis wird ausgelöst, wenn der Prozentsatz der Akkuladung um mindestens 1 Prozent ändert, oder wenn das Gerät eingesteckt oder "Unplugged".
+
+Der Batterie-Status-Handler wird ein Objekt übergeben, das zwei Eigenschaften enthält:
+
+*   **Ebene**: der Prozentsatz der Batterieladung (0-100). *(Anzahl)*
+
+*   **IsPlugged**: ein boolescher Wert, der angibt, ob das Gerät eingesteckt Zoll *(boolesch)*
+
+Anwendungen sollten in der Regel verwenden `window.addEventListener` Anfügen einen Ereignis-Listener einmal den `deviceready` Event Feuer. z.B.:
+
+### Unterstützte Plattformen
+
+*   Amazon Fire OS
+*   iOS
+*   Android
+*   BlackBerry 10
+*   Windows Phone 7 und 8
+*   Tizen
+*   Firefox OS
+
+### Windows Phone 7 und 8 Macken
+
+Windows Phone 7 bietet keine systemeigenen APIs um zu bestimmen, Batterie-Niveau, so dass die `level` -Eigenschaft ist nicht verfügbar. Der `isPlugged` -Parameter *wird* unterstützt.
+
+### Beispiel
+
+    window.addEventListener("batterystatus", onBatteryStatus, false);
+    
+    function onBatteryStatus(info) {
+        // Handle the online event
+        console.log("Level: " + info.level + " isPlugged: " + info.isPlugged);
+    }
+    
+
+## batterycritical
+
+Das Ereignis wird ausgelöst, wenn der Prozentsatz der Batterieladung der kritischen Akku-Schwellenwert erreicht hat. Der Wert ist gerätespezifisch.
+
+Die `batterycritical` Handler übergeben wird ein Objekt mit zwei Eigenschaften:
+
+*   **Ebene**: der Prozentsatz der Batterieladung (0-100). *(Anzahl)*
+
+*   **IsPlugged**: ein boolescher Wert, der angibt, ob das Gerät eingesteckt Zoll *(boolesch)*
+
+Anwendungen sollten in der Regel verwenden `window.addEventListener` einmal einen Ereignis-Listener hinzufügen das `deviceready` -Ereignis ausgelöst.
+
+### Unterstützte Plattformen
+
+*   Amazon Fire OS
+*   iOS
+*   Android
+*   BlackBerry 10
+*   Tizen
+*   Firefox OS
+
+### Beispiel
+
+    window.addEventListener("batterycritical", onBatteryCritical, false);
+    
+    function onBatteryCritical(info) {
+        // Handle the battery critical event
+        alert("Battery Level Critical " + info.level + "%\nRecharge Soon!");
+    }
+    
+
+## batterylow
+
+Das Ereignis wird ausgelöst, wenn der Prozentsatz der Akkuladung, die Batterie-Schwelle, gerätespezifische Wert erreicht hat.
+
+Die `batterylow` Handler übergeben wird ein Objekt mit zwei Eigenschaften:
+
+*   **Ebene**: der Prozentsatz der Batterieladung (0-100). *(Anzahl)*
+
+*   **IsPlugged**: ein boolescher Wert, der angibt, ob das Gerät eingesteckt Zoll *(boolesch)*
+
+Anwendungen sollten in der Regel verwenden `window.addEventListener` einmal einen Ereignis-Listener hinzufügen das `deviceready` -Ereignis ausgelöst.
+
+### Unterstützte Plattformen
+
+*   Amazon Fire OS
+*   iOS
+*   Android
+*   BlackBerry 10
+*   Tizen
+*   Firefox OS
+
+### Beispiel
+
+    window.addEventListener("batterylow", onBatteryLow, false);
+    
+    function onBatteryLow(info) {
+        // Handle the battery low event
+        alert("Battery Level Low " + info.level + "%");
+    }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/7bf2c50f/doc/ja/index.md
----------------------------------------------------------------------
diff --git a/doc/ja/index.md b/doc/ja/index.md
index 99dcc32..9d77097 100644
--- a/doc/ja/index.md
+++ b/doc/ja/index.md
@@ -17,13 +17,13 @@
     under the License.
 -->
 
-# org.apache.cordova.battery-status
+# org.apache.cordova.battery ステータス
 
-This plugin provides an implementation of an old version of the [Battery Status Events API][1].
+このプラグインは、[バッテリ ステータス イベント API][1]の旧バージョンの実装を提供します.
 
  [1]: http://www.w3.org/TR/2011/WD-battery-status-20110915/
 
-It adds the following three `window` events:
+次の 3 つを追加します `window` イベント。
 
 *   batterystatus
 *   batterycritical
@@ -44,7 +44,7 @@ It adds the following three `window` events:
 
 *   **起こしたり**: デバイスが接続されてインチ*(ブール値)*かどうかを示すブール値
 
-Applications typically should use `window.addEventListener` to attach an event listener once the `deviceready` event fires. e.g.:
+通常アプリケーションに使用する必要があります `window.addEventListener` 一度のイベント リスナーをアタッチし、 `deviceready` イベント火災。 例。
 
 ### サポートされているプラットフォーム
 
@@ -54,6 +54,7 @@ Applications typically should use `window.addEventListener` to attach an event l
 *   ブラックベリー 10
 *   Windows Phone 7 と 8
 *   Tizen
+*   Firefox の OS
 
 ### Windows Phone 7 と 8 癖
 
@@ -88,6 +89,7 @@ Windows Phone 7 は、バッテリーのレベルを決定するネイティブ
 *   アンドロイド
 *   ブラックベリー 10
 *   Tizen
+*   Firefox の OS
 
 ### 例
 
@@ -118,6 +120,7 @@ Windows Phone 7 は、バッテリーのレベルを決定するネイティブ
 *   アンドロイド
 *   ブラックベリー 10
 *   Tizen
+*   Firefox の OS
 
 ### 例