Ticket #4332: josm-typos.diff

File josm-typos.diff, 7.8 KB (added by andre68@…, 14 years ago)
  • src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java

     
    3333    private JTextField tfConsumerSecret;
    3434    private JTextField tfRequestTokenURL;
    3535    private JTextField tfAccessTokenURL;
    36     private JTextField tfAutoriseURL;
     36    private JTextField tfAuthoriseURL;
    3737    private UseDefaultItemListener ilUseDefault;
    3838
    3939    protected void build() {
     
    9494        SelectAllOnFocusGainedDecorator.decorate(tfAccessTokenURL);
    9595
    9696
    97         // -- autorise URL
     97        // -- authorise URL
    9898        gc.gridy = 5;
    9999        gc.gridx = 0;
    100100        gc.weightx = 0.0;
    101         add(new JLabel(tr("Autorise URL:")), gc);
     101        add(new JLabel(tr("Authorise URL:")), gc);
    102102
    103103        gc.gridx = 1;
    104104        gc.weightx = 1.0;
    105         add(tfAutoriseURL = new JTextField(), gc);
    106         SelectAllOnFocusGainedDecorator.decorate(tfAutoriseURL);
     105        add(tfAuthoriseURL = new JTextField(), gc);
     106        SelectAllOnFocusGainedDecorator.decorate(tfAuthoriseURL);
    107107
    108108        cbUseDefaults.addItemListener(ilUseDefault = new UseDefaultItemListener());
    109109    }
     
    114114        || ! tfConsumerSecret.getText().equals( OAuthParameters.DEFAULT_JOSM_CONSUMER_SECRET)
    115115        || ! tfRequestTokenURL.getText().equals( OAuthParameters.DEFAULT_REQUEST_TOKEN_URL)
    116116        || ! tfAccessTokenURL.getText().equals( OAuthParameters.DEFAULT_ACCESS_TOKEN_URL)
    117         || ! tfAutoriseURL.getText().equals( OAuthParameters.DEFAULT_AUTHORISE_URL);
     117        || ! tfAuthoriseURL.getText().equals( OAuthParameters.DEFAULT_AUTHORISE_URL);
    118118    }
    119119
    120120    protected boolean confirmOverwriteCustomSettings() {
     
    155155        tfConsumerSecret.setText( OAuthParameters.DEFAULT_JOSM_CONSUMER_SECRET);
    156156        tfRequestTokenURL.setText(OAuthParameters.DEFAULT_REQUEST_TOKEN_URL);
    157157        tfAccessTokenURL.setText(OAuthParameters.DEFAULT_ACCESS_TOKEN_URL);
    158         tfAutoriseURL.setText(OAuthParameters.DEFAULT_AUTHORISE_URL);
     158        tfAuthoriseURL.setText(OAuthParameters.DEFAULT_AUTHORISE_URL);
    159159
    160160        setChildComponentsEnabled(false);
    161161    }
     
    181181        parameters.setConsumerSecret(tfConsumerSecret.getText());
    182182        parameters.setRequestTokenUrl(tfRequestTokenURL.getText());
    183183        parameters.setAccessTokenUrl(tfAccessTokenURL.getText());
    184         parameters.setAuthoriseUrl(tfAutoriseURL.getText());
     184        parameters.setAuthoriseUrl(tfAuthoriseURL.getText());
    185185        return parameters;
    186186    }
    187187
     
    203203            tfConsumerSecret.setText( parameters.getConsumerSecret() == null ? "" : parameters.getConsumerSecret());
    204204            tfRequestTokenURL.setText(parameters.getRequestTokenUrl() == null ? "" : parameters.getRequestTokenUrl());
    205205            tfAccessTokenURL.setText(parameters.getAccessTokenUrl() == null ? "" : parameters.getAccessTokenUrl());
    206             tfAutoriseURL.setText(parameters.getAuthoriseUrl() == null ? "" : parameters.getAuthoriseUrl());
     206            tfAuthoriseURL.setText(parameters.getAuthoriseUrl() == null ? "" : parameters.getAuthoriseUrl());
    207207        }
    208208    }
    209209
     
    229229            tfConsumerSecret.setText(pref.get("oauth.settings.consumer-secret", ""));
    230230            tfRequestTokenURL.setText(pref.get("oauth.settings.request-token-url", ""));
    231231            tfAccessTokenURL.setText(pref.get("oauth.settings.access-token-url", ""));
    232             tfAutoriseURL.setText(pref.get("oauth.settings.authorise-url", ""));
     232            tfAuthoriseURL.setText(pref.get("oauth.settings.authorise-url", ""));
    233233            setChildComponentsEnabled(true);
    234234        }
    235235        ilUseDefault.setEnabled(true);
     
    255255            pref.put("oauth.settings.consumer-secret", tfConsumerSecret.getText().trim());
    256256            pref.put("oauth.settings.request-token-url", tfRequestTokenURL.getText().trim());
    257257            pref.put("oauth.settings.access-token-url", tfAccessTokenURL.getText().trim());
    258             pref.put("oauth.settings.authorise-url", tfAutoriseURL.getText().trim());
     258            pref.put("oauth.settings.authorise-url", tfAuthoriseURL.getText().trim());
    259259        }
    260260    }
    261261
  • src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorisationClient.java

     
    434434
    435435            int retCode = connection.getResponseCode();
    436436            if (retCode != HttpURLConnection.HTTP_MOVED_TEMP)
    437                 throw new OsmOAuthAuthorisationException(tr("Failed to autorise OAuth request ''{0}''", requestToken.getKey()));
     437                throw new OsmOAuthAuthorisationException(tr("Failed to authorise OAuth request ''{0}''", requestToken.getKey()));
    438438        } catch(MalformedURLException e) {
    439439            throw new OsmOAuthAuthorisationException(e);
    440440        } catch(IOException e) {
  • src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorisationUI.java

     
    238238                + "You''ve sucessfully retrieved an OAuth Access Token from the OSM website. "
    239239                + "Click on <strong>{0}</strong> to accept the token. JOSM will use it in "
    240240                + "subsequent requests to gain access to the OSM API."
    241                 + "</html",
     241                + "</html>",
    242242                lbl
    243243        ));
    244244        pnl.add(msg, gc);
     
    450450        @Override
    451451        protected void finish() {}
    452452
    453         protected void alertAutorisationFailed(OsmOAuthAuthorisationException e) {
     453        protected void alertAuthorisationFailed(OsmOAuthAuthorisationException e) {
    454454            HelpAwareOptionPane.showOptionDialog(
    455455                    FullyAutomaticAuthorisationUI.this,
    456456                    tr("<html>"
     
    472472                    tr("<html>"
    473473                            + "The automatic process for retrieving an OAuth Access Token<br>"
    474474                            + "from the OSM server failed because JOSM wasn't able to build<br>"
    475                             + "a valid login URL from the OAuth Autorise Endpoint URL ''{0}''.<br><br>"
     475                            + "a valid login URL from the OAuth Authorise Endpoint URL ''{0}''.<br><br>"
    476476                            + "Please check your advanced setting and try again."
    477477                            +"</html>",
    478478                            getAdvancedPropertiesPanel().getAdvancedParameters().getAuthoriseUrl()
     
    514514                    if (e instanceof OsmLoginFailedException) {
    515515                        alertLoginFailed((OsmLoginFailedException)e);
    516516                    } else {
    517                         alertAutorisationFailed(e);
     517                        alertAuthorisationFailed(e);
    518518                    }
    519519                }
    520520            };
  • src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorisationUI.java

     
    233233            gc.gridy = 1;
    234234            gc.weightx = 0.0;
    235235            gc.gridwidth = 1;
    236             pnl.add(new JLabel(tr("Autorise URL:")), gc);
     236            pnl.add(new JLabel(tr("Authorise URL:")), gc);
    237237
    238238            gc.gridx = 1;
    239239            gc.weightx = 1.0;