Skip to content

Commit e02ef2e

Browse files
authored
Merge pull request #1210 from lassevonpfeil/main
New links in "Help" menu for issues and forum
2 parents a22d1c1 + c1a3cec commit e02ef2e

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

build/shared/lib/languages/PDE.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ menu.help.reference.download = Download Offline Reference
151151
menu.help.libraries_reference = Libraries Reference
152152
menu.help.tools_reference = Tools Reference
153153
menu.help.empty = (empty)
154+
menu.help.report = Report a bug
155+
menu.help.ask = Ask on the Forum
154156
menu.help.online = Online
155157

156158
# Only include the .url lines in the translation file if there
@@ -167,6 +169,8 @@ menu.help.foundation = The Processing Foundation
167169
menu.help.foundation.url = https://processing.foundation/
168170
menu.help.visit = Visit Processing.org
169171
menu.help.visit.url = https://processing.org/
172+
menu.help.report.url = https://github.com/processing/processing4/issues
173+
menu.help.ask.url = https://discourse.processing.org
170174

171175

172176
# ---------------------------------------

build/shared/lib/languages/PDE_de.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ menu.help.troubleshooting = Fehlerbehandlung
121121
menu.help.faq = Häufig gestellte Fragen (FAQ)
122122
menu.help.foundation = "The Processing Foundation"
123123
menu.help.visit = Processing.org besuchen
124+
menu.help.report = Einen Fehler melden
125+
menu.help.ask = Im Forum fragen
124126

125127

126128
# ---------------------------------------

java/src/processing/mode/java/JavaEditor.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,18 @@ public JMenu buildHelpMenu() {
327327

328328
menu.addSeparator();
329329

330+
// Report a bug link opener
331+
item = new JMenuItem(Language.text("menu.help.report"));
332+
item.addActionListener(e -> Platform.openURL(Language.text("menu.help.report.url")));
333+
menu.add(item);
334+
335+
// Ask on the Forum link opener
336+
item = new JMenuItem(Language.text("menu.help.ask"));
337+
item.addActionListener(e -> Platform.openURL(Language.text("menu.help.getting_started.url")));
338+
menu.add(item);
339+
340+
menu.addSeparator();
341+
330342
final JMenu libRefSubmenu = new JMenu(Language.text("menu.help.libraries_reference"));
331343

332344
// Adding this in case references are included in a core library,

0 commit comments

Comments
 (0)