Ignore:
Timestamp:
2006-07-03T00:31:24+02:00 (20 years ago)
Author:
imi
Message:
  • started i18n
  • started "download incomplete ways" action
  • added straight line selection mode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/io/OsmConnection.java

    r103 r104  
    11package org.openstreetmap.josm.io;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
    24
    35import java.awt.Font;
     
    6668                                JPanel p = new JPanel(new GridBagLayout());
    6769                                if (!username.equals("") && !password.equals(""))
    68                                         p.add(new JLabel("Incorrect password or username."), GBC.eop());
    69                                 p.add(new JLabel("Username"), GBC.std().insets(0,0,10,0));
     70                                        p.add(new JLabel(tr("Incorrect password or username.")), GBC.eop());
     71                                p.add(new JLabel(tr("Username")), GBC.std().insets(0,0,10,0));
    7072                                JTextField usernameField = new JTextField(username, 20);
    7173                                p.add(usernameField, GBC.eol());
    72                                 p.add(new JLabel("Password"), GBC.std().insets(0,0,10,0));
     74                                p.add(new JLabel(tr("Password")), GBC.std().insets(0,0,10,0));
    7375                                JPasswordField passwordField = new JPasswordField(password, 20);
    7476                                p.add(passwordField, GBC.eol());
    75                                 JLabel warning = new JLabel("Warning: The password is transferred unencrypted.");
     77                                JLabel warning = new JLabel(tr("Warning: The password is transferred unencrypted."));
    7678                                warning.setFont(warning.getFont().deriveFont(Font.ITALIC));
    7779                                p.add(warning, GBC.eop());
    7880
    79                                 JCheckBox savePassword = new JCheckBox("Save user and password (unencrypted)", !username.equals("") && !password.equals(""));
     81                                JCheckBox savePassword = new JCheckBox(tr("Save user and password (unencrypted)"), !username.equals("") && !password.equals(""));
    8082                                p.add(savePassword, GBC.eop());
    8183
    82                                 int choice = JOptionPane.showConfirmDialog(Main.parent, p, "Enter Password", JOptionPane.OK_CANCEL_OPTION);
     84                                int choice = JOptionPane.showConfirmDialog(Main.parent, p, tr("Enter Password"), JOptionPane.OK_CANCEL_OPTION);
    8385                                if (choice == JOptionPane.CANCEL_OPTION) {
    8486                                        authCancelled = true;
     
    120122
    121123        public void cancel() {
    122                 currentAction.setText("Aborting...");
     124                currentAction.setText(tr("Aborting..."));
    123125                cancel = true;
    124126                if (activeConnection != null) {
Note: See TracChangeset for help on using the changeset viewer.