Changeset 29387 in osm for applications


Ignore:
Timestamp:
2013-03-23T09:48:24+01:00 (12 years ago)
Author:
zverik
Message:

translation fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetInfoAction.java

    r29386 r29387  
    4646        if( offset instanceof ImageryOffset ) {
    4747            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                     ImageryOffsetTools.formatDistance(odist))).append('\n');
    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');
    5151        } else {
    5252            sb.append(tr("A calibration {0}", getGeometryType((CalibrationObject)offset))).append('\n');
     
    5454       
    5555        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",
    5757                ImageryOffsetTools.formatDistance(dist)));
    5858       
     
    6060        sb.append(tr("Created by {0} on {1}\n", offset.getAuthor(),
    6161                DATE_FORMAT.format(offset.getDate()))).append('\n');
    62         sb.append("Description: ").append(offset.getDescription());
     62        sb.append(tr("Description")).append(": ").append(offset.getDescription());
    6363       
    6464        if( offset.isDeprecated() ) {
     
    6666            sb.append(tr("Deprecated by {0} on {1}\n",offset.getAbandonAuthor(),
    6767                    DATE_FORMAT.format(offset.getAbandonDate()))).append('\n');
    68             sb.append("Reason: ").append(offset.getAbandonReason());
     68            sb.append(tr("Reason")).append(": ").append(offset.getAbandonReason());
    6969        }
    7070        return sb.toString();
     
    7777    public static String getGeometryType( CalibrationObject obj ) {
    7878        if( obj.getGeometry() == null )
    79             return tr("nothing");
     79            return "nothing";
    8080        int n = obj.getGeometry().length;
    8181        if( n == 1 )
Note: See TracChangeset for help on using the changeset viewer.