Changeset 2877 in josm for trunk/src/org/openstreetmap/josm/gui/oauth
- Timestamp:
- 2010-01-18T22:28:36+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/oauth
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java
r2804 r2877 99 99 gc.gridx = 0; 100 100 gc.weightx = 0.0; 101 add(new JLabel(tr("Authori se URL:")), gc);101 add(new JLabel(tr("Authorize URL:")), gc); 102 102 103 103 gc.gridx = 1; -
trunk/src/org/openstreetmap/josm/gui/oauth/AuthorizationProcedureComboBox.java
r2861 r2877 73 73 "<html>Run a fully automatic procedure to get an access token from the OSM website.<br>" 74 74 + "JOSM accesses the OSM website on behalf of the JOSM user and fully<br>" 75 + "automatically authori ses the user and retrieves an Access Token.</html>"75 + "automatically authorizes the user and retrieves an Access Token.</html>" 76 76 )); 77 77 break; -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r2861 r2877 331 331 class RunAuthorisationAction extends AbstractAction implements DocumentListener{ 332 332 public RunAuthorisationAction() { 333 putValue(NAME, tr("Authori se now"));333 putValue(NAME, tr("Authorize now")); 334 334 putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth")); 335 putValue(SHORT_DESCRIPTION, tr("Click to redirect you to the authori sation form on the JOSM web site"));335 putValue(SHORT_DESCRIPTION, tr("Click to redirect you to the authorization form on the JOSM web site")); 336 336 updateEnabledState(); 337 337 } … … 364 364 public BackAction() { 365 365 putValue(NAME, tr("Back")); 366 putValue(SHORT_DESCRIPTION, tr("Run the automatic authori sation steps again"));366 putValue(SHORT_DESCRIPTION, tr("Run the automatic authorization steps again")); 367 367 putValue(SMALL_ICON, ImageProvider.get("dialogs", "previous")); 368 368 } … … 440 440 441 441 public FullyAutomaticAuthorisationTask(Component parent) { 442 super(parent, tr("Authori se JOSM to access the OSM API"), false /* don't ignore exceptions */);442 super(parent, tr("Authorize JOSM to access the OSM API"), false /* don't ignore exceptions */); 443 443 } 444 444 … … 457 457 + "The automatic process for retrieving an OAuth Access Token<br>" 458 458 + "from the OSM server failed.<br><br>" 459 + "Please try again or choose another kind of authori sation process,<br>"460 + "i.e. semi-automatic or manual authori sation."459 + "Please try again or choose another kind of authorization process,<br>" 460 + "i.e. semi-automatic or manual authorization." 461 461 +"</html>" 462 462 ), 463 tr("OAuth authori sation failed"),463 tr("OAuth authorization failed"), 464 464 JOptionPane.ERROR_MESSAGE, 465 465 HelpUtil.ht("/Dialog/OAuthAuthorisationWizard#FullyAutomaticProcessFailed") … … 473 473 + "The automatic process for retrieving an OAuth Access Token<br>" 474 474 + "from the OSM server failed because JOSM was not able to build<br>" 475 + "a valid login URL from the OAuth Authori se Endpoint URL ''{0}''.<br><br>"475 + "a valid login URL from the OAuth Authorize Endpoint URL ''{0}''.<br><br>" 476 476 + "Please check your advanced setting and try again." 477 477 + "</html>", 478 478 getAdvancedPropertiesPanel().getAdvancedParameters().getAuthoriseUrl() 479 479 ), 480 tr("OAuth authori sation failed"),480 tr("OAuth authorization failed"), 481 481 JOptionPane.ERROR_MESSAGE, 482 482 HelpUtil.ht("/Dialog/OAuthAuthorisationWizard#FullyAutomaticProcessFailed") … … 503 503 getOsmUserName() 504 504 ), 505 tr("OAuth authori sation failed"),505 tr("OAuth authorization failed"), 506 506 JOptionPane.ERROR_MESSAGE, 507 507 HelpUtil.ht("/Dialog/OAuthAuthorisationWizard#FullyAutomaticProcessFailed") -
trunk/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java
r2861 r2877 56 56 pnlMessage= new HtmlPanel(); 57 57 pnlMessage.setText("<html><body>" 58 + tr("Please enter an OAuth Access Token which is authori sed to access the OSM server "58 + tr("Please enter an OAuth Access Token which is authorized to access the OSM server " 59 59 + "''{0}''.", 60 60 getApiUrl()) + "</body></html>"); … … 138 138 super.setApiUrl(apiUrl); 139 139 pnlMessage.setText(tr("<html><body>" 140 + "Please enter an OAuth Access Token which is authori sed to access the OSM server "140 + "Please enter an OAuth Access Token which is authorized to access the OSM server " 141 141 + "''{0}''." 142 142 + "</body></html>", -
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r2861 r2877 119 119 gc.gridwidth = 1; 120 120 gc.weightx = 0.0; 121 lbl = new JLabel(tr("Please select an authori sation procedure: "));121 lbl = new JLabel(tr("Please select an authorization procedure: ")); 122 122 lbl.setFont(lbl.getFont().deriveFont(Font.PLAIN)); 123 123 pnl.add(lbl,gc); … … 338 338 putValue(NAME, tr("Cancel")); 339 339 putValue(SMALL_ICON, ImageProvider.get("cancel")); 340 putValue(SHORT_DESCRIPTION, tr("Close the dialog and cancel authori sation"));340 putValue(SHORT_DESCRIPTION, tr("Close the dialog and cancel authorization")); 341 341 } 342 342 -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r2861 r2877 435 435 int retCode = connection.getResponseCode(); 436 436 if (retCode != HttpURLConnection.HTTP_MOVED_TEMP) 437 throw new OsmOAuthAuthorizationException(tr("Failed to authori se OAuth request ''{0}''", requestToken.getKey()));437 throw new OsmOAuthAuthorizationException(tr("Failed to authorize OAuth request ''{0}''", requestToken.getKey())); 438 438 } catch(MalformedURLException e) { 439 439 throw new OsmOAuthAuthorizationException(e); … … 482 482 } 483 483 try { 484 monitor.beginTask(tr("Authori sing OAuth Request token ''{0}'' at the OSM website ...", requestToken.getKey()));484 monitor.beginTask(tr("Authorizing OAuth Request token ''{0}'' at the OSM website ...", requestToken.getKey())); 485 485 monitor.setTicksCount(4); 486 486 monitor.indeterminateSubTask(tr("Initializing a session at the OSM website...")); … … 496 496 monitor.worked(1); 497 497 498 monitor.indeterminateSubTask(tr("Authori sing request token ''{0}''...", requestToken.getKey()));498 monitor.indeterminateSubTask(tr("Authorizing request token ''{0}''...", requestToken.getKey())); 499 499 sendAuthorisationRequest(sessionId, requestToken, privileges); 500 500 if (canceled) -
trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorizationUI.java
r2861 r2877 203 203 protected JPanel buildTitlePanel() { 204 204 JPanel pnl = new JPanel(new BorderLayout()); 205 JLabel lbl = new JLabel(tr("<html>Step 2/3: Authori se and retrieve an Access Token</html>"));205 JLabel lbl = new JLabel(tr("<html>Step 2/3: Authorize and retrieve an Access Token</html>")); 206 206 lbl.setFont(lbl.getFont().deriveFont(16f)); 207 207 pnl.add(lbl, BorderLayout.CENTER); … … 220 220 html.setText(tr("<html>" 221 221 + "JOSM successfully retrieved a Request Token. " 222 + "JOSM is now launching an authori sation page in an external browser. "222 + "JOSM is now launching an authorization page in an external browser. " 223 223 + "Please login with your OSM username and password and follow the instructions " 224 + "to authori se the Request Token. Then switch back to this dialog and click on "224 + "to authorize the Request Token. Then switch back to this dialog and click on " 225 225 + "<strong>{0}</strong><br><br>" 226 + "If launching the external browser fails you can copy the following authori se URL "226 + "If launching the external browser fails you can copy the following authorize URL " 227 227 + "and paste it into the address field of your browser.</html>", 228 228 tr("Request Access Token") … … 234 234 gc.weightx = 0.0; 235 235 gc.gridwidth = 1; 236 pnl.add(new JLabel(tr("Authori se URL:")), gc);236 pnl.add(new JLabel(tr("Authorize URL:")), gc); 237 237 238 238 gc.gridx = 1; … … 307 307 + "JOSM has successfully retrieved an Access Token. " 308 308 + "You can now accept this token. JOSM will use it in the future for authentication " 309 + "and authori sation to the OSM server.<br><br>"309 + "and authorization to the OSM server.<br><br>" 310 310 + "The access token is: </html>" 311 311 )); -
trunk/src/org/openstreetmap/josm/gui/oauth/TestAccessTokenTask.java
r2861 r2877 164 164 + "Failed to access the OSM server ''{0}''<br>" 165 165 + "with the Access Token ''{0}''.<br>" 166 + "The server rejected the Access Token as unauthori sed. You will not<br>"166 + "The server rejected the Access Token as unauthorized. You will not<br>" 167 167 + "be able to access any protected resource on this server using this token." 168 168 +"</html>",
Note:
See TracChangeset
for help on using the changeset viewer.