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/data/osm/history/History.java

    r2017 r2181  
    152152                return primitive;
    153153        }
    154         throw new NoSuchElementException(tr("There's no primitive with version {0} in this history", version));
     154        throw new NoSuchElementException(tr("There's no primitive with version {0} in this history.", version));
    155155    }
    156156
     
    159159
    160160        if (versions.isEmpty())
    161             throw new NoSuchElementException(tr("There's no version valid at date ''{0}'' in this history", date));
     161            throw new NoSuchElementException(tr("There's no version valid at date ''{0}'' in this history.", date));
    162162        if (get(0).getTimestamp().compareTo(date)> 0)
    163             throw new NoSuchElementException(tr("There's no version valid at date ''{0}'' in this history", date));
     163            throw new NoSuchElementException(tr("There's no version valid at date ''{0}'' in this history.", date));
    164164        for (int i = 1; i < versions.size();i++) {
    165165            if (get(i-1).getTimestamp().compareTo(date) <= 0
     
    172172    public HistoryOsmPrimitive get(int idx) {
    173173        if (idx < 0 || idx >= versions.size())
    174             throw new IndexOutOfBoundsException(tr("parameter ''{0}'' in range 0..{1} expected, got {2}", "idx", versions.size()-1, idx));
     174            throw new IndexOutOfBoundsException(tr("Parameter ''{0}'' in range 0..{1} expected. Got ''{2}''.", "idx", versions.size()-1, idx));
    175175        return versions.get(idx);
    176176    }
     
    178178    public HistoryOsmPrimitive getEarliest() {
    179179        if (isEmpty())
    180             throw new NoSuchElementException(tr("no earliest version found. History is empty."));
     180            throw new NoSuchElementException(tr("No earliest version found. History is empty."));
    181181        return sortAscending().versions.get(0);
    182182    }
     
    184184    public HistoryOsmPrimitive getLatest() {
    185185        if (isEmpty())
    186             throw new NoSuchElementException(tr("no latest version found. History is empty."));
     186            throw new NoSuchElementException(tr("No latest version found. History is empty."));
    187187        return sortDescending().versions.get(0);
    188188    }
Note: See TracChangeset for help on using the changeset viewer.