Ignore:
Timestamp:
2010-01-13T19:33:42+01:00 (15 years ago)
Author:
mjulius
Message:

fix messages for actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java

    r2626 r2842  
    3636 */
    3737public final class OrthogonalizeAction extends JosmAction {
    38     String USAGE = "<h3>"+
    39     "When one or more ways are selected, the shape is adjusted, such that all angles are 90 or 180 degrees.<h3>"+
    40     "You can add two nodes to the selection. Then the direction is fixed by these two reference nodes.<h3>"+
     38    String USAGE = tr(
     39    "When one or more ways are selected, the shape is adjusted such, that all angles are 90 or 180 degrees.<h3>"+
     40    "You can add two nodes to the selection. Then, the direction is fixed by these two reference nodes."+
    4141    "(Afterwards, you can undo the movement for certain nodes:<br>"+
    42     "Select them and press the shortcut for Orthogonalize / Undo. The default is Shift-Q.)";
     42    "Select them and press the shortcut for Orthogonalize / Undo. The default is Shift-Q.)");
    4343
    4444    public OrthogonalizeAction() {
     
    194194                JOptionPane.showMessageDialog(
    195195                        Main.parent,
    196                         "<html><h2>"+tr("Usage")+tr(USAGE),
     196                        "<html><h2>" + tr("Usage") + "</h2>" + USAGE + "</html>",
    197197                        tr("Orthogonalize Shape"),
    198198                        JOptionPane.INFORMATION_MESSAGE);
     
    201201                JOptionPane.showMessageDialog(
    202202                        Main.parent,
    203                         "<html><h3>"+tr(ex.getMessage())+"<br><hr><h3>"+tr("Usage")+tr(USAGE),
     203                        "<html>" + tr(ex.getMessage()) + "<br><hr><h2>" + tr("Usage") + "</h2>" + USAGE + "</html>",
    204204                        tr("Selected Elements cannot be orthogonalized"),
    205205                        JOptionPane.INFORMATION_MESSAGE);
Note: See TracChangeset for help on using the changeset viewer.