Changeset 6469 in josm
- Timestamp:
- 2013-12-10T21:33:47+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java
r6468 r6469 1 1 // License: GPL. See LICENSE file for details. 2 2 package org.openstreetmap.josm.gui.dialogs.validator; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.event.KeyListener; … … 213 215 // Message node 214 216 Set<TestError> errs = msgErrors.getValue(); 215 String msg = msgErrors.getKey() + " (" + errs.size() + ")";217 String msg = tr("{0} ({1})", msgErrors.getKey(), errs.size()); 216 218 DefaultMutableTreeNode messageNode = new DefaultMutableTreeNode(msg); 217 219 severityNode.add(messageNode); … … 232 234 DefaultMutableTreeNode groupNode = null; 233 235 if (errorlist.size() > 1) { 234 String nmsg = bag.getKey() + " (" + errorlist.size() + ")";236 String nmsg = tr("{0} ({1})", bag.getKey(), errorlist.size()); 235 237 groupNode = new DefaultMutableTreeNode(nmsg); 236 238 severityNode.add(groupNode); … … 245 247 String msg; 246 248 if (groupNode != null) { 247 msg = msgErrors.getKey() + " (" + errs.size() + ")";249 msg = tr("{0} ({1})", msgErrors.getKey(), errs.size()); 248 250 } else { 249 msg = msgErrors.getKey() + " - " + bag.getKey() + " (" + errs.size() + ")";251 msg = tr("{0} - {1} ({2})", msgErrors.getKey(), bag.getKey(), errs.size()); 250 252 } 251 253 DefaultMutableTreeNode messageNode = new DefaultMutableTreeNode(msg);
Note:
See TracChangeset
for help on using the changeset viewer.