Changeset 104 in josm for src/org/openstreetmap/josm/io/OsmServerWriter.java
- Timestamp:
- 2006-07-03T00:31:24+02:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/io/OsmServerWriter.java
r103 r104 1 1 package org.openstreetmap.josm.io; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.io.BufferedReader; … … 67 69 return; 68 70 osm.visit(v); 69 currentAction.setText("Upload "+v.className+" "+v.name+" ("+osm.id+")...");71 currentAction.setText(tr("Upload {0} {1} ({2})...", v.className, v.name, osm.id)); 70 72 osm.visit(this); 71 73 progress.setValue(progress.getValue()+1); … … 152 154 try { 153 155 URL url = new URL(Main.pref.get("osm-server.url") + "/0.3/" + urlSuffix + "/" + osm.id); 154 System.out.println("upload to: "+url);156 System.out.println(tr("upload to: {0}")); 155 157 activeConnection = (HttpURLConnection) url.openConnection(); 156 158 activeConnection.setConnectTimeout(15000); … … 169 171 if (retCode == 200 && osm.id == 0) 170 172 osm.id = readId(activeConnection.getInputStream()); 171 System.out.println("got return: "+retCode+"with id"+osm.id);173 System.out.println(tr("got return: {0} with id {1}",retCode,osm.id)); 172 174 String retMsg = activeConnection.getResponseMessage(); 173 175 activeConnection.disconnect(); … … 181 183 } 182 184 } catch (UnknownHostException e) { 183 throw new RuntimeException("Unknown host: "+e.getMessage(), e); 185 throw new RuntimeException(tr("Unknown host: ")+e.getMessage(), e); 184 186 } catch (Exception e) { 185 187 if (cancel)
Note:
See TracChangeset
for help on using the changeset viewer.
