Changeset 29428 in osm for applications


Ignore:
Timestamp:
2013-03-29T17:51:00+01:00 (11 years ago)
Author:
stoecker
Message:

fix i18n

Location:
applications/editors/josm/plugins/imagery_offset_db/src/iodb
Files:
2 edited

Legend:

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

    r29384 r29428  
    9898    @Override
    9999    public String getToolTipText() {
    100         return "A " + (obj.isDeprecated() ? "deprecated " : "") + "calibration "
    101                 + OffsetInfoAction.getGeometryType(obj) + " by " + obj.getAuthor();
     100        if(obj.isDeprecated())
     101            return tr("A deprecated calibration {0} by {1}",
     102                OffsetInfoAction.getGeometryType(obj), obj.getAuthor());
     103        else
     104            return tr("A calibration {0} by {1}",
     105                OffsetInfoAction.getGeometryType(obj), obj.getAuthor());
    102106    }
    103107
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetInfoAction.java

    r29388 r29428  
    108108    public static String getGeometryType( CalibrationObject obj ) {
    109109        if( obj.getGeometry() == null )
    110             return "nothing";
     110            return tr("nothing");
    111111        int n = obj.getGeometry().length;
    112112        if( n == 1 )
     
    117117            return tr("polygon ({0} nodes)", n - 1);
    118118        else
    119             return "geometry";
     119            return tr("geometry");
    120120    }
    121121}
Note: See TracChangeset for help on using the changeset viewer.