mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Remove product literal strings in "pht()", part 21
Summary: Ref T13658. Test Plan: Static checks only. Maniphest Tasks: T13658 Differential Revision: https://secure.phabricator.com/D21787
This commit is contained in:
parent
07723b4627
commit
b1079b79e5
9 changed files with 22 additions and 20 deletions
|
@ -7,7 +7,7 @@ final class PhabricatorAphlictSetupCheck extends PhabricatorSetupCheck {
|
||||||
PhabricatorNotificationClient::tryAnyConnection();
|
PhabricatorNotificationClient::tryAnyConnection();
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
$message = pht(
|
$message = pht(
|
||||||
"Phabricator is configured to use a notification server, but is ".
|
"This server is configured to use a notification server, but is ".
|
||||||
"unable to connect to it. You should resolve this issue or disable ".
|
"unable to connect to it. You should resolve this issue or disable ".
|
||||||
"the notification server. It may be helpful to double check your ".
|
"the notification server. It may be helpful to double check your ".
|
||||||
"configuration or restart the server using the command below.\n\n%s",
|
"configuration or restart the server using the command below.\n\n%s",
|
||||||
|
@ -26,14 +26,14 @@ final class PhabricatorAphlictSetupCheck extends PhabricatorSetupCheck {
|
||||||
->setName(pht('Unable to Connect to Notification Server'))
|
->setName(pht('Unable to Connect to Notification Server'))
|
||||||
->setSummary(
|
->setSummary(
|
||||||
pht(
|
pht(
|
||||||
'Phabricator is configured to use a notification server, '.
|
'This server is configured to use a notification server, '.
|
||||||
'but is not able to connect to it.'))
|
'but is not able to connect to it.'))
|
||||||
->setMessage($message)
|
->setMessage($message)
|
||||||
->addRelatedPhabricatorConfig('notification.servers')
|
->addRelatedPhabricatorConfig('notification.servers')
|
||||||
->addCommand(
|
->addCommand(
|
||||||
pht(
|
pht(
|
||||||
"(To start the server, run this command.)\n%s",
|
"(To start the server, run this command.)\n%s",
|
||||||
'phabricator/ $ ./bin/aphlict start'));
|
'$ ./bin/aphlict start'));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -209,9 +209,10 @@ final class PhabricatorOAuthServerAuthController
|
||||||
->setTitle(pht('Authenticate: %s', $name))
|
->setTitle(pht('Authenticate: %s', $name))
|
||||||
->appendParagraph(
|
->appendParagraph(
|
||||||
pht(
|
pht(
|
||||||
'This application ("%s") is authorized to use your Phabricator '.
|
'This application ("%s") is authorized to use your %s '.
|
||||||
'credentials. Continue to complete the authentication workflow.',
|
'credentials. Continue to complete the authentication workflow.',
|
||||||
phutil_tag('strong', array(), $name)))
|
phutil_tag('strong', array(), $name),
|
||||||
|
PlatformSymbols::getPlatformServerName()))
|
||||||
->addCancelButton((string)$full_uri, pht('Continue to Application'));
|
->addCancelButton((string)$full_uri, pht('Continue to Application'));
|
||||||
|
|
||||||
return id(new AphrontDialogResponse())->setDialog($dialog);
|
return id(new AphrontDialogResponse())->setDialog($dialog);
|
||||||
|
@ -248,9 +249,10 @@ final class PhabricatorOAuthServerAuthController
|
||||||
->appendParagraph(
|
->appendParagraph(
|
||||||
pht(
|
pht(
|
||||||
'Do you want to authorize the external application "%s" to '.
|
'Do you want to authorize the external application "%s" to '.
|
||||||
'access your Phabricator account data, including your primary '.
|
'access your %s account data, including your primary '.
|
||||||
'email address?',
|
'email address?',
|
||||||
phutil_tag('strong', array(), $name)))
|
phutil_tag('strong', array(), $name),
|
||||||
|
PlatformSymbols::getPlatformServerName()))
|
||||||
->appendForm($form)
|
->appendForm($form)
|
||||||
->addSubmitButton(pht('Authorize Access'))
|
->addSubmitButton(pht('Authorize Access'))
|
||||||
->addCancelButton((string)$cancel_uri, pht('Do Not Authorize'));
|
->addCancelButton((string)$cancel_uri, pht('Do Not Authorize'));
|
||||||
|
@ -271,8 +273,8 @@ final class PhabricatorOAuthServerAuthController
|
||||||
pht(
|
pht(
|
||||||
'This application also requested additional unrecognized '.
|
'This application also requested additional unrecognized '.
|
||||||
'permissions. These permissions may have existed in an older '.
|
'permissions. These permissions may have existed in an older '.
|
||||||
'version of Phabricator, or may be from a future version of '.
|
'version of the software, or may be from a future version of '.
|
||||||
'Phabricator. They will not be granted.'));
|
'the software. They will not be granted.'));
|
||||||
|
|
||||||
$unknown_form = id(new AphrontFormView())
|
$unknown_form = id(new AphrontFormView())
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
|
|
|
@ -43,7 +43,7 @@ final class PhabricatorOAuthClientDisableController
|
||||||
$title = pht('Disable OAuth Application');
|
$title = pht('Disable OAuth Application');
|
||||||
$body = pht(
|
$body = pht(
|
||||||
'Really disable the %s OAuth application? Users will no longer be '.
|
'Really disable the %s OAuth application? Users will no longer be '.
|
||||||
'able to authenticate against it, nor access Phabricator using '.
|
'able to authenticate against it, nor access this server using '.
|
||||||
'tokens generated by this application.',
|
'tokens generated by this application.',
|
||||||
phutil_tag('strong', array(), $client->getName()));
|
phutil_tag('strong', array(), $client->getName()));
|
||||||
$button = pht('Disable Application');
|
$button = pht('Disable Application');
|
||||||
|
|
|
@ -68,7 +68,7 @@ final class PhabricatorOAuthServerAuthorizationsSettingsPanel
|
||||||
->setTitle(pht('Revoke Authorization?'))
|
->setTitle(pht('Revoke Authorization?'))
|
||||||
->appendParagraph(
|
->appendParagraph(
|
||||||
pht(
|
pht(
|
||||||
'This application will no longer be able to access Phabricator '.
|
'This application will no longer be able to access this server '.
|
||||||
'on your behalf.'))
|
'on your behalf.'))
|
||||||
->addSubmitButton(pht('Revoke Authorization'))
|
->addSubmitButton(pht('Revoke Authorization'))
|
||||||
->addCancelButton($panel_uri);
|
->addCancelButton($panel_uri);
|
||||||
|
|
|
@ -168,8 +168,9 @@ final class PhabricatorOwnersPackageSearchEngine
|
||||||
->setIcon($icon)
|
->setIcon($icon)
|
||||||
->setTitle(pht('Welcome to %s', $app_name))
|
->setTitle(pht('Welcome to %s', $app_name))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht('Group sections of a codebase into packages for re-use in other '.
|
pht(
|
||||||
'areas of Phabricator, like Herald rules.'))
|
'Group sections of a codebase into packages for re-use in other '.
|
||||||
|
'applications, like Herald rules.'))
|
||||||
->addAction($create_button);
|
->addAction($create_button);
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
@ -124,8 +124,7 @@ final class PassphraseCredentialSearchEngine
|
||||||
->setIcon($icon)
|
->setIcon($icon)
|
||||||
->setTitle(pht('Welcome to %s', $app_name))
|
->setTitle(pht('Welcome to %s', $app_name))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht('Credential management for re-use in other areas of Phabricator '.
|
pht('Credential management and general storage of shared secrets.'))
|
||||||
'or general storage of shared secrets.'))
|
|
||||||
->addAction($create_button);
|
->addAction($create_button);
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
@ -24,7 +24,7 @@ final class PhabricatorPeopleCreateController
|
||||||
$title = pht('Create New User');
|
$title = pht('Create New User');
|
||||||
|
|
||||||
$standard_caption = pht(
|
$standard_caption = pht(
|
||||||
'Create a standard user account. These users can log in to Phabricator, '.
|
'Create a standard user account. These users can log in, '.
|
||||||
'use the web interface and API, and receive email.');
|
'use the web interface and API, and receive email.');
|
||||||
|
|
||||||
$standard_admin = pht(
|
$standard_admin = pht(
|
||||||
|
|
|
@ -90,7 +90,7 @@ final class PhabricatorPeopleDisableController
|
||||||
$short_title = pht('Disable User');
|
$short_title = pht('Disable User');
|
||||||
|
|
||||||
$body = pht(
|
$body = pht(
|
||||||
'Disable %s? They will no longer be able to access Phabricator or '.
|
'Disable %s? They will no longer be able to access this server or '.
|
||||||
'receive email.',
|
'receive email.',
|
||||||
phutil_tag('strong', array(), $user->getUsername()));
|
phutil_tag('strong', array(), $user->getUsername()));
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ final class PhabricatorPeopleDisableController
|
||||||
$short_title = pht('Enable User');
|
$short_title = pht('Enable User');
|
||||||
|
|
||||||
$body = pht(
|
$body = pht(
|
||||||
'Enable %s? They will be able to access Phabricator and receive '.
|
'Enable %s? They will be able to access this server and receive '.
|
||||||
'email again.',
|
'email again.',
|
||||||
phutil_tag('strong', array(), $user->getUsername()));
|
phutil_tag('strong', array(), $user->getUsername()));
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ final class PhabricatorPeopleEmpowerController
|
||||||
$short = pht('Remove Administrator');
|
$short = pht('Remove Administrator');
|
||||||
$body = pht(
|
$body = pht(
|
||||||
'Remove %s as an administrator? They will no longer be able to '.
|
'Remove %s as an administrator? They will no longer be able to '.
|
||||||
'perform administrative functions on this Phabricator install.',
|
'perform administrative functions on this server.',
|
||||||
phutil_tag('strong', array(), $user->getUsername()));
|
phutil_tag('strong', array(), $user->getUsername()));
|
||||||
$submit = pht('Remove Administrator');
|
$submit = pht('Remove Administrator');
|
||||||
} else {
|
} else {
|
||||||
|
@ -53,7 +53,7 @@ final class PhabricatorPeopleEmpowerController
|
||||||
$body = pht(
|
$body = pht(
|
||||||
'Empower %s as an administrator? They will be able to create users, '.
|
'Empower %s as an administrator? They will be able to create users, '.
|
||||||
'approve users, make and remove administrators, delete accounts, and '.
|
'approve users, make and remove administrators, delete accounts, and '.
|
||||||
'perform other administrative functions on this Phabricator install.',
|
'perform other administrative functions on this server.',
|
||||||
phutil_tag('strong', array(), $user->getUsername()));
|
phutil_tag('strong', array(), $user->getUsername()));
|
||||||
$submit = pht('Make Administrator');
|
$submit = pht('Make Administrator');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue