1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 10:12:41 +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:
Chad Little 2017-08-02 12:26:40 -07:00
parent ab018e1b49
commit ba4b936dff
18 changed files with 44 additions and 45 deletions

View file

@ -54,7 +54,7 @@ final class PhabricatorAuthFinishController
->addHiddenInput(AphrontRequest::TYPE_HISEC, true) ->addHiddenInput(AphrontRequest::TYPE_HISEC, true)
->appendParagraph( ->appendParagraph(
pht( pht(
'Welcome, %s. To complete the login process, provide your '. 'Welcome, %s. To complete the process of logging in, provide your '.
'multi-factor credentials.', 'multi-factor credentials.',
phutil_tag('strong', array(), $viewer->getUsername()))) phutil_tag('strong', array(), $viewer->getUsername())))
->appendChild($form->buildLayoutView()) ->appendChild($form->buildLayoutView())

View file

@ -92,8 +92,8 @@ final class PhabricatorAuthLoginController
} else { } else {
return $this->renderError( return $this->renderError(
pht( pht(
'The external account ("%s") you just used to login is already '. 'The external account ("%s") you just used to log in is already '.
'associated with another Phabricator user account. Login to the '. 'associated with another Phabricator user account. Log in to the '.
'other Phabricator account and unlink the external account before '. 'other Phabricator account and unlink the external account before '.
'linking it to a new Phabricator account.', 'linking it to a new Phabricator account.',
$provider->getProviderName())); $provider->getProviderName()));
@ -214,7 +214,7 @@ final class PhabricatorAuthLoginController
if (!$provider) { if (!$provider) {
return $this->renderError( return $this->renderError(
pht( 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 '. 'or disabled authentication provider (with key "%s"). An '.
'administrator may have recently disabled this provider.', 'administrator may have recently disabled this provider.',
$this->providerKey)); $this->providerKey));
@ -240,14 +240,14 @@ final class PhabricatorAuthLoginController
if ($this->getRequest()->getUser()->isLoggedIn()) { if ($this->getRequest()->getUser()->isLoggedIn()) {
$crumbs->addTextCrumb(pht('Link Account'), $provider->getSettingsURI()); $crumbs->addTextCrumb(pht('Link Account'), $provider->getSettingsURI());
} else { } else {
$crumbs->addTextCrumb(pht('Login'), $this->getApplicationURI('start/')); $crumbs->addTextCrumb(pht('Log In'), $this->getApplicationURI('start/'));
} }
$crumbs->addTextCrumb($provider->getProviderName()); $crumbs->addTextCrumb($provider->getProviderName());
$crumbs->setBorder(true); $crumbs->setBorder(true);
return $this->newPage() return $this->newPage()
->setTitle(pht('Login')) ->setTitle(pht('Log In'))
->setCrumbs($crumbs) ->setCrumbs($crumbs)
->appendChild($content); ->appendChild($content);
} }
@ -257,9 +257,8 @@ final class PhabricatorAuthLoginController
$message) { $message) {
$message = pht( $message = pht(
'Authentication provider ("%s") encountered an error during login. %s', 'Authentication provider ("%s") encountered an error while attempting '.
$provider->getProviderName(), 'to log in. %s', $provider->getProviderName(), $message);
$message);
return $this->renderError($message); return $this->renderError($message);
} }

View file

