Ignore:
Timestamp:
2011-06-23T17:50:32+02:00 (13 years ago)
Author:
stoecker
Message:

fix i18n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java

    r26147 r26168  
    11package public_transport;
    22
    3 import static org.openstreetmap.josm.tools.I18n.marktr;
    43import static org.openstreetmap.josm.tools.I18n.tr;
    54
     
    117116      }
    118117      JFileChooser fc = new JFileChooser(new File(curDir));
    119       fc.setDialogTitle("Select GPX file");
     118      fc.setDialogTitle(tr("Select GPX file"));
    120119      fc.setMultiSelectionEnabled(false);
    121120
     
    265264    {
    266265      JOptionPane.showMessageDialog
    267       (null, "The GPX file contained no tracks or waypoints.", "No data found",
     266      (null, tr("The GPX file contained no tracks or waypoints."), tr("No data found"),
    268267       JOptionPane.ERROR_MESSAGE);
    269 
    270       System.out.println("Public Transport: StopImporter: No data found");
    271268    }
    272269  }
     
    307304    if (Main.main.getCurrentDataSet() == null)
    308305    {
    309       JOptionPane.showMessageDialog(null, "There exists no dataset."
    310       + " Try to download data from the server or open an OSM file.",
    311    "No data found", JOptionPane.ERROR_MESSAGE);
    312 
    313       System.out.println("Public Transport: StopInserter: No data found");
     306      JOptionPane.showMessageDialog(null, tr("There exists no dataset."
     307      + " Try to download data from the server or open an OSM file."),
     308     tr("No data found"), JOptionPane.ERROR_MESSAGE);
    314309
    315310      return null;
     
    345340    {
    346341      for (int i = 0; i < selectedLines.length; ++i)
    347     consideredLines.add(selectedLines[i]);
     342        consideredLines.add(selectedLines[i]);
    348343    }
    349344    else
    350345    {
    351346      for (int i = 0; i < table.getRowCount(); ++i)
    352     consideredLines.add(new Integer(i));
     347        consideredLines.add(new Integer(i));
    353348    }
    354349    return consideredLines;
     
    366361    {
    367362      if ((nodes.elementAt(i) != null) &&
    368        (Main.main.getCurrentDataSet().isSelected(nodes.elementAt(i))))
    369     table.addRowSelectionInterval(i, i);
     363      (Main.main.getCurrentDataSet().isSelected(nodes.elementAt(i))))
     364        table.addRowSelectionInterval(i, i);
    370365    }
    371366  }
     
    381376      int j = consideredLines.elementAt(i);
    382377      if (nodes.elementAt(j) != null)
    383     nodes.elementAt(j).visit(box);
     378        nodes.elementAt(j).visit(box);
    384379    }
    385380    if (box.getBounds() == null)
     
    400395      int j = consideredLines.elementAt(i);
    401396      if (nodes.elementAt(j) != null)
    402     Main.main.getCurrentDataSet().addSelected(nodes.elementAt(j));
     397        Main.main.getCurrentDataSet().addSelected(nodes.elementAt(j));
    403398    }
    404399  }
     
    464459      public void actionPerformed(ActionEvent e)
    465460      {
    466     JTable table = dialog.getStoplistTable();
    467     int row = table.getEditingRow();
    468     if (row < 0)
    469       return;
    470     table.clearSelection();
    471     table.addRowSelectionInterval(row, row);
    472     Main.main.undoRedo.add
    473         (new TrackStoplistDeleteCommand(StopImporterAction.this));
     461        JTable table = dialog.getStoplistTable();
     462        int row = table.getEditingRow();
     463        if (row < 0)
     464          return;
     465        table.clearSelection();
     466        table.addRowSelectionInterval(row, row);
     467        Main.main.undoRedo.add
     468            (new TrackStoplistDeleteCommand(StopImporterAction.this));
    474469      }
    475470    };
Note: See TracChangeset for help on using the changeset viewer.