documentation translation: cordova-plugin-dialogs
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/6b068c86 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/6b068c86 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/6b068c86 Branch: refs/heads/master Commit: 6b068c86d354884c4e5c8a4c177dfa7e13ebf33a Parents: 4eb5fd5 Author: ldeluca <[email protected]> Authored: Tue May 27 21:36:19 2014 -0400 Committer: ldeluca <[email protected]> Committed: Tue May 27 21:36:19 2014 -0400 ---------------------------------------------------------------------- doc/de/index.md | 247 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/ja/index.md | 35 ++++---- 2 files changed, 265 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/6b068c86/doc/de/index.md ---------------------------------------------------------------------- diff --git a/doc/de/index.md b/doc/de/index.md new file mode 100644 index 0000000..5b630f6 --- /dev/null +++ b/doc/de/index.md @@ -0,0 +1,247 @@ +<!--- + 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.dialogs + +Dieses Plugin ermöglicht den Zugriff auf einige native Dialog-UI-Elemente. + +## Installation + + cordova plugin add org.apache.cordova.dialogs + + +## Methoden + +* `navigator.notification.alert` +* `navigator.notification.confirm` +* `navigator.notification.prompt` +* `navigator.notification.beep` + +## navigator.notification.alert + +Zeigt eine benutzerdefinierte Warnung oder Dialogfeld Feld. Die meisten Implementierungen von Cordova ein native Dialogfeld für dieses Feature verwenden, aber einige Plattformen des Browsers `alert` Funktion, die in der Regel weniger anpassbar ist. + + Navigator.Notification.Alert (Message, AlertCallback, [Titel], [ButtonName]) + + +* **Nachricht**: Dialogfeld Nachricht. *(String)* + +* **AlertCallback**: Callback aufgerufen wird, wenn Warnungs-Dialogfeld geschlossen wird. *(Funktion)* + +* **Titel**: Dialog "Titel". *(String)* (Optional, Standard ist`Alert`) + +* **ButtonName**: Name der Schaltfläche. *(String)* (Optional, Standard ist`OK`) + +### Beispiel + + function alertDismissed() { + // do something + } + + navigator.notification.alert( + 'You are the winner!', // message + alertDismissed, // callback + 'Game Over', // title + 'Done' // buttonName + ); + + +### Unterstützte Plattformen + +* Amazon Fire OS +* Android +* BlackBerry 10 +* Firefox OS +* iOS +* Tizen +* Windows Phone 7 und 8 +* Windows 8 + +### Windows Phone 7 und 8 Macken + +* Es gibt keine eingebaute Datenbanksuchroutine-Warnung, aber Sie können binden, wie folgt zu nennen `alert()` im globalen Gültigkeitsbereich: + + window.alert = navigator.notification.alert; + + +* Beide `alert` und `confirm` sind nicht blockierende Aufrufe, die Ergebnisse davon nur asynchron sind. + +### Firefox OS Macken: + +Beide Native blockierenden `window.alert()` und nicht-blockierende `navigator.notification.alert()` stehen zur Verfügung. + +## navigator.notification.confirm + +Zeigt das Dialogfeld anpassbare Bestätigung. + + navigator.notification.confirm(message, confirmCallback, [title], [buttonLabels]) + + +* **Nachricht**: Dialogfeld Nachricht. *(String)* + +* **ConfirmCallback**: Callback aufgerufen wird, mit Index gedrückt (1, 2 oder 3) oder wenn das Dialogfeld geschlossen wird, ohne einen Tastendruck (0). *(Funktion)* + +* **Titel**: Dialog "Titel". *(String)* (Optional, Standard ist`Confirm`) + +* **ButtonLabels**: Array von Zeichenfolgen, die Schaltflächenbezeichnungen angeben. *(Array)* (Optional, Standard ist [ `OK,Cancel` ]) + +### confirmCallback + +Die `confirmCallback` wird ausgeführt, wenn der Benutzer eine der Schaltflächen im Dialogfeld zur Bestätigung drückt. + +Der Rückruf dauert das Argument `buttonIndex` *(Anzahl)*, die der Index der Schaltfläche gedrückt ist. Beachten Sie, dass der Index 1-basierte Indizierung, verwendet, sodass der Wert ist `1` , `2` , `3` , etc.. + +### Beispiel + + function onConfirm(buttonIndex) { + alert('You selected button ' + buttonIndex); + } + + navigator.notification.confirm( + 'You are the winner!', // message + onConfirm, // callback to invoke with index of button pressed + 'Game Over', // title + ['Restart','Exit'] // buttonLabels + ); + + +### Unterstützte Plattformen + +* Amazon Fire OS +* Android +* BlackBerry 10 +* Firefox OS +* iOS +* Tizen +* Windows Phone 7 und 8 +* Windows 8 + +### Windows Phone 7 und 8 Macken + +* Es gibt keine integrierte Browser-Funktion für `window.confirm` , aber Sie können es binden, indem Sie zuweisen: + + window.confirm = navigator.notification.confirm; + + +* Aufrufe von `alert` und `confirm` sind nicht blockierend, so dass das Ergebnis nur asynchron zur Verfügung steht. + +### Firefox OS Macken: + +Beide Native blockierenden `window.confirm()` und nicht-blockierende `navigator.notification.confirm()` stehen zur Verfügung. + +## navigator.notification.prompt + +Zeigt eine native Dialogfeld, das mehr als des Browsers anpassbar ist `prompt` Funktion. + + navigator.notification.prompt(message, promptCallback, [title], [buttonLabels], [defaultText]) + + +* **Nachricht**: Dialogfeld Nachricht. *(String)* + +* **PromptCallback**: Callback aufgerufen wird, mit Index gedrückt (1, 2 oder 3) oder wenn das Dialogfeld geschlossen wird, ohne einen Tastendruck (0). *(Funktion)* + +* **Titel**: Dialog Title *(String)* (Optional, Standard ist`Prompt`) + +* **ButtonLabels**: Array von Zeichenfolgen angeben Schaltfläche Etiketten *(Array)* (Optional, Standard ist`["OK","Cancel"]`) + +* **DefaultText**: Standard-Textbox Eingabewert ( `String` ) (Optional, Standard: leere Zeichenfolge) + +### promptCallback + +Die `promptCallback` wird ausgeführt, wenn der Benutzer eine der Schaltflächen im Eingabedialogfeld drückt. Die `results` an den Rückruf übergebene Objekt enthält die folgenden Eigenschaften: + +* **ButtonIndex**: der Index der Schaltfläche gedrückt. *(Anzahl)* Beachten Sie, dass der Index 1-basierte Indizierung, verwendet, sodass der Wert ist `1` , `2` , `3` , etc.. + +* **Eingang1**: in Eingabedialogfeld eingegebenen Text. *(String)* + +### Beispiel + + function onPrompt(results) { + alert("You selected button number " + results.buttonIndex + " and entered " + results.input1); + } + + navigator.notification.prompt( + 'Please enter your name', // message + onPrompt, // callback to invoke + 'Registration', // title + ['Ok','Exit'], // buttonLabels + 'Jane Doe' // defaultText + ); + + +### Unterstützte Plattformen + +* Amazon Fire OS +* Android +* Firefox OS +* iOS +* Windows Phone 7 und 8 + +### Android Macken + +* Android unterstützt maximal drei Schaltflächen und mehr als das ignoriert. + +* Auf Android 3.0 und höher, werden die Schaltflächen in umgekehrter Reihenfolge für Geräte angezeigt, die das Holo-Design verwenden. + +### Firefox OS Macken: + +Beide Native blockierenden `window.prompt()` und nicht-blockierende `navigator.notification.prompt()` stehen zur Verfügung. + +## navigator.notification.beep + +Das Gerät spielt einen Signalton sound. + + navigator.notification.beep(times); + + +* **Zeiten**: die Anzahl der Wiederholungen des Signaltons. *(Anzahl)* + +### Beispiel + + // Beep twice! + navigator.notification.beep(2); + + +### Unterstützte Plattformen + +* Amazon Fire OS +* Android +* BlackBerry 10 +* iOS +* Tizen +* Windows Phone 7 und 8 +* Windows 8 + +### Amazon Fire OS Macken + +* Amazon Fire OS spielt die Standardeinstellung **Akustische Benachrichtigung** unter **Einstellungen/Display & Sound** Bereich angegeben. + +### Android Macken + +* Android spielt die Standardeinstellung **Benachrichtigung Klingelton** unter **Einstellungen/Sound & Display** -Panel angegeben. + +### Windows Phone 7 und 8 Macken + +* Stützt sich auf eine generische Piepton-Datei aus der Cordova-Distribution. + +### Tizen Macken + +* Tizen implementiert Signaltöne durch Abspielen einer Audiodatei über die Medien API. + +* Die Beep-Datei muss kurz sein, befinden muss einem `sounds` Unterverzeichnis des Stammverzeichnisses der Anwendung, und muss den Namen`beep.wav`. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/6b068c86/doc/ja/index.md ---------------------------------------------------------------------- diff --git a/doc/ja/index.md b/doc/ja/index.md index 20b430a..eae8208 100644 --- a/doc/ja/index.md +++ b/doc/ja/index.md @@ -19,7 +19,7 @@ # org.apache.cordova.dialogs -This plugin provides access to some native dialog UI elements. +ãã®ãã©ã°ã¤ã³ã¯ããã¤ãã®ãã¤ãã£ãã®ãã¤ã¢ãã°ã® UI è¦ç´ ã¸ã®ã¢ã¯ã»ã¹ãæä¾ãã¾ãã ## ã¤ã³ã¹ãã¼ã« @@ -35,7 +35,7 @@ This plugin provides access to some native dialog UI elements. ## navigator.notification.alert -Shows a custom alert or dialog box. Most Cordova implementations use a native dialog box for this feature, but some platforms use the browser's `alert` function, which is typically less customizable. +ã«ã¹ã¿ã ã®è¦åã¾ãã¯ãã¤ã¢ãã° ããã¯ã¹ã表示ããã¾ãã ã»ã¨ãã©ã³ã«ãã ãã¤ãã£ã] ãã¤ã¢ãã° ããã¯ã¹ã®ä½¿ç¨ãã®æ©è½ãããã¤ãã®ãã©ãããã©ã¼ã ã使ç¨ãã¦ããã©ã¦ã¶ã¼ã® `alert` 颿°ã¯ãé常ããå°ãªãã«ã¹ã¿ãã¤ãºå¯è½ã§ãã navigator.notification.alert(message, alertCallback, [title], [buttonName]) @@ -44,7 +44,7 @@ Shows a custom alert or dialog box. Most Cordova implementations use a native di * **alertCallback**: è¦åãã¤ã¢ãã°ãéããããã¨ãã«å¼ã³åºãã³ã¼ã«ããã¯ã*(æ©è½)* -* **title**: Dialog title. *(String)* (Optional, defaults to `Alert`) +* **ã¿ã¤ãã«**: ãã¤ã¢ãã°ã®ã¿ã¤ãã«ã*(æåå)*(çç¥å¯è½ãæ¢å®å¤ã¯`Alert`) * **buttonName**: ãã¿ã³ã®ååã*(æåå)*(çç¥å¯è½ãæ¢å®å¤ã¯`OK`) @@ -82,13 +82,13 @@ Shows a custom alert or dialog box. Most Cordova implementations use a native di * 両æ¹ã® `alert` 㨠`confirm` ã¯éããããã³ã°å¼ã³åºããçµæã¯éåæçã«ã®ã¿å©ç¨ã§ãã¾ãã -### Firefox OS Quirks: +### Firefox OS äºæ: -Both native-blocking `window.alert()` and non-blocking `navigator.notification.alert()` are available. +両æ¹ã®ãã¤ãã£ã ããã㯠`window.alert()` ãã³ ããããã³ã°ã¨ `navigator.notification.alert()` ã¯å©ç¨ã§ãã¾ãã ## navigator.notification.confirm -Displays a customizable confirmation dialog box. +ã«ã¹ã¿ãã¤ãºå¯è½ãªç¢ºèªã®ãã¤ã¢ãã° ããã¯ã¹ã表示ããã¾ãã navigator.notification.confirm(message, confirmCallback, [title], [buttonLabels]) @@ -103,9 +103,9 @@ Displays a customizable confirmation dialog box. ### confirmCallback -The `confirmCallback` executes when the user presses one of the buttons in the confirmation dialog box. +`confirmCallback`ã®ç¢ºèªãã¤ã¢ãã° ããã¯ã¹ã§ãã¿ã³ãæ¼ããã¨ãã«å®è¡ããã¾ãã -The callback takes the argument `buttonIndex` *(Number)*, which is the index of the pressed button. Note that the index uses one-based indexing, so the value is `1`, `2`, `3`, etc. +ã³ã¼ã«ããã¯å¼æ° `buttonIndex` *ï¼çªå·ï¼*ã¯ãæ¼ããããã¿ã³ã®ã¤ã³ããã¯ã¹ã ã¡ã¢ãã¨ãã¤ã³ããã¯ã¹ã使ç¨ã㦠1 ãã¼ã¹ã®ã¤ã³ããã¯ã¹åãã®ã§ãå¤ã¯ `1` ã `2` ã `3` ãçã ### ä¾ @@ -141,20 +141,20 @@ The callback takes the argument `buttonIndex` *(Number)*, which is the index of * å¼ã³åºãã `alert` 㨠`confirm` ã§ã¯éããããã³ã°ãçµæã¯éåæçã«ã®ã¿ä½¿ç¨ã§ãã¾ãã -### Firefox OS Quirks: +### Firefox OS äºæ: -Both native-blocking `window.confirm()` and non-blocking `navigator.notification.confirm()` are available. +両æ¹ã®ãã¤ãã£ã ããã㯠`window.confirm()` ãã³ ããããã³ã°ã¨ `navigator.notification.confirm()` ã¯å©ç¨ã§ãã¾ãã ## navigator.notification.prompt -Displays a native dialog box that is more customizable than the browser's `prompt` function. +ãã©ã¦ã¶ã¼ã®ãã詳細ã«ã«ã¹ã¿ãã¤ãºã¯ãã¤ãã£ãã®ãã¤ã¢ãã° ããã¯ã¹ã表示ããã¾ã `prompt` 颿°ã navigator.notification.prompt(message, promptCallback, [title], [buttonLabels], [defaultText]) * **ã¡ãã»ã¼ã¸**: ãã¤ã¢ãã° ã¡ãã»ã¼ã¸ã*(æåå)* -* **promptCallback**ï¼ ãã¿ã³ãæ¼ãããã¨ãã«å¼ã³åºãã³ã¼ã«ããã¯ã*(æ©è½)* +* **promptCallback**: ã¤ã³ããã¯ã¹ (1ã2ãã¾ã㯠3) ãæ¼ããããã¿ã³ã¾ãã¯ãã¤ã¢ãã° ããã¯ã¹ã¯ããã¿ã³ãæ¼ã ï¼0ï¼ ãªãã«è§£éãããã¨ãã«å¼ã³åºãã³ã¼ã«ããã¯ã*(æ©è½)* * **ã¿ã¤ãã«**: *(æåå)* (çç¥å¯è½ãæ¢å®å¤ã®ã¿ã¤ãã«] ãã¤ã¢ãã°`Prompt`) @@ -164,7 +164,7 @@ Displays a native dialog box that is more customizable than the browser's `promp ### promptCallback -The `promptCallback` executes when the user presses one of the buttons in the prompt dialog box. The `results` object passed to the callback contains the following properties: +`promptCallback`ããã³ãã ãã¤ã¢ãã° ããã¯ã¹å ã®ãã¿ã³ã®ãããããæ¼ããã¨ãã«å®è¡ããã¾ãã`results`ã³ã¼ã«ããã¯ã«æ¸¡ããããªãã¸ã§ã¯ãã«ã次ã®ããããã£ãå«ã¾ãã¦ãã¾ãã * **buttonIndex**: æ¼ããããã¿ã³ã®ã¤ã³ããã¯ã¹ã*(æ°)*ã¡ã¢ãã¨ãã¤ã³ããã¯ã¹ã使ç¨ã㦠1 ãã¼ã¹ã®ã¤ã³ããã¯ã¹åãã®ã§ãå¤ã¯ `1` ã `2` ã `3` ãçã @@ -191,6 +191,7 @@ The `promptCallback` executes when the user presses one of the buttons in the pr * ã¢ã³ããã¤ã * Firefox ã® OS * iOS +* Windows Phone 7 㨠8 ### Android ã®ç @@ -198,13 +199,13 @@ The `promptCallback` executes when the user presses one of the buttons in the pr * ã¢ã³ããã¤ã 3.0 ã¨å¾ãããã®ãã¼ãã使ç¨ããããã¤ã¹ãéã®é åºã§ãã¿ã³ã表示ããã¾ãã -### Firefox OS Quirks: +### Firefox OS äºæ: -Both native-blocking `window.prompt()` and non-blocking `navigator.notification.prompt()` are available. +両æ¹ã®ãã¤ãã£ã ããã㯠`window.prompt()` ãã³ ããããã³ã°ã¨ `navigator.notification.prompt()` ã¯å©ç¨ã§ãã¾ãã ## navigator.notification.beep -The device plays a beep sound. +ããã¤ã¹ ãµã¦ã³ãããã¼ãé³ãåçãã¾ãã navigator.notification.beep(times); @@ -227,7 +228,7 @@ The device plays a beep sound. * Windows Phone 7 㨠8 * Windows 8 -### Amazon Fire OS Quirks +### ã¢ãã¾ã³ç« OS ç * ã¢ãã¾ã³ç« OS ããã©ã«ã**è¨å®/表示 ï¼ ãµã¦ã³ã**ããã«ã®ä¸ã«æå®ãã**éç¥é³**ãæããã¦ãã¾ãã