@ -68,7 +68,7 @@ final class PhabricatorAuthOneTimeLoginController
if (!$token) { if (!$token) {
return $this->newDialog() return $this->newDialog()
->setTitle(pht('Unable to Login')) ->setTitle(pht('Unable to Log In'))
->setShortTitle(pht('Login Failure')) ->setShortTitle(pht('Login Failure'))
->appendParagraph( ->appendParagraph(
pht( pht(
@ -170,7 +170,7 @@ final class PhabricatorAuthOneTimeLoginController
case PhabricatorAuthSessionEngine::ONETIME_USERNAME: case PhabricatorAuthSessionEngine::ONETIME_USERNAME:
case PhabricatorAuthSessionEngine::ONETIME_RESET: case PhabricatorAuthSessionEngine::ONETIME_RESET:
default: default:
$title = pht('Login to Phabricator'); $title = pht('Log in to Phabricator');
break; break;
} }
@ -193,7 +193,7 @@ final class PhabricatorAuthOneTimeLoginController
$dialog = $this->newDialog() $dialog = $this->newDialog()
->setTitle($title) ->setTitle($title)
->addSubmitButton(pht('Login (%s)', $target_user->getUsername())) ->addSubmitButton(pht('Log In (%s)', $target_user->getUsername()))
->addCancelButton('/'); ->addCancelButton('/');
foreach ($body as $paragraph) { foreach ($body as $paragraph) {

View file

@ -483,14 +483,14 @@ final class PhabricatorAuthRegisterController
if ($can_edit_username) { if ($can_edit_username) {
$form->appendChild( $form->appendChild(
id(new AphrontFormTextControl()) id(new AphrontFormTextControl())
->setLabel(pht('Phabricator Username')) ->setLabel(pht('Username'))
->setName('username') ->setName('username')
->setValue($value_username) ->setValue($value_username)
->setError($e_username)); ->setError($e_username));
} else { } else {
$form->appendChild( $form->appendChild(
id(new AphrontFormMarkupControl()) id(new AphrontFormMarkupControl())
->setLabel(pht('Phabricator Username')) ->setLabel(pht('Username'))
->setValue($value_username) ->setValue($value_username)
->setError($e_username)); ->setError($e_username));
} }
@ -546,7 +546,7 @@ final class PhabricatorAuthRegisterController
} else { } else {
$submit $submit
->addCancelButton($this->getApplicationURI('start/')) ->addCancelButton($this->getApplicationURI('start/'))
->setValue(pht('Register Phabricator Account')); ->setValue(pht('Register Account'));
} }
@ -560,7 +560,7 @@ final class PhabricatorAuthRegisterController
} else { } else {
$crumbs->addTextCrumb(pht('Register')); $crumbs->addTextCrumb(pht('Register'));
$crumbs->addTextCrumb($provider->getProviderName()); $crumbs->addTextCrumb($provider->getProviderName());
$title = pht('Phabricator Registration'); $title = pht('Create a New Account');
} }
$crumbs->setBorder(true); $crumbs->setBorder(true);

View file

@ -198,7 +198,7 @@ final class PhabricatorAuthStartController
$crumbs->addTextCrumb(pht('Login')); $crumbs->addTextCrumb(pht('Login'));
$crumbs->setBorder(true); $crumbs->setBorder(true);
$title = pht('Login to Phabricator'); $title = pht('Login');
$view = array( $view = array(
$header, $header,
$invite_message, $invite_message,
@ -239,8 +239,8 @@ final class PhabricatorAuthStartController
return $this->newDialog() return $this->newDialog()
->setTitle(pht('Login Required')) ->setTitle(pht('Login Required'))
->appendParagraph(pht('You must login to take this action.')) ->appendParagraph(pht('You must log in to take this action.'))
->addSubmitButton(pht('Login')) ->addSubmitButton(pht('Log In'))
->addCancelButton('/'); ->addCancelButton('/');
} }

View file

@ -104,7 +104,7 @@ final class PhabricatorAuthUnlinkController
pht( pht(
'You can not unlink this account because you have no other '. 'You can not unlink this account because you have no other '.
'valid login accounts. If you removed it, you would be unable '. '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.')) 'this one.'))
->addCancelButton($this->getDoneURI()); ->addCancelButton($this->getDoneURI());

View file

@ -114,7 +114,7 @@ final class PhabricatorEmailLoginController
->setTitle(pht('Check Your Email')) ->setTitle(pht('Check Your Email'))
->setShortTitle(pht('Email Sent')) ->setShortTitle(pht('Email Sent'))
->appendParagraph( ->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')); ->addCancelButton('/', pht('Done'));
} }
} }

View file

