Changeset 28342 in osm for applications/editors


Ignore:
Timestamp:
2012-04-23T12:17:10+02:00 (12 years ago)
Author:
tilusnet
Message:

Additional translation tr() calls.

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  
    55
    66import org.openstreetmap.josm.Main;
     7import static org.openstreetmap.josm.tools.I18n.tr;
    78
    89/**
     
    2526    public void setHelpText() {
    2627        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"));
    2829    }
    2930
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSelBothState.java

    r27348 r28342  
    44package com.tilusnet.josm.plugins.alignways;
    55
     6import static org.openstreetmap.josm.tools.I18n.tr;
    67import org.openstreetmap.josm.Main;
    78
     
    2627        Main.map.statusLine
    2728        .setHelpText(AlignWaysPlugin.getAwAction().getShortcut().getKeyText() +
    28                 ": Align segments; Alt-click: Clear selection");
     29                tr(": Align segments; Alt-click: Clear selection"));
    2930    }
    3031
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSelNoneState.java

    r27348 r28342  
    44package com.tilusnet.josm.plugins.alignways;
    55
     6import static org.openstreetmap.josm.tools.I18n.tr;
    67import org.openstreetmap.josm.Main;
    78
     
    2829    public void setHelpText() {
    2930        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"));
    3132    }
    3233
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysSelRefState.java

    r27348 r28342  
    44package com.tilusnet.josm.plugins.alignways;
    55
     6import static org.openstreetmap.josm.tools.I18n.tr;
    67import org.openstreetmap.josm.Main;
    78
     
    2526    public void setHelpText() {
    2627        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"));
    2829    }
    2930
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysState.java

    r27348 r28342  
    44package com.tilusnet.josm.plugins.alignways;
    55
     6import static org.openstreetmap.josm.tools.I18n.tr;
    67import org.openstreetmap.josm.Main;
    78
     
    2122        alignWaysMode.setCurrentState(alignWaysMode.getNoneSelected());
    2223        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"));
    2425    }
    2526
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysWhatsNewPanel.java

    r27348 r28342  
    4747        newItem2 = new javax.swing.JLabel();
    4848
    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>");
    5052
    5153        icnLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/wndialog/alignways64.png"))); // NOI18N
    5254
    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>");
    5458
    5559        btnHelpItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/wndialog/extlink10.png"))); // NOI18N
     
    6973        });
    7074
    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>");
    7278
    7379        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
     
    132138                Logger.getLogger(AlignWaysWhatsNewPanel.class.getName()).log(Level.SEVERE, null, ex);
    133139          } catch (IOException e) {
    134               JOptionPane.showMessageDialog(this, e, "Errr...", JOptionPane.WARNING_MESSAGE);
     140              JOptionPane.showMessageDialog(this, e, tr("Errr..."), JOptionPane.WARNING_MESSAGE);
    135141          }
    136142        } 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);
    138144        }
    139145    }
Note: See TracChangeset for help on using the changeset viewer.