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:
@@ -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())
|
||||
|
||||
@@ -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(
|
||||
@@ -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,
|
||||
@@ -240,7 +240,7 @@ final class PhabricatorAuthStartController
|
||||
return $this->newDialog()
|
||||
->setTitle(pht('Login Required'))
|
||||
->appendParagraph(pht('You must log in to take this action.'))
|
||||
->addSubmitButton(pht('Login'))
|
||||
->addSubmitButton(pht('Log In'))
|
||||
->addCancelButton('/');
|
||||
}
|
||||
|
||||
|
||||
@@ -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('/');
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
@@ -351,9 +351,9 @@ final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider {
|
||||
" 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".
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user