Ticket #3833: osmdatalayer-translation-cleanup.patch

File osmdatalayer-translation-cleanup.patch, 1.6 KB (added by Daeron, 14 years ago)

Missed plural for deleted

  • src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

     
    248248    }
    249249
    250250    @Override public String getToolTipText() {
    251         String tool = "";
    252         tool += undeletedSize(data.getNodes())+" "+trn("node", "nodes", undeletedSize(data.getNodes()))+", ";
    253         tool += undeletedSize(data.getWays())+" "+trn("way", "ways", undeletedSize(data.getWays()));
     251        int nodes = undeletedSize(data.getNodes());
     252        int ways = undeletedSize(data.getWays());
     253
     254        String tool = trn("{0} node", "{0} nodes", nodes, nodes)+", ";
     255        tool += trn("{0} way", "{0} ways", ways, ways);
     256
    254257        if (data.version != null) {
    255258            tool += ", " + tr("version {0}", data.version);
    256259        }
     
    501504        final JPanel p = new JPanel(new GridBagLayout());
    502505        p.add(new JLabel(tr("{0} consists of:", getName())), GBC.eol());
    503506        for (int i = 0; i < counter.normal.length; ++i) {
    504             String s = counter.normal[i]+" "+trn(counter.names[i],counter.names[i]+"s",counter.normal[i]);
     507            String s = trn("{0} "+counter.names[i],"{0} "+counter.names[i]+"s",counter.normal[i],counter.normal[i]);
    505508            if (counter.deleted[i] > 0) {
    506                 s += tr(" ({0} deleted.)",counter.deleted[i]);
     509                s += " ("+trn("{0} deleted","{0} deleted",counter.deleted[i],counter.deleted[i])+")";
    507510            }
    508511            p.add(new JLabel(s, ImageProvider.get("data", counter.names[i]), JLabel.HORIZONTAL), GBC.eop().insets(15,0,0,0));
    509512        }