Ignore:
Timestamp:
2006-07-15T15:57:15+02:00 (20 years ago)
Author:
imi
Message:
  • fixed some output strings that got messed up due i18n.
  • fixed timestamp parsing when reading XML
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/io/OsmReader.java

    r106 r110  
    2626import org.openstreetmap.josm.data.osm.visitor.AddVisitor;
    2727import org.openstreetmap.josm.data.osm.visitor.Visitor;
     28import org.openstreetmap.josm.tools.DateParser;
    2829import org.xml.sax.Attributes;
    2930import org.xml.sax.SAXException;
     
    145146                if (time != null && time.length() != 0) {
    146147                        try {
    147                                 DateFormat df = new SimpleDateFormat("y-M-d H:m:s");
    148                                 current.timestamp = df.parse(time);
     148                                current.timestamp = DateParser.parse(time);
    149149                        } catch (ParseException e) {
    150150                                e.printStackTrace();
    151                                 throw new SAXException(tr("Couldn't read time format '{0}'.",time));
     151                                throw new SAXException(tr("Couldn''t read time format \"{0}\".",time));
    152152                        }
    153153                }
     
    164164                String s = atts.getValue(value);
    165165                if (s == null)
    166                         throw new SAXException(tr("Missing required attirbute '{0}'.",value));
     166                        throw new SAXException(tr("Missing required attirbute \"{0}\".",value));
    167167                return Long.parseLong(s);
    168168        }
Note: See TracChangeset for help on using the changeset viewer.