Ignore:
Timestamp:
2013-03-29T20:57:36+01:00 (11 years ago)
Author:
stoecker
Message:

i18n fixes

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

Legend:

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

    r29430 r29433  
    100100    public String getToolTipText() {
    101101        if( obj.isDeprecated() )
    102             return tr("A deprecated calibration {0} by {1}", OffsetInfoAction.getGeometryType(obj), obj.getAuthor());
     102            return tr("A deprecated calibration of type {0} by {1}", OffsetInfoAction.getGeometryType(obj), obj.getAuthor());
    103103        else
    104             return tr("A calibration {0} by {1}", OffsetInfoAction.getGeometryType(obj), obj.getAuthor());
     104            return tr("A calibration of type {0} by {1}", OffsetInfoAction.getGeometryType(obj), obj.getAuthor());
    105105    }
    106106
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/DeprecateOffsetAction.java

    r29430 r29433  
    4545                tr("Are you sure this calibration geometry is aligned badly?");
    4646        if( JOptionPane.showConfirmDialog(Main.parent,
    47                 tr("Warning: deprecation is basically irreversible!")+ "\n" + desc,
     47                tr("Warning: deprecation is basically irreversible!\n{0}", desc),
    4848                ImageryOffsetTools.DIALOG_TITLE, JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) != JOptionPane.YES_OPTION ) {
    4949            return;
     
    7878        }
    7979
    80         String message = tr("Please enter the reason why you mark {0} as deprecated",
    81                 offset instanceof ImageryOffset ? tr("this imagery offset") : tr("this calibration geometry")) + ":";
     80        String message;
     81        if(offset instanceof ImageryOffset)
     82            message = tr("Please enter the reason why you mark this imagery offset as deprecated");
     83        else
     84            message = tr("Please enter the reason why you mark this calibration geometry as deprecated");
    8285        String reason = StoreImageryOffsetAction.queryDescription(message);
    8386        if( reason == null )
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/GetImageryOffsetAction.java

    r29430 r29433  
    159159                offsets = new IODBReader(inp).parse();
    160160            } catch( Exception e ) {
    161                 throw new UploadException(tr("Error processing XML response") + ": " + e.getMessage());
     161                throw new UploadException(tr("Error processing XML response: {0}", e.getMessage()));
    162162            }
    163163        }
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetInfoAction.java

    r29430 r29433  
    7676            sb.append(tr("Imagery ID")).append(": ").append(((ImageryOffset)offset).getImagery()).append('\n');
    7777        } else {
    78             sb.append(tr("A calibration {0}", getGeometryType((CalibrationObject)offset))).append('\n');
     78            sb.append(tr("A calibration of type {0}", getGeometryType((CalibrationObject)offset))).append('\n');
    7979        }
    8080       
     
    108108    public static String getGeometryType( CalibrationObject obj ) {
    109109        if( obj.getGeometry() == null )
    110             return "nothing"; // meant never to happen, so no translation
     110            return tr("nothing"); // meant never to happen
    111111        int n = obj.getGeometry().length;
    112112        if( n == 1 )
     
    117117            return tr("polygon ({0} nodes)", n - 1);
    118118        else
    119             return "geometry"; // meant never to happen, so no translation
     119            return tr("geometry"); // meant never to happen
    120120    }
    121121}
Note: See TracChangeset for help on using the changeset viewer.