| | 71 | URL url = new URL("http://josm.openstreetmap.de/newticket?" + |
| | 72 | // To note that it came from this code |
| | 73 | "keywords=template_report&" + |
| | 74 | "description=" + java.net.URLEncoder.encode( |
| | 75 | // Note: This doesn't use tr() intentionally, we want bug reports in English |
| | 76 | "What steps will reproduce the problem?\n" |
| | 77 | + " 1. \n" |
| | 78 | + " 2. \n" |
| | 79 | + " 3. \n" |
| | 80 | + "\n" |
| | 81 | + "What is the expected result?\n\n" |
| | 82 | + "What happens instead?\n\n" |
| | 83 | + "Please provide any additional information below. Attach a screenshot if\n" |
| | 84 | + "possible.\n\n" |
| | 85 | + "{{{\n" + text + "\n}}}\n", |
| | 86 | "UTF-8")); |
| | 87 | |
| 68 | | p.add(new JLabel("<html>" + tr("Please report a ticket at {0}","http://josm.openstreetmap.de/newticket") + |
| 69 | | "<br>" + tr("Include your steps to get to the error (as detailed as possible)!") + |
| 70 | | "<br>" + tr("Try updating to the newest version of JOSM and all plugins before reporting a bug.") + |
| 71 | | "<br>" + tr("Be sure to include the following information:") + "</html>"), GBC.eol()); |
| | 89 | p.add(new JLabel(tr("<html>" + |
| | 90 | "<p>You've encountered an error in JOSM. Before you file a bug<br>" + |
| | 91 | "make sure you've updated to the latest version of JOSM here:</p></html>")), GBC.eol()); |
| | 92 | p.add(new UrlLabel("http://josm.openstreetmap.de/#Download"), GBC.eop().insets(8,0,0,0)); |
| | 93 | p.add(new JLabel(tr("<html>You should also update your plugins. If neither of those help please<br>" + |
| | 94 | "file a bug in our bugtracker using this link:</p></html>")), GBC.eol()); |
| | 95 | p.add(new UrlLabel(url.toString(), "http://josm.openstreetmap.de/newticket?..."), GBC.eop().insets(8,0,0,0)); |
| | 96 | p.add(new JLabel(tr("<html><p>" + |
| | 97 | "There the the error information provided below should already be<br>" + |
| | 98 | "filled out for you. Please include information on how to reproduce<br>" + |
| | 99 | "the error and try to supply as much detail as possible.</p></html>")), GBC.eop()); |
| | 100 | p.add(new JLabel(tr("<html><p>" + |
| | 101 | "Alternatively if that doesn't work you can manually fill in the information<br>" + |
| | 102 | "below at this URL:</p></html>")), GBC.eol()); |
| | 103 | p.add(new UrlLabel("http://josm.openstreetmap.de/newticket"), GBC.eop().insets(8,0,0,0)); |