Skip to content

Commit

Permalink
Added dialog title, fine tuned instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
cobratbq committed Jul 22, 2015
1 parent 897600b commit 9640bbb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/languages/resources.properties
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,8 @@ impl.googlecontacts.USERNAME=Account name
impl.googlecontacts.PASSWORD=Password
impl.googlecontacts.PREFIX=Phone prefix
impl.googlecontacts.WRONG_CREDENTIALS=Wrong credentials for Google account {0}
impl.googlecontacts.INSTRUCTIONS=<html><b>Instructions</b>:<p>Click the link below to approve Jitsi's access to the account. By clicking the link, a web page will open in your browser. Log in with the requested account and approve access. Once approved, Google will show you a code. Copy this code into the input box below and click 'Save'.</p><p>This is a one-time operation. Authorization tokens will be stored for future use.</p></html>
impl.googlecontacts.OAUTH_DIALOG_TITLE=Google Contacts authorization
impl.googlecontacts.INSTRUCTIONS=<html><p>Click the link below to approve Google Contacts plugin to access the account. By clicking the link, a web page will open in your browser. Log in with the requested account and approve access. Once approved, Google will show you a code. Copy this code into the text field below and click 'Save'.</p><p>This is a one-time operation. Authorization tokens will be stored for future use.</p></html>
impl.googlecontacts.CODE=Code:
impl.googlecontacts.HYPERLINK_TEXT=Click here to approve access to {0}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ private static class OAuthApprovalDialog

private UserResponseType response = UserResponseType.CANCELLED;

/**
* Construct and initialize the OAuth 2 approval dialog.
*
* @param identity The identity for which approval is requested.
*/
public OAuthApprovalDialog(final String identity)
{
final ResourceManagementService resources =
Expand All @@ -453,6 +458,8 @@ public OAuthApprovalDialog(final String identity)
resources.getI18NString("impl.googlecontacts.INSTRUCTIONS");

// configure dialog
this.setTitle(resources
.getI18NString("impl.googlecontacts.OAUTH_DIALOG_TITLE"));
this.setMinimumSize(new Dimension(20, 20));
this.setPreferredSize(new Dimension(650, 200));
this.setBounds(10, 10, this.getWidth() - 20, this.getHeight() - 20);
Expand Down

0 comments on commit 9640bbb

Please sign in to comment.