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/io/OsmHistoryReader.java

    r1811 r2181  
    6666            String v = attr.getValue(name);
    6767            if (v == null) {
    68                 throwException(tr("mandatory attribute ''{0}'' missing", name));
     68                throwException(tr("Missing mandatory attribute ''{0}''.", name));
    6969            }
    7070            Long l = 0l;
     
    7272                l = Long.parseLong(v);
    7373            } catch(NumberFormatException e) {
    74                 throwException(tr("illegal value for mandatory attribute ''{0}'' of type long, got ''{1}''", name, v));
     74                throwException(tr("Illegal value for mandatory attribute ''{0}'' of type long. Got ''{1}''.", name, v));
    7575            }
    7676            if (l < 0) {
    77                 throwException(tr("illegal value for mandatory attribute ''{0}'' of type long (>=0), got ''{1}''", name, v));
     77                throwException(tr("Illegal value for mandatory attribute ''{0}'' of type long (>=0). Got ''{1}''.", name, v));
    7878            }
    7979            return l;
     
    8383            String v = attr.getValue(name);
    8484            if (v == null) {
    85                 throwException(tr("mandatory attribute ''{0}'' missing", name));
     85                throwException(tr("Missing mandatory attribute ''{0}''.", name));
    8686            }
    8787            Integer i = 0;
     
    8989                i = Integer.parseInt(v);
    9090            } catch(NumberFormatException e) {
    91                 throwException(tr("illegal value for mandatory attribute ''{0}'' of type int, got ''{1}''", name, v));
     91                throwException(tr("Illegal value for mandatory attribute ''{0}'' of type int. Got ''{1}''.", name, v));
    9292            }
    9393            if (i < 0) {
    94                 throwException(tr("illegal value for mandatory attribute ''{0}'' of type int (>=0), got ''{1}''", name, v));
     94                throwException(tr("Illegal value for mandatory attribute ''{0}'' of type int (>=0). Got ''{1}''.", name, v));
    9595            }
    9696            return i;
     
    100100            String v = attr.getValue(name);
    101101            if (v == null) {
    102                 throwException(tr("mandatory attribute ''{0}'' missing", name));
     102                throwException(tr("Missing mandatory attribute ''{0}''.", name));
    103103            }
    104104            return v;
     
    108108            String v = attr.getValue(name);
    109109            if (v == null) {
    110                 throwException(tr("mandatory attribute ''{0}'' missing", name));
     110                throwException(tr("Missing mandatory attribute ''{0}''.", name));
    111111            }
    112112            if (v.equals("true")) return true;
    113113            if (v.equals("false")) return false;
    114             throwException(tr("illegal value for mandatory attribute ''{0}'' of type boolean, got ''{1}''", name, v));
     114            throwException(tr("Illegal value for mandatory attribute ''{0}'' of type boolean. Got ''{1}''.", name, v));
    115115            // not reached
    116116            return false;
     
    172172                type = OsmPrimitiveType.fromApiTypeName(v);
    173173            } catch(IllegalArgumentException e) {
    174                 throwException(tr("illegal value for mandatory attribute ''{0}'' of type OsmPrimitiveType, got ''{1}''", "type", v));
     174                throwException(tr("Illegal value for mandatory attribute ''{0}'' of type OsmPrimitiveType. Got ''{1}''.", "type", v));
    175175            }
    176176            String role = getMandatoryAttributeString(atts, "role");
Note: See TracChangeset for help on using the changeset viewer.