Ignore:
Timestamp:
2009-09-22T15:34:19+02:00 (15 years ago)
Author:
stoecker
Message:

lots of i18n fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java

    r2044 r2181  
    140140    public TagTableModel getTagTableModel(PointInTimeType pointInTimeType) throws IllegalArgumentException {
    141141        if (pointInTimeType == null)
    142             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "pointInTimeType"));
     142            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "pointInTimeType"));
    143143        if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME))
    144144            return currentTagTableModel;
     
    152152    public NodeListTableModel getNodeListTableModel(PointInTimeType pointInTimeType) throws IllegalArgumentException {
    153153        if (pointInTimeType == null)
    154             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "pointInTimeType"));
     154            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "pointInTimeType"));
    155155        if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME))
    156156            return currentNodeListTableModel;
     
    164164    public RelationMemberTableModel getRelationMemberTableModel(PointInTimeType pointInTimeType) throws IllegalArgumentException {
    165165        if (pointInTimeType == null)
    166             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "pointInTimeType"));
     166            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "pointInTimeType"));
    167167        if (pointInTimeType.equals(PointInTimeType.CURRENT_POINT_IN_TIME))
    168168            return currentRelationMemberTableModel;
     
    176176    public void setReferencePointInTime(HistoryOsmPrimitive reference) throws IllegalArgumentException, IllegalStateException{
    177177        if (reference == null)
    178             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "reference"));
     178            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "reference"));
    179179        if (history == null)
    180             throw new IllegalStateException(tr("history not initialized yet. Failed to set reference primitive."));
     180            throw new IllegalStateException(tr("History not initialized yet. Failed to set reference primitive."));
    181181        if (reference.getId() != history.getId())
    182             throw new IllegalArgumentException(tr("failed to set reference. reference id {0} doesn't match history id {1}", reference.getId(),  history.getId()));
     182            throw new IllegalArgumentException(tr("Failed to set reference. Reference ID {0} does not match history ID {1}.", reference.getId(),  history.getId()));
    183183        HistoryOsmPrimitive primitive = history.getByVersion(reference.getVersion());
    184184        if (primitive == null)
    185             throw new IllegalArgumentException(tr("failed to set reference. reference version {0} not available in history", reference.getVersion()));
     185            throw new IllegalArgumentException(tr("Failed to set reference. Reference version {0} not available in history.", reference.getVersion()));
    186186
    187187        this.reference = reference;
     
    195195    public void setCurrentPointInTime(HistoryOsmPrimitive current) throws IllegalArgumentException, IllegalStateException{
    196196        if (current == null)
    197             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "current"));
     197            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "current"));
    198198        if (history == null)
    199             throw new IllegalStateException(tr("history not initialized yet. Failed to set current primitive."));
     199            throw new IllegalStateException(tr("History not initialized yet. Failed to set current primitive."));
    200200        if (current.getId() != history.getId())
    201             throw new IllegalArgumentException(tr("failed to set reference. reference id {0} doesn't match history id {1}", current.getId(),  history.getId()));
     201            throw new IllegalArgumentException(tr("Hailed to set reference. Reference ID {0} does not match history ID {1}.", current.getId(),  history.getId()));
    202202        HistoryOsmPrimitive primitive = history.getByVersion(current.getVersion());
    203203        if (primitive == null)
    204             throw new IllegalArgumentException(tr("failed to set current. current version {0} not available in history", current.getVersion()));
     204            throw new IllegalArgumentException(tr("Failed to set current primitive. Current version {0} not available in history.", current.getVersion()));
    205205        this.current = current;
    206206        initTagTableModels();
     
    238238    public HistoryOsmPrimitive getPointInTime(PointInTimeType type) throws IllegalArgumentException  {
    239239        if (type == null)
    240             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "type"));
     240            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "type"));
    241241        if (type.equals(PointInTimeType.CURRENT_POINT_IN_TIME))
    242242            return current;
Note: See TracChangeset for help on using the changeset viewer.