Ticket #762: Just add tr.patch

File Just add tr.patch, 1.1 KB (added by xeen, 16 years ago)

Just add tr() around description

  • src/org/openstreetmap/josm/plugins/PluginSelection.java

     
    175175            JEditorPane description = new JEditorPane();
    176176            description.setContentType("text/html");
    177177            description.setEditable(false);
    178             description.setText("<html><i>"+(plugin.description==null?tr("no description available"):plugin.description)+"</i></html>");
     178            description.setText("<html><i>" +
     179                                (plugin.description == null
     180                                    ? tr("no description available")
     181                                    : tr(plugin.description)) +
     182                                "</i></html>");
    179183            description.setBorder(BorderFactory.createEmptyBorder(0,20,0,0));
    180184            description.setBackground(UIManager.getColor("Panel.background"));
    181185            description.addHyperlinkListener(new HyperlinkListener() {