Ticket #3833: osmdatalayer-translation-cleanup.patch
File osmdatalayer-translation-cleanup.patch, 1.6 KB (added by , 13 years ago) |
---|
-
src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
248 248 } 249 249 250 250 @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 254 257 if (data.version != null) { 255 258 tool += ", " + tr("version {0}", data.version); 256 259 } … … 501 504 final JPanel p = new JPanel(new GridBagLayout()); 502 505 p.add(new JLabel(tr("{0} consists of:", getName())), GBC.eol()); 503 506 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]); 505 508 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])+")"; 507 510 } 508 511 p.add(new JLabel(s, ImageProvider.get("data", counter.names[i]), JLabel.HORIZONTAL), GBC.eop().insets(15,0,0,0)); 509 512 }