Changeset 104 in josm for src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
- Timestamp:
- 2006-07-03T00:31:24+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r103 r104 1 1 package org.openstreetmap.josm.gui.layer; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 import static org.openstreetmap.josm.tools.I18n.trn; 2 5 3 6 import java.awt.Component; … … 148 151 149 152 @Override public String getToolTipText() { 150 return undeletedSize(data.nodes) +" nodes, "+151 undeletedSize(data.segments) +"segments, "+152 undeletedSize(data.ways) +" streets.";153 return trn("{0} node", "{0} nodes", undeletedSize(data.nodes), undeletedSize(data.nodes)) 154 +trn("{0} segment", "{0} segments", undeletedSize(data.segments), undeletedSize(data.segments)) 155 +trn("{0} way", "{0} ways", undeletedSize(data.ways), undeletedSize(data.ways)); 153 156 } 154 157 … … 162 165 final ConflictDialog dlg = Main.map.conflictDialog; 163 166 dlg.add(visitor.conflicts); 164 JOptionPane.showMessageDialog(Main.parent, 167 JOptionPane.showMessageDialog(Main.parent,tr("There were conflicts during import.")); 165 168 if (!dlg.isVisible()) 166 169 dlg.action.actionPerformed(new ActionEvent(this, 0, "")); … … 301 304 osm.visit(counter); 302 305 final JPanel p = new JPanel(new GridBagLayout()); 303 p.add(new JLabel( name+"consists of:"), GBC.eol());306 p.add(new JLabel(tr("{0} consists of:", name)), GBC.eol()); 304 307 for (int i = 0; i < counter.normal.length; ++i) { 305 String s = counter.normal[i]+" "+counter.names[i]+ (counter.normal[i]!= 1 ?"s":"");308 String s = counter.normal[i]+" "+trn(counter.names[i],counter.names[i]+"s",counter.normal[i]); 306 309 if (counter.deleted[i] > 0) 307 s += " ("+counter.deleted[i]+" deleted)";310 s += tr(" ({0} deleted.)",counter.deleted[i]); 308 311 p.add(new JLabel(s, ImageProvider.get("data", counter.names[i]), JLabel.HORIZONTAL), GBC.eop().insets(15,0,0,0)); 309 312 }
Note:
See TracChangeset
for help on using the changeset viewer.