diff --git a/build/shared/lib/languages/PDE.properties b/build/shared/lib/languages/PDE.properties index 9d03f33c08..2f1946b795 100644 --- a/build/shared/lib/languages/PDE.properties +++ b/build/shared/lib/languages/PDE.properties @@ -151,6 +151,8 @@ menu.help.reference.download = Download Offline Reference menu.help.libraries_reference = Libraries Reference menu.help.tools_reference = Tools Reference menu.help.empty = (empty) +menu.help.report = Report a bug +menu.help.ask = Ask on the Forum menu.help.online = Online # Only include the .url lines in the translation file if there @@ -167,6 +169,8 @@ menu.help.foundation = The Processing Foundation menu.help.foundation.url = https://processing.foundation/ menu.help.visit = Visit Processing.org menu.help.visit.url = https://processing.org/ +menu.help.report.url = https://github.com/processing/processing4/issues +menu.help.ask.url = https://discourse.processing.org # --------------------------------------- diff --git a/build/shared/lib/languages/PDE_de.properties b/build/shared/lib/languages/PDE_de.properties index c44ec13652..2bba70141a 100644 --- a/build/shared/lib/languages/PDE_de.properties +++ b/build/shared/lib/languages/PDE_de.properties @@ -121,6 +121,8 @@ menu.help.troubleshooting = Fehlerbehandlung menu.help.faq = Häufig gestellte Fragen (FAQ) menu.help.foundation = "The Processing Foundation" menu.help.visit = Processing.org besuchen +menu.help.report = Einen Fehler melden +menu.help.ask = Im Forum fragen # --------------------------------------- diff --git a/java/src/processing/mode/java/JavaEditor.java b/java/src/processing/mode/java/JavaEditor.java index 6048a272c7..8b44030cc8 100644 --- a/java/src/processing/mode/java/JavaEditor.java +++ b/java/src/processing/mode/java/JavaEditor.java @@ -327,6 +327,18 @@ public JMenu buildHelpMenu() { menu.addSeparator(); + // Report a bug link opener + item = new JMenuItem(Language.text("menu.help.report")); + item.addActionListener(e -> Platform.openURL(Language.text("menu.help.report.url"))); + menu.add(item); + + // Ask on the Forum link opener + item = new JMenuItem(Language.text("menu.help.ask")); + item.addActionListener(e -> Platform.openURL(Language.text("menu.help.getting_started.url"))); + menu.add(item); + + menu.addSeparator(); + final JMenu libRefSubmenu = new JMenu(Language.text("menu.help.libraries_reference")); // Adding this in case references are included in a core library,