Ignore:
Timestamp:
2006-07-03T00:31:24+02:00 (20 years ago)
Author:
imi
Message:
  • started i18n
  • started "download incomplete ways" action
  • added straight line selection mode
File:
1 edited

Legend:

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

    r103 r104  
    11package org.openstreetmap.josm.io;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
    24
    35import java.io.BufferedReader;
     
    6769                                        return;
    6870                                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));
    7072                                osm.visit(this);
    7173                                progress.setValue(progress.getValue()+1);
     
    152154                try {
    153155                        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}"));
    155157                        activeConnection = (HttpURLConnection) url.openConnection();
    156158                        activeConnection.setConnectTimeout(15000);
     
    169171                        if (retCode == 200 && osm.id == 0)
    170172                                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));
    172174                        String retMsg = activeConnection.getResponseMessage();
    173175                        activeConnection.disconnect();
     
    181183                        }
    182184                } catch (UnknownHostException e) {
    183                         throw new RuntimeException("Unknown host: "+e.getMessage(), e);
     185                        throw new RuntimeException(tr("Unknown host: ")+e.getMessage(), e);
    184186                } catch (Exception e) {
    185187                        if (cancel)
Note: See TracChangeset for help on using the changeset viewer.