Changeset 2847 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
- Timestamp:
- 2010-01-13T20:12:48+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
r2578 r2847 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.tools.I18n.trn; 5 6 6 7 import java.awt.BorderLayout; … … 43 44 import org.openstreetmap.josm.io.OsmServerObjectReader; 44 45 import org.openstreetmap.josm.io.OsmTransferException; 46 import org.openstreetmap.josm.tools.CheckParameterUtil; 45 47 import org.openstreetmap.josm.tools.ImageProvider; 46 48 import org.xml.sax.SAXException; … … 117 119 */ 118 120 public ChildRelationBrowser(OsmDataLayer layer) throws IllegalArgumentException { 119 if (layer == null) 120 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "layer")); 121 CheckParameterUtil.ensureParameterNotNull(layer, "layer"); 121 122 this.layer = layer; 122 123 model = new RelationTreeModel(); … … 326 327 JOptionPane.showMessageDialog( 327 328 Main.parent, 328 tr("There were {0} conflicts during import.", conflictsCount), 329 tr("Conflicts in data"), 329 trn("There was {0} conflict during import.", 330 "There were {0} conflicts during import.", 331 conflictsCount, conflictsCount), 332 trn("Conflict in data", "Conflicts in data", conflictsCount), 330 333 JOptionPane.WARNING_MESSAGE 331 334 ); … … 342 345 String message = tr("<html>The child relation<br>" 343 346 + "{0}<br>" 344 + "is deleted on the server. It can 't be loaded",347 + "is deleted on the server. It cannot be loaded", 345 348 r.getDisplayName(DefaultNameFormatter.getInstance()) 346 349 ); … … 479 482 JOptionPane.showMessageDialog( 480 483 Main.parent, 481 tr("There were {0} conflicts during import.", conflictsCount), 482 tr("Conflicts in data"), 484 trn("There was {0} conflict during import.", 485 "There were {0} conflicts during import.", 486 conflictsCount, conflictsCount), 487 trn("Conflict in data", "Conflicts in data", conflictsCount), 483 488 JOptionPane.WARNING_MESSAGE 484 489 );
Note:
See TracChangeset
for help on using the changeset viewer.