Changeset 1338 in josm for trunk/src/org


Ignore:
Timestamp:
2009-01-25T14:07:31+01:00 (16 years ago)
Author:
stoecker
Message:

close #761. modified patch by xeen

File:
1 edited

Legend:

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

    r1195 r1338  
    1515import java.io.StringWriter;
    1616import java.io.UnsupportedEncodingException;
     17import java.lang.Math;
    1718import java.net.ConnectException;
    1819import java.net.HttpURLConnection;
     
    144145                    int progress = Main.pleaseWaitDlg.progress.getValue();
    145146                    String time_left_str = timeLeft(progress, list.size());
    146                     Main.pleaseWaitDlg.currentAction.setText(tr("Upload {0} {1} (id: {2}) {3}% {4}/{5} ({6} left)...",
    147                             tr(v.className), v.name, osm.id, 100.0*progress/list.size(), progress, list.size(), time_left_str));
     147                    Main.pleaseWaitDlg.currentAction.setText(
     148                    tr("{0}% ({1}/{2}), {3} left. Uploading {4}: {5} (id: {6})",
     149                    Math.round(100.0*progress/list.size()), progress,
     150                    list.size(), time_left_str, tr(v.className), v.name, osm.id));
    148151                    osm.visit(this);
    149152                    Main.pleaseWaitDlg.progress.setValue(progress+1);
Note: See TracChangeset for help on using the changeset viewer.