Changeset 10334 in osm for applications/editors/josm
- Timestamp:
- 2008-08-30T17:06:52+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/CorrelateGpxWithImages.java
r10122 r10334 181 181 } 182 182 183 /** This action listener is called when the user has a photo of the time of his GPS rece ptor. It183 /** This action listener is called when the user has a photo of the time of his GPS receiver. It 184 184 * displays the list of photos of the layer, and upon selection displays the selected photo. 185 185 * From that photo, the user can key in the time of the GPS. … … 201 201 panel = new JPanel(); 202 202 panel.setLayout(new BorderLayout()); 203 panel.add(new JLabel(tr("<html>Take a photo of your GPS rece ptor while it displays the time.<br>"203 panel.add(new JLabel(tr("<html>Take a photo of your GPS receiver while it displays the time.<br>" 204 204 + "Display that photo here.<br>" 205 205 + "And then, simply capture the time you read on the photo and select a timezone<hr></html>")), … … 219 219 gc.fill = GridBagConstraints.NONE; 220 220 gc.anchor = GridBagConstraints.WEST; 221 panelTf.add(new JLabel(tr("Photo time (from exif) 221 panelTf.add(new JLabel(tr("Photo time (from exif):")), gc); 222 222 223 223 lbExifTime = new JLabel(); … … 234 234 gc.fill = GridBagConstraints.NONE; 235 235 gc.anchor = GridBagConstraints.WEST; 236 panelTf.add(new JLabel(tr("Gps time (read from the above photo) 236 panelTf.add(new JLabel(tr("Gps time (read from the above photo): ")), gc); 237 237 238 238 tfGpsTime = new JTextField(); … … 254 254 gc.fill = GridBagConstraints.NONE; 255 255 gc.anchor = GridBagConstraints.WEST; 256 panelTf.add(new JLabel(tr("I'm in the timezone of 256 panelTf.add(new JLabel(tr("I'm in the timezone of: ")), gc); 257 257 258 258 Vector vtTimezones = new Vector<String>(); … … 374 374 boolean isOk = false; 375 375 while (! isOk) { 376 int answer = JOptionPane.showConfirmDialog(Main.parent, panel, tr("Synchronize time from a photo of the GPS rece ptor"), JOptionPane.OK_CANCEL_OPTION);376 int answer = JOptionPane.showConfirmDialog(Main.parent, panel, tr("Synchronize time from a photo of the GPS receiver"), JOptionPane.OK_CANCEL_OPTION); 377 377 if (answer == JOptionPane.CANCEL_OPTION) { 378 378 return; … … 436 436 panelCb.setLayout(new FlowLayout()); 437 437 438 panelCb.add(new JLabel(tr("GPX track 438 panelCb.add(new JLabel(tr("GPX track: "))); 439 439 440 440 cbGpx = new JComboBox(gpxLst); … … 457 457 gc.fill = GridBagConstraints.NONE; 458 458 gc.weightx = gc.weighty = 0.0; 459 panelTf.add(new JLabel(tr("Timezone 459 panelTf.add(new JLabel(tr("Timezone: ")), gc); 460 460 461 461 float gpstimezone = Float.parseFloat(Main.pref.get("tagimages.doublegpstimezone", "0.0")); … … 479 479 gc.fill = GridBagConstraints.NONE; 480 480 gc.weightx = gc.weighty = 0.0; 481 panelTf.add(new JLabel(tr("Offset 481 panelTf.add(new JLabel(tr("Offset:")), gc); 482 482 483 483 long delta = Long.parseLong(Main.pref.get("tagimages.delta", "0")) / 1000; … … 491 491 panelTf.add(tfOffset, gc); 492 492 493 JButton buttonViewGpsPhoto = new JButton(tr("<html>I can take a picture of my GPS rece ptor.<br>"494 + "Can this help ?</html>"));493 JButton buttonViewGpsPhoto = new JButton(tr("<html>I can take a picture of my GPS receiver.<br>" 494 + "Can this help?</html>")); 495 495 buttonViewGpsPhoto.addActionListener(new SetOffsetActionListener()); 496 496 gc.gridx = 2; … … 508 508 gc.fill = GridBagConstraints.NONE; 509 509 gc.weightx = gc.weighty = 0.0; 510 panelTf.add(new JLabel(tr("Update position for 510 panelTf.add(new JLabel(tr("Update position for: ")), gc); 511 511 512 512 gc.gridx = 1; … … 572 572 Float timezoneValue = parseTimezone(tfTimezone.getText().trim()); 573 573 if (timezoneValue == null) { 574 JOptionPane.showMessageDialog(Main.parent, tr("Error while parsing timezone.\nExpected format 574 JOptionPane.showMessageDialog(Main.parent, tr("Error while parsing timezone.\nExpected format: {0}", "+H:MM"), 575 575 tr("Invalid timezone"), JOptionPane.ERROR_MESSAGE); 576 576 continue; … … 581 581 delta = Long.parseLong(tfOffset.getText()); 582 582 } catch(NumberFormatException nfe) { 583 JOptionPane.showMessageDialog(Main.parent, tr("Error while parsing offset.\nExpected format 583 JOptionPane.showMessageDialog(Main.parent, tr("Error while parsing offset.\nExpected format: {0}", "number"), 584 584 tr("Invalid offset"), JOptionPane.ERROR_MESSAGE); 585 585 continue; … … 643 643 Main.main.map.repaint(); 644 644 645 JOptionPane.showMessageDialog(Main.parent, tr("Found {0} matchs of {1} in GPX track {2}", matched, dateImgLst.size(), selectedGpx.name), 645 JOptionPane.showMessageDialog(Main.parent, tr("Found {0} matchs of {1} in GPX track {2}", matched, dateImgLst.size(), selectedGpx.name), 646 646 tr("GPX Track loaded"), 647 647 ((dateImgLst.size() > 0 && matched == 0) ? JOptionPane.WARNING_MESSAGE
Note:
See TracChangeset
for help on using the changeset viewer.