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/HistoryLoadTask.java

    r2070 r2181  
    3838    public HistoryLoadTask add(long id, OsmPrimitiveType type) {
    3939        if (id <= 0)
    40             throw new IllegalArgumentException(tr("id > 0 expected, got {0}", id));
     40            throw new IllegalArgumentException(tr("ID > 0 expected. Got {0}.", id));
    4141        if (type == null)
    42             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "type"));
     42            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "type"));
    4343        if (!toLoad.containsKey(id)) {
    4444            toLoad.put(id, type);
     
    4949    public HistoryLoadTask add(HistoryOsmPrimitive primitive) {
    5050        if (primitive == null)
    51             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "primitive"));
     51            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "primitive"));
    5252        if (!toLoad.containsKey(primitive.getId())) {
    5353            toLoad.put(primitive.getId(), primitive.getType());
     
    5858    public HistoryLoadTask add(History history) {
    5959        if (history == null)
    60             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "history"));
     60            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "history"));
    6161        if (!toLoad.containsKey(history.getId())) {
    6262            toLoad.put(history.getId(), history.getEarliest().getType());
     
    6767    public HistoryLoadTask add(OsmPrimitive primitive) {
    6868        if (primitive == null)
    69             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "primitive"));
     69            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "primitive"));
    7070        return add(primitive.getId(), OsmPrimitiveType.from(primitive));
    7171    }
     
    7373    public HistoryLoadTask add(Collection<? extends OsmPrimitive> primitives) {
    7474        if (primitives == null)
    75             throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "primitives"));
     75            throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "primitives"));
    7676        for (OsmPrimitive primitive: primitives) {
    7777            if (primitive == null) {
Note: See TracChangeset for help on using the changeset viewer.