@ -52,9 +52,9 @@ final class PhabricatorLogoutController
if ($viewer->getPHID()) { if ($viewer->getPHID()) {
return $this->newDialog() return $this->newDialog()
->setTitle(pht('Log out of Phabricator?')) ->setTitle(pht('Log Out?'))
->appendChild(pht('Are you sure you want to log out?')) ->appendChild(pht('Are you sure you want to log out?'))
->addSubmitButton(pht('Logout')) ->addSubmitButton(pht('Log Out'))
->addCancelButton('/'); ->addCancelButton('/');
} }

View file

@ -33,7 +33,7 @@ final class PhabricatorMustVerifyEmailController
} }
$must_verify = pht( $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 '. 'new email message from Phabricator with verification instructions '.
'in your inbox (%s).', 'in your inbox (%s).',
phutil_tag('strong', array(), $email_address)); phutil_tag('strong', array(), $email_address));

View file

@ -389,7 +389,7 @@ abstract class PhabricatorAuthProvider extends Phobject {
* @param AphrontRequest HTTP request. * @param AphrontRequest HTTP request.
* @param string Request mode string. * @param string Request mode string.
* @param map Additional parameters, see above. * @param map Additional parameters, see above.
* @return wild Login button. * @return wild Log in button.
*/ */
protected function renderStandardLoginButton( protected function renderStandardLoginButton(
AphrontRequest $request, AphrontRequest $request,
@ -414,9 +414,9 @@ abstract class PhabricatorAuthProvider extends Phobject {
} else if ($mode == 'invite') { } else if ($mode == 'invite') {
$button_text = pht('Register Account'); $button_text = pht('Register Account');
} else if ($this->shouldAllowRegistration()) { } else if ($this->shouldAllowRegistration()) {
$button_text = pht('Login or Register'); $button_text = pht('Log In or Register');
} else { } else {
$button_text = pht('Login'); $button_text = pht('Log In');
} }
$icon = id(new PHUIIconView()) $icon = id(new PHUIIconView())

View file

@ -80,11 +80,11 @@ final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider {
$dialog->addCancelButton($this->getSettingsURI()); $dialog->addCancelButton($this->getSettingsURI());
} else { } else {
if ($this->shouldAllowRegistration()) { if ($this->shouldAllowRegistration()) {
$dialog->setTitle(pht('Login or Register with LDAP')); $dialog->setTitle(pht('Log In or Register with LDAP'));
$dialog->addSubmitButton(pht('Login or Register')); $dialog->addSubmitButton(pht('Log In or Register'));
} else { } else {
$dialog->setTitle(pht('Login with LDAP')); $dialog->setTitle(pht('Log In with LDAP'));
$dialog->addSubmitButton(pht('Login')); $dialog->addSubmitButton(pht('Log In'));
} }
if ($mode == 'login') { if ($mode == 'login') {
$dialog->addCancelButton($this->getStartURI()); $dialog->addCancelButton($this->getStartURI());
@ -315,7 +315,7 @@ final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider {
"credentials (which is more complicated, but more powerful).\n\n". "credentials (which is more complicated, but more powerful).\n\n".
"For many installs, direct binding is sufficient. However, you may ". "For many installs, direct binding is sufficient. However, you may ".
"want to search first if:\n\n". "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". " or their email address.\n".
" - The login/username is not part of the distinguished name in ". " - The login/username is not part of the distinguished name in ".
" your LDAP records.\n". " 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". "`sn`, which will work the same way direct binding works:\n\n".
" lang=text,name=Simple Example\n". " lang=text,name=Simple Example\n".
" sn\n\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". "either their login name or email address:\n\n".
" lang=text,name=Match Several Attributes\n". " lang=text,name=Match Several Attributes\n".
" mail\n". " mail\n".
" sn\n\n". " sn\n\n".
"If your LDAP directory is more complex, or you want to perform ". "If your LDAP directory is more complex, or you want to perform ".
"sophisticated filtering, you can use more complex queries. Depending ". "sophisticated filtering, you can use more complex queries. Depending ".
"on your directory structure, this example might allow users to login ". "on your directory structure, this example might allow users to log ".
"with either their email address or username, but only if they're in ". "in with either their email address or username, but only if they're ".
"specific departments:\n\n". "in specific departments:\n\n".
" lang=text,name=Complex Example\n". " lang=text,name=Complex Example\n".
" (&(mail=\${login})(|(departmentNumber=1)(departmentNumber=2)))\n". " (&(mail=\${login})(|(departmentNumber=1)(departmentNumber=2)))\n".
" (&(sn=\${login})(|(departmentNumber=1)(departmentNumber=2)))\n\n". " (&(sn=\${login})(|(departmentNumber=1)(departmentNumber=2)))\n\n".

View file

@ -100,7 +100,7 @@ final class PhabricatorPasswordAuthProvider extends PhabricatorAuthProvider {
public function getDescriptionForCreate() { public function getDescriptionForCreate() {
return pht( 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() { public function getAdapter() {
@ -174,8 +174,8 @@ final class PhabricatorPasswordAuthProvider extends PhabricatorAuthProvider {
$dialog = id(new AphrontDialogView()) $dialog = id(new AphrontDialogView())
->setSubmitURI($this->getLoginURI()) ->setSubmitURI($this->getLoginURI())
->setUser($viewer) ->setUser($viewer)
->setTitle(pht('Login to Phabricator')) ->setTitle(pht('Log In'))
->addSubmitButton(pht('Login')); ->addSubmitButton(pht('Log In'));
if ($this->shouldAllowRegistration()) { if ($this->shouldAllowRegistration()) {
$dialog->addCancelButton( $dialog->addCancelButton(

View file

@ -195,7 +195,7 @@ final class ConpherenceViewController extends
->appendChild( ->appendChild(
id(new PHUIButtonView()) id(new PHUIButtonView())
->setTag('a') ->setTag('a')
->setText(pht('Login to Participate')) ->setText(pht('Log In to Participate'))
->setHref((string)$login_href)); ->setHref((string)$login_href));
} }
} }

View file

@ -76,7 +76,7 @@ final class PhabricatorFileLightboxController
->appendChild( ->appendChild(
id(new PHUIButtonView()) id(new PHUIButtonView())
->setTag('a') ->setTag('a')
->setText(pht('Login to Comment')) ->setText(pht('Log In to Comment'))
->setHref((string)$login_href)); ->setHref((string)$login_href));
} }

View file

@ -23,7 +23,7 @@ final class PhabricatorOAuthServerApplication extends PhabricatorApplication {
} }
public function getFlavorText() { public function getFlavorText() {
return pht('Login with Phabricator'); return pht('Log In with Phabricator');
} }
public function getApplicationGroup() { public function getApplicationGroup() {

View file

@ -72,7 +72,7 @@ final class PonderAddAnswerView extends AphrontView {
->appendChild( ->appendChild(
id(new PHUIButtonView()) id(new PHUIButtonView())
->setTag('a') ->setTag('a')
->setText(pht('Login to Answer')) ->setText(pht('Log In to Answer'))
->setHref((string)$login_href)); ->setHref((string)$login_href));
} }

View file

@ -199,7 +199,7 @@ class PhabricatorApplicationTransactionCommentView extends AphrontView {
'class' => 'login-to-comment button', 'class' => 'login-to-comment button',
'href' => $uri, 'href' => $uri,
), ),
pht('Login to Comment'))); pht('Log In to Comment')));
} }
$data = array(); $data = array();

View file

@ -158,7 +158,7 @@ final class PHUIButtonExample extends PhabricatorUIExample {
->setSize(PHUIButtonView::BIG) ->setSize(PHUIButtonView::BIG)
->setColor(PHUIButtonView::GREY) ->setColor(PHUIButtonView::GREY)
->setIcon($image) ->setIcon($image)
->setText(pht('Login or Register')) ->setText(pht('Log In or Register'))
->setSubtext($icon) ->setSubtext($icon)
->addClass(PHUI::MARGIN_MEDIUM_RIGHT); ->addClass(PHUI::MARGIN_MEDIUM_RIGHT);
} }