Changeset 28342 in osm for applications/editors
- Timestamp:
- 2012-04-23T12:17:10+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSelAlgnState.java
r27348 r28342 5 5 6 6 import org.openstreetmap.josm.Main; 7 import static org.openstreetmap.josm.tools.I18n.tr; 7 8 8 9 /** … … 25 26 public void setHelpText() { 26 27 Main.map.statusLine 27 .setHelpText( "Ctrl-Click: select reference way segment; Alt-click: Clear selection");28 .setHelpText(tr("Ctrl-Click: select reference way segment; Alt-click: Clear selection")); 28 29 } 29 30 -
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSelBothState.java
r27348 r28342 4 4 package com.tilusnet.josm.plugins.alignways; 5 5 6 import static org.openstreetmap.josm.tools.I18n.tr; 6 7 import org.openstreetmap.josm.Main; 7 8 … … 26 27 Main.map.statusLine 27 28 .setHelpText(AlignWaysPlugin.getAwAction().getShortcut().getKeyText() + 28 ": Align segments; Alt-click: Clear selection");29 tr(": Align segments; Alt-click: Clear selection")); 29 30 } 30 31 -
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSelNoneState.java
r27348 r28342 4 4 package com.tilusnet.josm.plugins.alignways; 5 5 6 import static org.openstreetmap.josm.tools.I18n.tr; 6 7 import org.openstreetmap.josm.Main; 7 8 … … 28 29 public void setHelpText() { 29 30 Main.map.statusLine 30 .setHelpText( "Ctrl-click: select reference way segment; Click: select way segment to be aligned");31 .setHelpText(tr("Ctrl-click: select reference way segment; Click: select way segment to be aligned")); 31 32 } 32 33 -
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSelRefState.java
r27348 r28342 4 4 package com.tilusnet.josm.plugins.alignways; 5 5 6 import static org.openstreetmap.josm.tools.I18n.tr; 6 7 import org.openstreetmap.josm.Main; 7 8 … … 25 26 public void setHelpText() { 26 27 Main.map.statusLine 27 .setHelpText( "Click: select way segment to be aligned; Alt-click: Clear selection");28 .setHelpText(tr("Click: select way segment to be aligned; Alt-click: Clear selection")); 28 29 } 29 30 -
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysState.java
r27348 r28342 4 4 package com.tilusnet.josm.plugins.alignways; 5 5 6 import static org.openstreetmap.josm.tools.I18n.tr; 6 7 import org.openstreetmap.josm.Main; 7 8 … … 21 22 alignWaysMode.setCurrentState(alignWaysMode.getNoneSelected()); 22 23 Main.map.statusLine 23 .setHelpText( "Ctrl-Click: select reference way segment; Click: select way segment to be aligned");24 .setHelpText(tr("Ctrl-Click: select reference way segment; Click: select way segment to be aligned")); 24 25 } 25 26 -
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysWhatsNewPanel.java
r27348 r28342 47 47 newItem2 = new javax.swing.JLabel(); 48 48 49 lblWhatsNew.setText("<html><div style=\"font-family: sans-serif; font-weight: bold; font-style: italic;\"><span style=\"font-size: large;\"><span style=\"font-size: x-large;\">What's new...</span></div></html>"); 49 lblWhatsNew.setText("<html><div style=\"font-family: sans-serif; font-weight: bold; font-style: italic;\"><span style=\"font-size: large;\"><span style=\"font-size: x-large;\">" 50 + tr("What's new...") 51 + "</span></div></html>"); 50 52 51 53 icnLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/wndialog/alignways64.png"))); // NOI18N 52 54 53 newItem1.setText("<html><div style=\"font-family: sans-serif;\"><ul style=\"margin-left: 20px;\"><li>Added <b>angle preserving</b> aligning mode</li></ul></div></html>"); 55 newItem1.setText("<html><div style=\"font-family: sans-serif;\"><ul style=\"margin-left: 20px;\"><li>" 56 + tr("Added <b>angle preserving</b> aligning mode") 57 + "</li></ul></div></html>"); 54 58 55 59 btnHelpItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/wndialog/extlink10.png"))); // NOI18N … … 69 73 }); 70 74 71 newItem2.setText("<html><div style=\"font-family: sans-serif;\"><ul style=\"margin-left: 20px;\"><li>Various improvements and bugfixes</li></ul></div></html>"); 75 newItem2.setText("<html><div style=\"font-family: sans-serif;\"><ul style=\"margin-left: 20px;\"><li>" 76 + tr("Various improvements and bugfixes") 77 + "</li></ul></div></html>"); 72 78 73 79 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); … … 132 138 Logger.getLogger(AlignWaysWhatsNewPanel.class.getName()).log(Level.SEVERE, null, ex); 133 139 } catch (IOException e) { 134 JOptionPane.showMessageDialog(this, e, "Errr...", JOptionPane.WARNING_MESSAGE);140 JOptionPane.showMessageDialog(this, e, tr("Errr..."), JOptionPane.WARNING_MESSAGE); 135 141 } 136 142 } else { 137 JOptionPane.showMessageDialog(this, "Browser not supported.", "Errr...", JOptionPane.WARNING_MESSAGE);143 JOptionPane.showMessageDialog(this, tr("Browser not supported."), tr("Errr..."), JOptionPane.WARNING_MESSAGE); 138 144 } 139 145 }
Note:
See TracChangeset
for help on using the changeset viewer.