Changeset 11848 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
- Timestamp:
- 2017-04-07T00:18:07+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r11746 r11848 350 350 String msg = tr("<html>Loading of the plugin \"{0}\" was requested." 351 351 + "<br>This plugin is no longer developed and very likely will produce errors." 352 +"<br>It should be disabled.<br>Delete from preferences?</html>", unmaintained); 352 +"<br>It should be disabled.<br>Delete from preferences?</html>", 353 Utils.escapeReservedCharactersHTML(unmaintained)); 353 354 if (confirmDisablePlugin(parent, msg, unmaintained)) { 354 355 Main.pref.removeFromCollection("plugins", unmaintained); … … 506 507 "Plugin {0} requires {1} plugins which were not found. The missing plugins are:", 507 508 missingRequiredPlugin.size(), 508 plugin,509 Utils.escapeReservedCharactersHTML(plugin), 509 510 missingRequiredPlugin.size())) 510 511 .append(Utils.joinAsHtmlUnorderedList(missingRequiredPlugin)) … … 723 724 if (e.getCause() instanceof ClassNotFoundException) { 724 725 msg = tr("<html>Could not load plugin {0} because the plugin<br>main class ''{1}'' was not found.<br>" 725 + "Delete from preferences?</html>", plugin.name, plugin.className);726 + "Delete from preferences?</html>", Utils.escapeReservedCharactersHTML(plugin.name), plugin.className); 726 727 } 727 728 } catch (RuntimeException e) { // NOPMD … … 919 920 .append("<ul>"); 920 921 for (PluginInformation pi: plugins) { 921 sb.append("<li>").append( pi.name).append("</li>");922 sb.append("<li>").append(Utils.escapeReservedCharactersHTML(pi.name)).append("</li>"); 922 923 } 923 924 sb.append("</ul>") … … 1270 1271 final StringBuilder msg = new StringBuilder(256); 1271 1272 msg.append("<html>") 1272 .append(tr("An unexpected exception occurred that may have come from the ''{0}'' plugin.", plugin.getPluginInformation().name)) 1273 .append(tr("An unexpected exception occurred that may have come from the ''{0}'' plugin.", 1274 Utils.escapeReservedCharactersHTML(plugin.getPluginInformation().name))) 1273 1275 .append("<br>"); 1274 1276 if (plugin.getPluginInformation().author != null) { 1275 msg.append(tr("According to the information within the plugin, the author is {0}.", plugin.getPluginInformation().author)) 1277 msg.append(tr("According to the information within the plugin, the author is {0}.", 1278 Utils.escapeReservedCharactersHTML(plugin.getPluginInformation().author))) 1276 1279 .append("<br>"); 1277 1280 }
Note:
See TracChangeset
for help on using the changeset viewer.