Ticket #4339: messageformat-fixes.diff
| File messageformat-fixes.diff, 13.7 KB (added by , 16 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/JoinAreasAction.java
135 135 List<Node> allNodes = new ArrayList<Node>(); 136 136 for (Way way: ways) { 137 137 if(!way.isClosed()) { 138 JOptionPane.showMessageDialog(Main.parent, tr("\"{0}\" is not closed and therefore can' t be joined.", way.getName()));138 JOptionPane.showMessageDialog(Main.parent, tr("\"{0}\" is not closed and therefore can''t be joined.", way.getName())); 139 139 return; 140 140 } 141 141 -
src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorisationUI.java
471 471 FullyAutomaticAuthorisationUI.this, 472 472 tr("<html>" 473 473 + "The automatic process for retrieving an OAuth Access Token<br>" 474 + "from the OSM server failed because JOSM wasn' t able to build<br>"474 + "from the OSM server failed because JOSM wasn''t able to build<br>" 475 475 + "a valid login URL from the OAuth Authorise Endpoint URL ''{0}''.<br><br>" 476 476 + "Please check your advanced setting and try again." 477 477 +"</html>", -
src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java
869 869 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "adjustable")); 870 870 871 871 if (! synchronizedAdjustables.contains(adjustable)) 872 throw new IllegalStateException(tr("Adjustable {0} not registered yet. Can' t set participation in synchronized adjustment.", adjustable));872 throw new IllegalStateException(tr("Adjustable {0} not registered yet. Can''t set participation in synchronized adjustment.", adjustable)); 873 873 874 874 enabledMap.put(adjustable, isParticipating); 875 875 observable.notifyObservers(); -
src/org/openstreetmap/josm/gui/conflict/tags/MultiValueResolutionDecision.java
98 98 if (value == null) 99 99 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "value")); 100 100 if (!tags.getValues().contains(value)) 101 throw new IllegalStateException(tr("Tag collection doesn' t include the selected value ''{0}''.", value));101 throw new IllegalStateException(tr("Tag collection doesn''t include the selected value ''{0}''.", value)); 102 102 this.value = value; 103 103 this.type = MultiValueDecisionType.KEEP_ONE; 104 104 } -
src/org/openstreetmap/josm/gui/dialogs/ConflictResolutionDialog.java
214 214 tr("Continue resolving")}; 215 215 int ret = JOptionPane.showOptionDialog(Main.parent, 216 216 tr("<html>You didn''t finish to merge the differences in this conflict.<br>" 217 + "Conflict resolutions won' t be applied unless all differences<br>"217 + "Conflict resolutions won''t be applied unless all differences<br>" 218 218 + "are resolved." 219 219 + "Click <strong>{0}</strong> to close anyway.<strong>Already<br>" 220 + "resolved differences won' t be applied.</strong><br>"220 + "resolved differences won''t be applied.</strong><br>" 221 221 + "Click <strong>{1}</strong> to return to resolving conflicts.</html>" 222 222 , options[0].toString(), options[1].toString() 223 223 ), -
src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
341 341 protected void warnBecauseOfDeletedRelation(Relation r) { 342 342 String message = tr("<html>The child relation<br>" 343 343 + "{0}<br>" 344 + "is deleted on the server. It can' t be loaded",344 + "is deleted on the server. It can''t be loaded", 345 345 r.getDisplayName(DefaultNameFormatter.getInstance()) 346 346 ); 347 347 -
src/org/openstreetmap/josm/gui/history/AdjustmentSynchronizer.java
76 76 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "adjustable")); 77 77 78 78 if (! synchronizedAdjustables.contains(adjustable)) 79 throw new IllegalStateException(tr("Adjustable {0} not registered yet. Can' t set participation in synchronized adjustment.", adjustable));79 throw new IllegalStateException(tr("Adjustable {0} not registered yet. Can''t set participation in synchronized adjustment.", adjustable)); 80 80 81 81 enabledMap.put(adjustable, isParticipating); 82 82 observable.notifyObservers(); -
src/org/openstreetmap/josm/gui/preferences/server/ApiUrlTestTask.java
58 58 HelpAwareOptionPane.showOptionDialog( 59 59 parent, 60 60 tr("<html>" 61 + "''{0}'' isn' t a valid OSM API URL.<br>"61 + "''{0}'' isn''t a valid OSM API URL.<br>" 62 62 + "Please check the spelling and validate again." 63 63 +"</html>", 64 64 url -
src/org/openstreetmap/josm/gui/io/AbstractUploadTask.java
62 62 throw new IllegalStateException(tr("Failed to update primitive with id {0} because current edit layer is null", id)); 63 63 OsmPrimitive p = layer.data.getPrimitiveById(id, type); 64 64 if (p == null) 65 throw new IllegalStateException(tr("Failed to update primitive with id {0} because current edit layer doesn' t include such a primitive", id));65 throw new IllegalStateException(tr("Failed to update primitive with id {0} because current edit layer doesn''t include such a primitive", id)); 66 66 Main.worker.execute(new UpdatePrimitivesTask(layer, Collections.singleton(p))); 67 67 } 68 68 -
src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
229 229 230 230 protected void warnLayersWithIllegalFilesAndSaveRequest(List<SaveLayerInfo> infos) { 231 231 String msg = trn("<html>{0} layer needs saving but has an associated file<br>" 232 + "which can' t be written.<br>"232 + "which can''t be written.<br>" 233 233 + "Either select another file for this layer or discard the changes.<br>" 234 234 + "Layer with a non-writable file:</html>", 235 235 "<html>{0} layers need saving but have associated files<br>" 236 + "which can' t be written.<br>"236 + "which can''t be written.<br>" 237 237 + "Either select another file for each of them or discard the changes.<br>" 238 238 + "Layers with non-writable files:</html>", 239 239 infos.size(), -
src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
111 111 if (id <= 0) return; 112 112 OsmPrimitive primitive = ds.getPrimitiveById(id, type); 113 113 if (primitive == null) 114 throw new NoSuchElementException(tr("No primitive with id {0} in local dataset. Can' t infer primitive type.", id));114 throw new NoSuchElementException(tr("No primitive with id {0} in local dataset. Can''t infer primitive type.", id)); 115 115 remember(primitive.getPrimitiveId()); 116 116 return; 117 117 } -
src/org/openstreetmap/josm/data/Preferences.java
446 446 File prefDir = getPreferencesDirFile(); 447 447 if (prefDir.exists()) { 448 448 if(!prefDir.isDirectory()) { 449 System.err.println(tr("Warning: Failed to initialize preferences. Preference directory ''{0}'' isn' t a directory.", prefDir.getAbsoluteFile()));449 System.err.println(tr("Warning: Failed to initialize preferences. Preference directory ''{0}'' isn''t a directory.", prefDir.getAbsoluteFile())); 450 450 JOptionPane.showMessageDialog( 451 451 Main.parent, 452 tr("<html>Failed to initialize preferences.<br>Preference directory ''{0}'' isn' t a directory.</html>", prefDir.getAbsoluteFile()),452 tr("<html>Failed to initialize preferences.<br>Preference directory ''{0}'' isn''t a directory.</html>", prefDir.getAbsoluteFile()), 453 453 tr("Error"), 454 454 JOptionPane.ERROR_MESSAGE 455 455 ); -
src/org/openstreetmap/josm/data/osm/DataSet.java
204 204 public void addPrimitive(OsmPrimitive primitive) { 205 205 if (getPrimitiveById(primitive) != null) 206 206 throw new DataIntegrityProblemException( 207 tr("Unable to add primitive {0} to the dataset because it' s already included", primitive.toString()));207 tr("Unable to add primitive {0} to the dataset because it''s already included", primitive.toString())); 208 208 209 209 if (primitive instanceof Node) { 210 210 nodes.add((Node) primitive); … … 646 646 private OsmPrimitive getPrimitiveByIdChecked(PrimitiveId primitiveId) { 647 647 OsmPrimitive result = getPrimitiveById(primitiveId); 648 648 if (result == null) { 649 System.out.println(tr("JOSM expected to find primitive [{0} {1}] in dataset but it' s not there. Please report this "649 System.out.println(tr("JOSM expected to find primitive [{0} {1}] in dataset but it''s not there. Please report this " 650 650 + " at http://josm.openstreetmap.de . This is not a critical error, it should be safe to continue in your work.", 651 651 primitiveId.getType(), Long.toString(primitiveId.getUniqueId()))); 652 652 new Exception().printStackTrace(); -
src/org/openstreetmap/josm/command/ConflictAddCommand.java
31 31 Main.parent, 32 32 tr("<html>Layer ''{0}'' already has a conflict for primitive<br>" 33 33 + "''{1}''.<br>" 34 + "This conflict can' t be added.</html>",34 + "This conflict can''t be added.</html>", 35 35 getLayer().getName(), 36 36 conflict.getMy().getDisplayName(DefaultNameFormatter.getInstance()) 37 37 ), … … 51 51 52 52 @Override public void undoCommand() { 53 53 if (! Main.map.mapView.hasLayer(getLayer())) { 54 System.out.println(tr("Warning: Layer ''{0}'' doesn' t exist any more. Can't remove conflict for primitive ''{1}''.",54 System.out.println(tr("Warning: Layer ''{0}'' doesn''t exist any more. Can''t remove conflict for primitive ''{1}''.", 55 55 getLayer().getName(), 56 56 conflict.getMy().getDisplayName(DefaultNameFormatter.getInstance()) 57 57 ));
