Changeset 13681 in josm


Ignore:
Timestamp:
2018-04-26T20:43:19+02:00 (12 months ago)
Author:
Don-vip
Message:

fix #16227 - quote plugin name in error message. No i18n change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r13647 r13681  
    767767     */
    768768    private static void loadPlugin(Component parent, PluginInformation plugin, PluginClassLoader pluginClassLoader) {
    769         String msg = tr("Could not load plugin {0}. Delete from preferences?", plugin.name);
     769        String msg = tr("Could not load plugin {0}. Delete from preferences?", "'"+plugin.name+"'");
    770770        try {
    771771            Class<?> klass = plugin.loadClass(pluginClassLoader);
     
    782782            if (e.getCause() instanceof ClassNotFoundException) {
    783783                msg = tr("<html>Could not load plugin {0} because the plugin<br>main class ''{1}'' was not found.<br>"
    784                         + "Delete from preferences?</html>", Utils.escapeReservedCharactersHTML(plugin.name), plugin.className);
     784                        + "Delete from preferences?</html>", "'"+Utils.escapeReservedCharactersHTML(plugin.name)+"'", plugin.className);
    785785            }
    786786        } catch (RuntimeException e) { // NOPMD
Note: See TracChangeset for help on using the changeset viewer.