mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +01:00
Remove product literal strings in "pht()", part 11
Summary: Ref T13658. Test Plan: Static checks only, none of these looked easily reachable. Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13658 Differential Revision: https://secure.phabricator.com/D21777
This commit is contained in:
parent
adcc063242
commit
039cbec155
12 changed files with 45 additions and 40 deletions
|
@ -7,8 +7,8 @@ $table_name = 'user_oauthinfo';
|
|||
foreach (new LiskRawMigrationIterator($conn, $table_name) as $row) {
|
||||
throw new Exception(
|
||||
pht(
|
||||
'Your Phabricator install has ancient OAuth account data and is '.
|
||||
'too old to upgrade directly to a modern version of Phabricator. '.
|
||||
'Upgrade to a version released between June 2013 and February 2019 '.
|
||||
'first, then upgrade to a modern version.'));
|
||||
'This database has ancient OAuth account data and is too old to '.
|
||||
'upgrade directly to a modern software version. Upgrade to a version '.
|
||||
'released between June 2013 and February 2019 first, then upgrade to '.
|
||||
'a modern version.'));
|
||||
}
|
||||
|
|
|
@ -7,8 +7,8 @@ $table_name = 'user_ldapinfo';
|
|||
foreach (new LiskRawMigrationIterator($conn, $table_name) as $row) {
|
||||
throw new Exception(
|
||||
pht(
|
||||
'Your Phabricator install has ancient LDAP account data and is '.
|
||||
'too old to upgrade directly to a modern version of Phabricator. '.
|
||||
'Upgrade to a version released between June 2013 and February 2019 '.
|
||||
'first, then upgrade to a modern version.'));
|
||||
'This database has ancient LDAP account data and is too old to upgrade '.
|
||||
'directly to a modern version of the software. Upgrade to a version '.
|
||||
'released between June 2013 and February 2019 first, then upgrade to a '.
|
||||
'modern version.'));
|
||||
}
|
||||
|
|
|
@ -122,9 +122,9 @@ if ($is_svnrevprop) {
|
|||
if (!strlen($username)) {
|
||||
throw new Exception(
|
||||
pht(
|
||||
'No Direct Pushes: You are pushing directly to a repository hosted '.
|
||||
'by Phabricator. This will not work. See "No Direct Pushes" in the '.
|
||||
'documentation for more information.'));
|
||||
'No Direct Pushes: You are pushing directly to a hosted repository. '.
|
||||
'This will not work. See "No Direct Pushes" in the documentation '.
|
||||
'for more information.'));
|
||||
}
|
||||
|
||||
if ($repository->isHg()) {
|
||||
|
|
|
@ -354,9 +354,9 @@ final class AphrontRequest extends Phobject {
|
|||
$info = array();
|
||||
|
||||
$info[] = pht(
|
||||
'You are trying to save some data to Phabricator, but the request '.
|
||||
'your browser made included an incorrect token. Reload the page '.
|
||||
'and try again. You may need to clear your cookies.');
|
||||
'You are trying to save some data to permanent storage, but the '.
|
||||
'request your browser made included an incorrect token. Reload the '.
|
||||
'page and try again. You may need to clear your cookies.');
|
||||
|
||||
if ($this->isAjax()) {
|
||||
$info[] = pht('This was an Ajax request.');
|
||||
|
@ -587,11 +587,11 @@ final class AphrontRequest extends Phobject {
|
|||
throw new AphrontMalformedRequestException(
|
||||
pht('Bad Host Header'),
|
||||
pht(
|
||||
'This Phabricator install is configured as "%s", but you are '.
|
||||
'using the domain name "%s" to access a page which is trying to '.
|
||||
'set a cookie. Access Phabricator on the configured primary '.
|
||||
'domain or a configured alternate domain. Phabricator will not '.
|
||||
'set cookies on other domains for security reasons.',
|
||||
'This server is configured as "%s", but you are using the domain '.
|
||||
'name "%s" to access a page which is trying to set a cookie. '.
|
||||
'Access this service on the configured primary domain or a '.
|
||||
'configured alternate domain. Cookies will not be set on other '.
|
||||
'domains for security reasons.',
|
||||
$configured_as,
|
||||
$accessed_as),
|
||||
true);
|
||||
|
|
|
@ -419,9 +419,9 @@ final class AphrontApplicationConfiguration
|
|||
throw new AphrontMalformedRequestException(
|
||||
pht('No %s', 'SERVER_ADDR'),
|
||||
pht(
|
||||
'Phabricator is configured to operate in cluster mode, but '.
|
||||
'This service is configured to operate in cluster mode, but '.
|
||||
'%s is not defined in the request context. Your webserver '.
|
||||
'configuration needs to forward %s to PHP so Phabricator can '.
|
||||
'configuration needs to forward %s to PHP so the software can '.
|
||||
'reject requests received on external interfaces.',
|
||||
'SERVER_ADDR',
|
||||
'SERVER_ADDR'));
|
||||
|
@ -431,7 +431,7 @@ final class AphrontApplicationConfiguration
|
|||
throw new AphrontMalformedRequestException(
|
||||
pht('External Interface'),
|
||||
pht(
|
||||
'Phabricator is configured in cluster mode and the address '.
|
||||
'This service is configured in cluster mode and the address '.
|
||||
'this request was received on ("%s") is not whitelisted as '.
|
||||
'a cluster address.',
|
||||
$server_addr));
|
||||
|
|
|
@ -147,10 +147,9 @@ final class AlmanacManagementRegisterWorkflow
|
|||
if (!$public_key) {
|
||||
throw new PhutilArgumentUsageException(
|
||||
pht(
|
||||
'The public key corresponding to the given private key is not '.
|
||||
'yet known to Phabricator. Associate the public key with an '.
|
||||
'Almanac device in the web interface before registering hosts '.
|
||||
'with it.'));
|
||||
'The public key corresponding to the given private key is unknown. '.
|
||||
'Associate the public key with an Almanac device in the web '.
|
||||
'interface before registering hosts with it.'));
|
||||
}
|
||||
|
||||
if ($public_key->getObjectPHID() !== $device->getPHID()) {
|
||||
|
|
|
@ -61,14 +61,14 @@ final class AlmanacManagementTrustKeyWorkflow
|
|||
phutil_console_wrap(
|
||||
pht(
|
||||
'Trusting a public key gives anyone holding the corresponding '.
|
||||
'private key complete, unrestricted access to all data in '.
|
||||
'Phabricator. The private key will be able to sign requests that '.
|
||||
'skip policy and security checks.')),
|
||||
'private key complete, unrestricted access to all data. The '.
|
||||
'private key will be able to sign requests that bypass policy and '.
|
||||
'security checks.')),
|
||||
phutil_console_wrap(
|
||||
pht(
|
||||
'This is an advanced feature which should normally be used only '.
|
||||
'when building a Phabricator cluster. This feature is very '.
|
||||
'dangerous if misused.')),
|
||||
'when building a cluster. This feature is very dangerous if '.
|
||||
'misused.')),
|
||||
pht('This key is associated with device "%s".', $handle->getName()));
|
||||
|
||||
$prompt = pht(
|
||||
|
|
|
@ -54,8 +54,9 @@ final class PhabricatorAuthConfirmLinkController
|
|||
),
|
||||
pht(
|
||||
'Confirm the link with this %s account. This account will be '.
|
||||
'able to log in to your Phabricator account.',
|
||||
$provider->getProviderName())))
|
||||
'able to log in to your %s account.',
|
||||
$provider->getProviderName(),
|
||||
PlatformSymbols::getPlatformServerName())))
|
||||
->appendChild(
|
||||
id(new PhabricatorAuthAccountView())
|
||||
->setUser($viewer)
|
||||
|
|
|
@ -56,8 +56,8 @@ final class PhabricatorAuthLinkController
|
|||
pht('Account Already Linked'),
|
||||
array(
|
||||
pht(
|
||||
'Your Phabricator account is already linked to an external '.
|
||||
'account for this provider.'),
|
||||
'Your account is already linked to an external account for '.
|
||||
'this provider.'),
|
||||
));
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -86,8 +86,7 @@ EOREMARKUP
|
|||
->setDescription(
|
||||
pht(
|
||||
'If you have multiple %s environments (like a '.
|
||||
'development/staging environment for working on testing '.
|
||||
'Phabricator, and a production environment for deploying it), '.
|
||||
'development/staging environment and a production environment), '.
|
||||
'set the production environment URI here so that emails and other '.
|
||||
'durable URIs will always generate with links pointing at the '.
|
||||
'production environment. If unset, defaults to `%s`. Most '.
|
||||
|
|
|
@ -119,7 +119,9 @@ final class PhabricatorMetaMTAMailViewController
|
|||
if ($mail->getFrom()) {
|
||||
$from_str = $viewer->renderHandle($mail->getFrom());
|
||||
} else {
|
||||
$from_str = pht('Sent by Phabricator');
|
||||
$from_str = pht(
|
||||
'Sent by %s',
|
||||
PlatformSymbols::getPlatformServerName());
|
||||
}
|
||||
$properties->addProperty(
|
||||
pht('From'),
|
||||
|
|
|
@ -60,7 +60,9 @@ final class PhabricatorPeopleWelcomeMailEngine
|
|||
|
||||
$message = array();
|
||||
|
||||
$message[] = pht('Welcome to Phabricator!');
|
||||
$message[] = pht(
|
||||
'Welcome to %s!',
|
||||
PlatformSymbols::getPlatformServerName());
|
||||
|
||||
$message[] = pht(
|
||||
'%s (%s) has created an account for you.',
|
||||
|
@ -129,7 +131,9 @@ final class PhabricatorPeopleWelcomeMailEngine
|
|||
|
||||
$is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business');
|
||||
if (!$is_serious) {
|
||||
return pht("Love,\nPhabricator");
|
||||
return pht(
|
||||
"Love,\n%s",
|
||||
PlatformSymbols::getPlatformServerName());
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue