Translate comments to English

This will hopefully prevent a Libre-/OpenOffice's comment language problem for this project ;)
parent a960f6af
...@@ -328,7 +328,7 @@ public class LocalNotification extends CordovaPlugin { ...@@ -328,7 +328,7 @@ public class LocalNotification extends CordovaPlugin {
} }
/** /**
* Gibt an, ob die App im Hintergrund läuft. * Specifies whether the App is running in the background
*/ */
private static boolean isInBackground () { private static boolean isInBackground () {
try { try {
......
...@@ -51,7 +51,7 @@ public class Options { ...@@ -51,7 +51,7 @@ public class Options {
} }
/** /**
* Parst die übergebenen Eigenschaften. * Parses the given properties
*/ */
public Options parse (JSONObject options) { public Options parse (JSONObject options) {
String repeat = options.optString("repeat"); String repeat = options.optString("repeat");
...@@ -82,7 +82,7 @@ public class Options { ...@@ -82,7 +82,7 @@ public class Options {
} }
/** /**
* Setzt die neue Zeit an Hand des Intervalls. * Set new time according to interval
*/ */
public Options moveDate () { public Options moveDate () {
try { try {
...@@ -93,21 +93,21 @@ public class Options { ...@@ -93,21 +93,21 @@ public class Options {
} }
/** /**
* Gibt die Eigenschaften als JSONObjekt an. * Returns options as JSON object
*/ */
public JSONObject getJSONObject() { public JSONObject getJSONObject() {
return options; return options;
} }
/** /**
* Gibt die Zeit in Millisekunden an, wann die Notification aufpoppen soll. * Returns time in milliseconds when notification is scheduled to fire
*/ */
public long getDate() { public long getDate() {
return options.optLong("date", 0) * 1000; return options.optLong("date", 0) * 1000;
} }
/** /**
* Gibt die Zeit als Kalender an. * Returns time as calender
*/ */
public Calendar getCalendar () { public Calendar getCalendar () {
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
...@@ -118,21 +118,21 @@ public class Options { ...@@ -118,21 +118,21 @@ public class Options {
} }
/** /**
* Gibt die Nachricht der Notification an. * Returns the notification's message
*/ */
public String getMessage () { public String getMessage () {
return options.optString("message", ""); return options.optString("message", "");
} }
/** /**
* Gibt den Titel der Notification an. * Returns the notification's title
*/ */
public String getTitle () { public String getTitle () {
return options.optString("title", ""); return options.optString("title", "");
} }
/** /**
* Gibt den Pfad zum Sound der Notification an. * Returns the path of the notification's sound file
*/ */
public Uri getSound () { public Uri getSound () {
String sound = options.optString("sound", null); String sound = options.optString("sound", null);
...@@ -151,7 +151,7 @@ public class Options { ...@@ -151,7 +151,7 @@ public class Options {
} }
/** /**
* Gibt den ID Code des Bildes an. * Returns the icon's ID
*/ */
public int getIcon () { public int getIcon () {
int icon = 0; int icon = 0;
...@@ -171,7 +171,7 @@ public class Options { ...@@ -171,7 +171,7 @@ public class Options {
} }
/** /**
* Gibt den ID Code des kleinen Bildes an. * Returns the small icon's ID
*/ */
public int getSmallIcon () { public int getSmallIcon () {
int resId = 0; int resId = 0;
...@@ -191,49 +191,49 @@ public class Options { ...@@ -191,49 +191,49 @@ public class Options {
} }
/** /**
* Gibt das Intervall an, in dem die Notification aufpoppen soll (daily, weekly, monthly, yearly) * Returns notification repetition interval (daily, weekly, monthly, yearly)
*/ */
public long getInterval () { public long getInterval () {
return interval; return interval;
} }
/** /**
* Gibt die Badge-Nummer der Notification an. * Returns notification badge number
*/ */
public int getBadge () { public int getBadge () {
return options.optInt("badge", 0); return options.optInt("badge", 0);
} }
/** /**
* Gibt die Callback-ID des PluginResults an. * Returns PluginResults' callback ID
*/ */
public String getId () { public String getId () {
return options.optString("id", "0"); return options.optString("id", "0");
} }
/** /**
* Gibt an, ob die Notification automatisch geschlossen werden soll, wenn der Benutzer darauf klickt. * Returns whether notification is cancelled automatically when clicked.
*/ */
public Boolean getAutoCancel () { public Boolean getAutoCancel () {
return options.optBoolean("autoCancel", false); return options.optBoolean("autoCancel", false);
} }
/** /**
* * Returns whether the notification is ongoing (uncancellable). Android only.
*/ */
public Boolean getOngoing () { public Boolean getOngoing () {
return options.optBoolean("ongoing", false); return options.optBoolean("ongoing", false);
} }
/** /**
* Gibt die zusätzlichen Daten als String an. * Returns additional data as string
*/ */
public String getJSON () { public String getJSON () {
return options.optString("json", ""); return options.optString("json", "");
} }
/** /**
* Gibt den Zahlwert des Icons an. * Returns numerical icon Value
* *
* @param {String} className * @param {String} className
* @param {String} iconName * @param {String} iconName
......
...@@ -114,7 +114,7 @@ public class Receiver extends BroadcastReceiver { ...@@ -114,7 +114,7 @@ public class Receiver extends BroadcastReceiver {
} }
/** /**
* Erstellt die Notification. * Creates the notification.
*/ */
@SuppressLint("NewApi") @SuppressLint("NewApi")
private Builder buildNotification () { private Builder buildNotification () {
...@@ -146,7 +146,7 @@ public class Receiver extends BroadcastReceiver { ...@@ -146,7 +146,7 @@ public class Receiver extends BroadcastReceiver {
} }
/** /**
* Fügt der Notification einen onclick Handler hinzu. * Adds an onclick handler to the notification
*/ */
private Builder setClickEvent (Builder notification) { private Builder setClickEvent (Builder notification) {
Intent intent = new Intent(context, ReceiverActivity.class) Intent intent = new Intent(context, ReceiverActivity.class)
...@@ -161,7 +161,7 @@ public class Receiver extends BroadcastReceiver { ...@@ -161,7 +161,7 @@ public class Receiver extends BroadcastReceiver {
} }
/** /**
* Zeigt die Notification an. * Shows the notification
*/ */
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@SuppressLint("NewApi") @SuppressLint("NewApi")
......
...@@ -33,7 +33,7 @@ var LocalNotification = function () { ...@@ -33,7 +33,7 @@ var LocalNotification = function () {
LocalNotification.prototype = { LocalNotification.prototype = {
/** /**
* Gibt alle Standardeinstellungen an. * Returns the default settings
* *
* @return {Object} * @return {Object}
*/ */
...@@ -42,7 +42,7 @@ LocalNotification.prototype = { ...@@ -42,7 +42,7 @@ LocalNotification.prototype = {
}, },
/** /**
* Überschreibt die Standardeinstellungen. * Overwrite default settings
* *
* @param {Object} defaults * @param {Object} defaults
*/ */
...@@ -58,7 +58,7 @@ LocalNotification.prototype = { ...@@ -58,7 +58,7 @@ LocalNotification.prototype = {
/** /**
* @private * @private
* Merged die Eigenschaften mit den Standardwerten. * Merge settings with default values
* *
* @param {Object} options * @param {Object} options
* @retrun {Object} * @retrun {Object}
...@@ -97,10 +97,10 @@ LocalNotification.prototype = { ...@@ -97,10 +97,10 @@ LocalNotification.prototype = {
}, },
/** /**
* Fügt einen neuen Eintrag zur Registry hinzu. * Add a new entry to the registry
* *
* @param {Object} options * @param {Object} options
* @return {Number} Die ID der Notification * @return {Number} The notification's ID
*/ */
add: function (options) { add: function (options) {
var options = this.mergeWithDefaults(options), var options = this.mergeWithDefaults(options),
...@@ -130,16 +130,16 @@ LocalNotification.prototype = { ...@@ -130,16 +130,16 @@ LocalNotification.prototype = {
}, },
/** /**
* Entfernt die angegebene Notification. * Cancels the specified notification
* *
* @param {String} id * @param {String} id of the notification
*/ */
cancel: function (id) { cancel: function (id) {
cordova.exec(null, null, 'LocalNotification', 'cancel', [id.toString()]); cordova.exec(null, null, 'LocalNotification', 'cancel', [id.toString()]);
}, },
/** /**
* Entfernt alle registrierten Notifications. * Removes all previously registered notifications
*/ */
cancelAll: function () { cancelAll: function () {
cordova.exec(null, null, 'LocalNotification', 'cancelAll', []); cordova.exec(null, null, 'LocalNotification', 'cancelAll', []);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment