mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
Use Log In vs. Login when it's a verb
Summary: Cursory research indicates that "login" is a noun, referring to a form, and "log in" is a verb, referring to the action of logging in. I went though every instances of 'login' I could find and tried to clarify all this language. Also, we have "Phabricator" on the registration for like 4-5 times, which is a bit verbose, so I tried to simplify that language as well. Test Plan: Tested logging in and logging out. Pages feel simpler. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D18322
This commit is contained in:
parent
ab018e1b49
commit
ba4b936dff
18 changed files with 44 additions and 45 deletions
|
@ -54,7 +54,7 @@ final class PhabricatorAuthFinishController
|
|||
->addHiddenInput(AphrontRequest::TYPE_HISEC, true)
|
||||
->appendParagraph(
|
||||
pht(
|
||||
'Welcome, %s. To complete the login process, provide your '.
|
||||
'Welcome, %s. To complete the process of logging in, provide your '.
|
||||
'multi-factor credentials.',
|
||||
phutil_tag('strong', array(), $viewer->getUsername())))
|
||||
->appendChild($form->buildLayoutView())
|
||||
|
|
|
@ -92,8 +92,8 @@ final class PhabricatorAuthLoginController
|
|||
} else {
|
||||
return $this->renderError(
|
||||
pht(
|
||||
'The external account ("%s") you just used to login is already '.
|
||||
'associated with another Phabricator user account. Login to the '.
|
||||
'The external account ("%s") you just used to log in is already '.
|
||||
'associated with another Phabricator user account. Log in to the '.
|
||||
'other Phabricator account and unlink the external account before '.
|
||||
'linking it to a new Phabricator account.',
|
||||
$provider->getProviderName()));
|
||||
|
@ -214,7 +214,7 @@ final class PhabricatorAuthLoginController
|
|||
if (!$provider) {
|
||||
return $this->renderError(
|
||||
pht(
|
||||
'The account you are attempting to login with uses a nonexistent '.
|
||||
'The account you are attempting to log in with uses a nonexistent '.
|
||||
'or disabled authentication provider (with key "%s"). An '.
|
||||
'administrator may have recently disabled this provider.',
|
||||
$this->providerKey));
|
||||
|
@ -240,14 +240,14 @@ final class PhabricatorAuthLoginController
|
|||
if ($this->getRequest()->getUser()->isLoggedIn()) {
|
||||
$crumbs->addTextCrumb(pht('Link Account'), $provider->getSettingsURI());
|
||||
} else {
|
||||
$crumbs->addTextCrumb(pht('Login'), $this->getApplicationURI('start/'));
|
||||
$crumbs->addTextCrumb(pht('Log In'), $this->getApplicationURI('start/'));
|
||||
}
|
||||
|
||||
$crumbs->addTextCrumb($provider->getProviderName());
|
||||
$crumbs->setBorder(true);
|
||||
|
||||
return $this->newPage()
|
||||
->setTitle(pht('Login'))
|
||||
->setTitle(pht('Log In'))
|
||||
->setCrumbs($crumbs)
|
||||
->appendChild($content);
|
||||
}
|
||||
|
@ -257,9 +257,8 @@ final class PhabricatorAuthLoginController
|
|||
$message) {
|
||||
|
||||
$message = pht(
|
||||
'Authentication provider ("%s") encountered an error during login. %s',
|
||||
$provider->getProviderName(),
|
||||
$message);
|
||||
'Authentication provider ("%s") encountered an error while attempting '.
|
||||
'to log in. %s', $provider->getProviderName(), $message);
|
||||
|
||||
return $this->renderError($message);
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ final class PhabricatorAuthOneTimeLoginController
|
|||
|
||||
if (!$token) {
|
||||
return $this->newDialog()
|
||||
->setTitle(pht('Unable to Login'))
|
||||
->setTitle(pht('Unable to Log In'))
|
||||
->setShortTitle(pht('Login Failure'))
|
||||
->appendParagraph(
|
||||
pht(
|
||||
|
@ -170,7 +170,7 @@ final class PhabricatorAuthOneTimeLoginController
|
|||
case PhabricatorAuthSessionEngine::ONETIME_USERNAME:
|
||||
case PhabricatorAuthSessionEngine::ONETIME_RESET:
|
||||
default:
|
||||
$title = pht('Login to Phabricator');
|
||||
$title = pht('Log in to Phabricator');
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,7 @@ final class PhabricatorAuthOneTimeLoginController
|
|||
|
||||
$dialog = $this->newDialog()
|
||||
->setTitle($title)
|
||||
->addSubmitButton(pht('Login (%s)', $target_user->getUsername()))
|
||||
->addSubmitButton(pht('Log In (%s)', $target_user->getUsername()))
|
||||
->addCancelButton('/');
|
||||
|
||||
foreach ($body as $paragraph) {
|
||||
|
|
|
@ -483,14 +483,14 @@ final class PhabricatorAuthRegisterController
|
|||
if ($can_edit_username) {
|
||||
$form->appendChild(
|
||||
id(new AphrontFormTextControl())
|
||||
->setLabel(pht('Phabricator Username'))
|
||||
->setLabel(pht('Username'))
|
||||
->setName('username')
|
||||
->setValue($value_username)
|
||||
->setError($e_username));
|
||||
} else {
|
||||
$form->appendChild(
|
||||
id(new AphrontFormMarkupControl())
|
||||
->setLabel(pht('Phabricator Username'))
|
||||
->setLabel(pht('Username'))
|
||||
->setValue($value_username)
|
||||
->setError($e_username));
|
||||
}
|
||||
|
@ -546,7 +546,7 @@ final class PhabricatorAuthRegisterController
|
|||
} else {
|
||||
$submit
|
||||
->addCancelButton($this->getApplicationURI('start/'))
|
||||
->setValue(pht('Register Phabricator Account'));
|
||||
->setValue(pht('Register Account'));
|
||||
}
|
||||
|
||||
|
||||
|
@ -560,7 +560,7 @@ final class PhabricatorAuthRegisterController
|
|||
} else {
|
||||
$crumbs->addTextCrumb(pht('Register'));
|
||||
$crumbs->addTextCrumb($provider->getProviderName());
|
||||
$title = pht('Phabricator Registration');
|
||||
$title = pht('Create a New Account');
|
||||
}
|
||||
$crumbs->setBorder(true);
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ final class PhabricatorAuthStartController
|
|||
$crumbs->addTextCrumb(pht('Login'));
|
||||
$crumbs->setBorder(true);
|
||||
|
||||
$title = pht('Login to Phabricator');
|
||||
$title = pht('Login');
|
||||
$view = array(
|
||||
$header,
|
||||
$invite_message,
|
||||
|
@ -239,8 +239,8 @@ final class PhabricatorAuthStartController
|
|||
|
||||
return $this->newDialog()
|
||||
->setTitle(pht('Login Required'))
|
||||
->appendParagraph(pht('You must login to take this action.'))
|
||||
->addSubmitButton(pht('Login'))
|
||||
->appendParagraph(pht('You must log in to take this action.'))
|
||||
->addSubmitButton(pht('Log In'))
|
||||
->addCancelButton('/');
|
||||
}
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ final class PhabricatorAuthUnlinkController
|
|||
pht(
|
||||
'You can not unlink this account because you have no other '.
|
||||
'valid login accounts. If you removed it, you would be unable '.
|
||||
'to login. Add another authentication method before removing '.
|
||||
'to log in. Add another authentication method before removing '.
|
||||
'this one.'))
|
||||
->addCancelButton($this->getDoneURI());
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ final class PhabricatorEmailLoginController
|
|||
->setTitle(pht('Check Your Email'))
|
||||
->setShortTitle(pht('Email Sent'))
|
||||
->appendParagraph(
|
||||
pht('An email has been sent with a link you can use to login.'))
|
||||
pht('An email has been sent with a link you can use to log in.'))
|
||||
->addCancelButton('/', pht('Done'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,9 +52,9 @@ final class PhabricatorLogoutController
|
|||
|
||||
if ($viewer->getPHID()) {
|
||||
return $this->newDialog()
|
||||
->setTitle(pht('Log out of Phabricator?'))
|
||||
->setTitle(pht('Log Out?'))
|
||||
->appendChild(pht('Are you sure you want to log out?'))
|
||||
->addSubmitButton(pht('Logout'))
|
||||
->addSubmitButton(pht('Log Out'))
|
||||
->addCancelButton('/');
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ final class PhabricatorMustVerifyEmailController
|
|||
}
|
||||
|
||||
$must_verify = pht(
|
||||
'You must verify your email address to login. You should have a '.
|
||||
'You must verify your email address to log in. You should have a '.
|
||||
'new email message from Phabricator with verification instructions '.
|
||||
'in your inbox (%s).',
|
||||
phutil_tag('strong', array(), $email_address));
|
||||
|
|
|
@ -389,7 +389,7 @@ abstract class PhabricatorAuthProvider extends Phobject {
|
|||
* @param AphrontRequest HTTP request.
|
||||
* @param string Request mode string.
|
||||
* @param map Additional parameters, see above.
|
||||
* @return wild Login button.
|
||||
* @return wild Log in button.
|
||||
*/
|
||||
protected function renderStandardLoginButton(
|
||||
AphrontRequest $request,
|
||||
|
@ -414,9 +414,9 @@ abstract class PhabricatorAuthProvider extends Phobject {
|
|||
} else if ($mode == 'invite') {
|
||||
$button_text = pht('Register Account');
|
||||
} else if ($this->shouldAllowRegistration()) {
|
||||
$button_text = pht('Login or Register');
|
||||
$button_text = pht('Log In or Register');
|
||||
} else {
|
||||
$button_text = pht('Login');
|
||||
$button_text = pht('Log In');
|
||||
}
|
||||
|
||||
$icon = id(new PHUIIconView())
|
||||
|
|
|
@ -80,11 +80,11 @@ final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider {
|
|||
$dialog->addCancelButton($this->getSettingsURI());
|
||||
} else {
|
||||
if ($this->shouldAllowRegistration()) {
|
||||
$dialog->setTitle(pht('Login or Register with LDAP'));
|
||||
$dialog->addSubmitButton(pht('Login or Register'));
|
||||
$dialog->setTitle(pht('Log In or Register with LDAP'));
|
||||
$dialog->addSubmitButton(pht('Log In or Register'));
|
||||
} else {
|
||||
$dialog->setTitle(pht('Login with LDAP'));
|
||||
$dialog->addSubmitButton(pht('Login'));
|
||||
$dialog->setTitle(pht('Log In with LDAP'));
|
||||
$dialog->addSubmitButton(pht('Log In'));
|
||||
}
|
||||
if ($mode == 'login') {
|
||||
$dialog->addCancelButton($this->getStartURI());
|
||||
|
@ -315,7 +315,7 @@ final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider {
|
|||
"credentials (which is more complicated, but more powerful).\n\n".
|
||||
"For many installs, direct binding is sufficient. However, you may ".
|
||||
"want to search first if:\n\n".
|
||||
" - You want users to be able to login with either their username ".
|
||||
" - You want users to be able to log in with either their username ".
|
||||
" or their email address.\n".
|
||||
" - The login/username is not part of the distinguished name in ".
|
||||
" your LDAP records.\n".
|
||||
|
@ -344,16 +344,16 @@ final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider {
|
|||
"`sn`, which will work the same way direct binding works:\n\n".
|
||||
" lang=text,name=Simple Example\n".
|
||||
" sn\n\n".
|
||||
"A slightly more complex configuration might let the user login with ".
|
||||
"A slightly more complex configuration might let the user log in with ".
|
||||
"either their login name or email address:\n\n".
|
||||
" lang=text,name=Match Several Attributes\n".
|
||||
" mail\n".
|
||||
" sn\n\n".
|
||||
"If your LDAP directory is more complex, or you want to perform ".
|
||||
"sophisticated filtering, you can use more complex queries. Depending ".
|
||||
"on your directory structure, this example might allow users to login ".
|
||||
"with either their email address or username, but only if they're in ".
|
||||
"specific departments:\n\n".
|
||||
"on your directory structure, this example might allow users to log ".
|
||||
"in with either their email address or username, but only if they're ".
|
||||
"in specific departments:\n\n".
|
||||
" lang=text,name=Complex Example\n".
|
||||
" (&(mail=\${login})(|(departmentNumber=1)(departmentNumber=2)))\n".
|
||||
" (&(sn=\${login})(|(departmentNumber=1)(departmentNumber=2)))\n\n".
|
||||
|
|
|
@ -100,7 +100,7 @@ final class PhabricatorPasswordAuthProvider extends PhabricatorAuthProvider {
|
|||
|
||||
public function getDescriptionForCreate() {
|
||||
return pht(
|
||||
'Allow users to login or register using a username and password.');
|
||||
'Allow users to log in or register using a username and password.');
|
||||
}
|
||||
|
||||
public function getAdapter() {
|
||||
|
@ -174,8 +174,8 @@ final class PhabricatorPasswordAuthProvider extends PhabricatorAuthProvider {
|
|||
$dialog = id(new AphrontDialogView())
|
||||
->setSubmitURI($this->getLoginURI())
|
||||
->setUser($viewer)
|
||||
->setTitle(pht('Login to Phabricator'))
|
||||
->addSubmitButton(pht('Login'));
|
||||
->setTitle(pht('Log In'))
|
||||
->addSubmitButton(pht('Log In'));
|
||||
|
||||
if ($this->shouldAllowRegistration()) {
|
||||
$dialog->addCancelButton(
|
||||
|
|
|
@ -195,7 +195,7 @@ final class ConpherenceViewController extends
|
|||
->appendChild(
|
||||
id(new PHUIButtonView())
|
||||
->setTag('a')
|
||||
->setText(pht('Login to Participate'))
|
||||
->setText(pht('Log In to Participate'))
|
||||
->setHref((string)$login_href));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ final class PhabricatorFileLightboxController
|
|||
->appendChild(
|
||||
id(new PHUIButtonView())
|
||||
->setTag('a')
|
||||
->setText(pht('Login to Comment'))
|
||||
->setText(pht('Log In to Comment'))
|
||||
->setHref((string)$login_href));
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ final class PhabricatorOAuthServerApplication extends PhabricatorApplication {
|
|||
}
|
||||
|
||||
public function getFlavorText() {
|
||||
return pht('Login with Phabricator');
|
||||
return pht('Log In with Phabricator');
|
||||
}
|
||||
|
||||
public function getApplicationGroup() {
|
||||
|
|
|
@ -72,7 +72,7 @@ final class PonderAddAnswerView extends AphrontView {
|
|||
->appendChild(
|
||||
id(new PHUIButtonView())
|
||||
->setTag('a')
|
||||
->setText(pht('Login to Answer'))
|
||||
->setText(pht('Log In to Answer'))
|
||||
->setHref((string)$login_href));
|
||||
}
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ class PhabricatorApplicationTransactionCommentView extends AphrontView {
|
|||
'class' => 'login-to-comment button',
|
||||
'href' => $uri,
|
||||
),
|
||||
pht('Login to Comment')));
|
||||
pht('Log In to Comment')));
|
||||
}
|
||||
|
||||
$data = array();
|
||||
|
|
|
@ -158,7 +158,7 @@ final class PHUIButtonExample extends PhabricatorUIExample {
|
|||
->setSize(PHUIButtonView::BIG)
|
||||
->setColor(PHUIButtonView::GREY)
|
||||
->setIcon($image)
|
||||
->setText(pht('Login or Register'))
|
||||
->setText(pht('Log In or Register'))
|
||||
->setSubtext($icon)
|
||||
->addClass(PHUI::MARGIN_MEDIUM_RIGHT);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue