Changeset 29387 in osm for applications
- Timestamp:
- 2013-03-23T09:48:24+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetInfoAction.java
r29386 r29387 46 46 if( offset instanceof ImageryOffset ) { 47 47 double odist = ((ImageryOffset)offset).getImageryPos().greatCircleDistance(offset.getPosition()); 48 sb.append(odist < 1e-2 ? tr("An imagery offset of 0 mm") : tr("An imagery offset of {0}",49 50 sb.append( "Imagery ID: ").append(((ImageryOffset)offset).getImagery()).append('\n');48 if( odist < 1e-2 ) odist = 0.0; 49 sb.append(tr("An imagery offset of {0}", ImageryOffsetTools.formatDistance(odist))).append('\n'); 50 sb.append(tr("Imagery ID")).append(": ").append(((ImageryOffset)offset).getImagery()).append('\n'); 51 51 } else { 52 52 sb.append(tr("A calibration {0}", getGeometryType((CalibrationObject)offset))).append('\n'); … … 54 54 55 55 double dist = ImageryOffsetTools.getMapCenter().greatCircleDistance(offset.getPosition()); 56 sb.append(dist < 50 ? tr("Determined right here") : tr("Determined at a point{0} away",56 sb.append(dist < 50 ? tr("Determined right here") : tr("Determined {0} away", 57 57 ImageryOffsetTools.formatDistance(dist))); 58 58 … … 60 60 sb.append(tr("Created by {0} on {1}\n", offset.getAuthor(), 61 61 DATE_FORMAT.format(offset.getDate()))).append('\n'); 62 sb.append( "Description: ").append(offset.getDescription());62 sb.append(tr("Description")).append(": ").append(offset.getDescription()); 63 63 64 64 if( offset.isDeprecated() ) { … … 66 66 sb.append(tr("Deprecated by {0} on {1}\n",offset.getAbandonAuthor(), 67 67 DATE_FORMAT.format(offset.getAbandonDate()))).append('\n'); 68 sb.append( "Reason: ").append(offset.getAbandonReason());68 sb.append(tr("Reason")).append(": ").append(offset.getAbandonReason()); 69 69 } 70 70 return sb.toString(); … … 77 77 public static String getGeometryType( CalibrationObject obj ) { 78 78 if( obj.getGeometry() == null ) 79 return tr("nothing");79 return "nothing"; 80 80 int n = obj.getGeometry().length; 81 81 if( n == 1 )
Note:
See TracChangeset
for help on using the changeset viewer.