mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 02:42:40 +01:00
Remove product literal strings in "pht()", part 20
Summary: Ref T13658. Test Plan: Static checks only. Maniphest Tasks: T13658 Differential Revision: https://secure.phabricator.com/D21786
This commit is contained in:
parent
2f4ac2a804
commit
07723b4627
10 changed files with 21 additions and 20 deletions
|
@ -108,8 +108,7 @@ final class HeraldRuleController extends HeraldController {
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
pht(
|
pht(
|
||||||
'This rule was created with a newer version of Herald. You can not '.
|
'This rule was created with a newer version of Herald. You can not '.
|
||||||
'view or edit it in this older version. Upgrade your Phabricator '.
|
'view or edit it in this older version. Upgrade your software.'));
|
||||||
'deployment.'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Upgrade rule version to our version, since we might add newly-defined
|
// Upgrade rule version to our version, since we might add newly-defined
|
||||||
|
|
|
@ -53,7 +53,7 @@ final class HeraldWebhookViewController
|
||||||
$warnings = array();
|
$warnings = array();
|
||||||
if (PhabricatorEnv::getEnvConfig('phabricator.silent')) {
|
if (PhabricatorEnv::getEnvConfig('phabricator.silent')) {
|
||||||
$message = pht(
|
$message = pht(
|
||||||
'Phabricator is currently configured in silent mode, so it will not '.
|
'This server is running in silent mode, so it will not '.
|
||||||
'publish webhooks. To adjust this setting, see '.
|
'publish webhooks. To adjust this setting, see '.
|
||||||
'@{config:phabricator.silent} in Config.');
|
'@{config:phabricator.silent} in Config.');
|
||||||
|
|
||||||
|
|
|
@ -681,7 +681,7 @@ final class LegalpadDocumentSignController extends LegalpadController {
|
||||||
$body = pht(
|
$body = pht(
|
||||||
"%s:\n\n".
|
"%s:\n\n".
|
||||||
"This email address was used to sign a Legalpad document ".
|
"This email address was used to sign a Legalpad document ".
|
||||||
"in Phabricator:\n\n".
|
"in %s:\n\n".
|
||||||
" %s\n\n".
|
" %s\n\n".
|
||||||
"Please verify you own this email address and accept the ".
|
"Please verify you own this email address and accept the ".
|
||||||
"agreement by clicking this link:\n\n".
|
"agreement by clicking this link:\n\n".
|
||||||
|
@ -690,6 +690,7 @@ final class LegalpadDocumentSignController extends LegalpadController {
|
||||||
"verification step.\n\nYou can review the document here:\n\n".
|
"verification step.\n\nYou can review the document here:\n\n".
|
||||||
" %s\n",
|
" %s\n",
|
||||||
$name,
|
$name,
|
||||||
|
PlatformSymbols::getPlatformServerName(),
|
||||||
$doc_name,
|
$doc_name,
|
||||||
$link,
|
$link,
|
||||||
$doc_link);
|
$doc_link);
|
||||||
|
|
|
@ -101,7 +101,7 @@ final class LegalpadDocumentEditor
|
||||||
LegalpadDocumentRequireSignatureTransaction::TRANSACTIONTYPE,
|
LegalpadDocumentRequireSignatureTransaction::TRANSACTIONTYPE,
|
||||||
pht('Invalid'),
|
pht('Invalid'),
|
||||||
pht('Only documents with signature type "individual" may '.
|
pht('Only documents with signature type "individual" may '.
|
||||||
'require signing to use Phabricator.'),
|
'require signing to log in.'),
|
||||||
null);
|
null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -185,8 +185,7 @@ final class LegalpadDocumentSearchEngine
|
||||||
->setIcon($icon)
|
->setIcon($icon)
|
||||||
->setTitle(pht('Welcome to %s', $app_name))
|
->setTitle(pht('Welcome to %s', $app_name))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht('Create documents and track signatures. Can also be re-used in '.
|
pht('Create documents and track signatures.'))
|
||||||
'other areas of Phabricator, like CLAs.'))
|
|
||||||
->addAction($create_button);
|
->addAction($create_button);
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
@ -112,7 +112,8 @@ final class ManiphestTaskOwnerTransaction
|
||||||
foreach ($xactions as $xaction) {
|
foreach ($xactions as $xaction) {
|
||||||
$old = $xaction->getOldValue();
|
$old = $xaction->getOldValue();
|
||||||
$new = $xaction->getNewValue();
|
$new = $xaction->getNewValue();
|
||||||
if (!strlen($new)) {
|
|
||||||
|
if (!phutil_nonempty_string($new)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,12 +35,12 @@ final class PhabricatorApplicationEmailCommandsController
|
||||||
|
|
||||||
$content[] = '= '.pht('Mail Commands Overview');
|
$content[] = '= '.pht('Mail Commands Overview');
|
||||||
$content[] = pht(
|
$content[] = pht(
|
||||||
'After configuring Phabricator to process inbound mail, you can '.
|
'After configuring processing for inbound mail, you can '.
|
||||||
'interact with objects (like tasks and revisions) over email. For '.
|
'interact with objects (like tasks and revisions) over email. For '.
|
||||||
'information on configuring Phabricator, see '.
|
'information on configuring inbound mail, see '.
|
||||||
'**[[ %s | Configuring Inbound Email ]]**.'.
|
'**[[ %s | Configuring Inbound Email ]]**.'.
|
||||||
"\n\n".
|
"\n\n".
|
||||||
'In most cases, you can reply to email you receive from Phabricator '.
|
'In most cases, you can reply to email you receive from this server '.
|
||||||
'to leave comments. You can also use **mail commands** to take a '.
|
'to leave comments. You can also use **mail commands** to take a '.
|
||||||
'greater range of actions (like claiming a task or requesting changes '.
|
'greater range of actions (like claiming a task or requesting changes '.
|
||||||
'to a revision) without needing to log in to the web UI.'.
|
'to a revision) without needing to log in to the web UI.'.
|
||||||
|
@ -52,12 +52,13 @@ final class PhabricatorApplicationEmailCommandsController
|
||||||
'or end of your mail message. For example, you could write this in a '.
|
'or end of your mail message. For example, you could write this in a '.
|
||||||
'reply to task email to claim the task:'.
|
'reply to task email to claim the task:'.
|
||||||
"\n\n```\n!claim\n\nI'll take care of this.\n```\n\n\n".
|
"\n\n```\n!claim\n\nI'll take care of this.\n```\n\n\n".
|
||||||
"When Phabricator receives your mail, it will process any commands ".
|
"When %s receives your mail, it will process any commands ".
|
||||||
"first, then post the remaining message body as a comment. You can ".
|
"first, then post the remaining message body as a comment. You can ".
|
||||||
"execute multiple commands at once:".
|
"execute multiple commands at once:".
|
||||||
"\n\n```\n!assign alincoln\n!close\n\nI just talked to @alincoln, ".
|
"\n\n```\n!assign alincoln\n!close\n\nI just talked to @alincoln, ".
|
||||||
"and he showed me that he fixed this.\n```\n",
|
"and he showed me that he fixed this.\n```\n",
|
||||||
PhabricatorEnv::getDoclink('Configuring Inbound Email'));
|
PhabricatorEnv::getDoclink('Configuring Inbound Email'),
|
||||||
|
PlatformSymbols::getPlatformServerName());
|
||||||
|
|
||||||
$content[] = '= '.$spec['header'];
|
$content[] = '= '.$spec['header'];
|
||||||
$content[] = $spec['summary'];
|
$content[] = $spec['summary'];
|
||||||
|
@ -122,7 +123,7 @@ final class PhabricatorApplicationEmailCommandsController
|
||||||
$info_view = null;
|
$info_view = null;
|
||||||
if (!PhabricatorEnv::getEnvConfig('metamta.reply-handler-domain')) {
|
if (!PhabricatorEnv::getEnvConfig('metamta.reply-handler-domain')) {
|
||||||
$error = pht(
|
$error = pht(
|
||||||
"Phabricator is not currently configured to accept inbound mail. ".
|
"This server is not currently configured to accept inbound mail. ".
|
||||||
"You won't be able to interact with objects over email until ".
|
"You won't be able to interact with objects over email until ".
|
||||||
"inbound mail is set up.");
|
"inbound mail is set up.");
|
||||||
$info_view = id(new PHUIInfoView())
|
$info_view = id(new PHUIInfoView())
|
||||||
|
|
|
@ -264,7 +264,7 @@ final class PhabricatorMetaMTAApplicationEmailPanel
|
||||||
pht(
|
pht(
|
||||||
'Used if the "From:" address does not map to a user account. '.
|
'Used if the "From:" address does not map to a user account. '.
|
||||||
'Setting a default author will allow anyone on the public '.
|
'Setting a default author will allow anyone on the public '.
|
||||||
'internet to create objects in Phabricator by sending email to '.
|
'internet to create objects by sending email to '.
|
||||||
'this address.')));
|
'this address.')));
|
||||||
|
|
||||||
if ($is_new) {
|
if ($is_new) {
|
||||||
|
|
|
@ -143,7 +143,7 @@ final class PhabricatorMetaMTAActor extends Phobject {
|
||||||
'recipient received the original email message, so we are not '.
|
'recipient received the original email message, so we are not '.
|
||||||
'sending them this substantially similar message (for example, '.
|
'sending them this substantially similar message (for example, '.
|
||||||
'the sender used "Reply All" instead of "Reply" in response to '.
|
'the sender used "Reply All" instead of "Reply" in response to '.
|
||||||
'mail from Phabricator).'),
|
'mail from this server).'),
|
||||||
self::REASON_SELF => pht(
|
self::REASON_SELF => pht(
|
||||||
'This recipient is the user whose actions caused delivery of '.
|
'This recipient is the user whose actions caused delivery of '.
|
||||||
'this message, but they have set preferences so they do not '.
|
'this message, but they have set preferences so they do not '.
|
||||||
|
|
|
@ -72,10 +72,10 @@ abstract class PhabricatorObjectMailReceiver extends PhabricatorMailReceiver {
|
||||||
MetaMTAReceivedMailStatus::STATUS_NO_PUBLIC_MAIL,
|
MetaMTAReceivedMailStatus::STATUS_NO_PUBLIC_MAIL,
|
||||||
pht(
|
pht(
|
||||||
'This mail is addressed to the public email address of an object '.
|
'This mail is addressed to the public email address of an object '.
|
||||||
'("%s"), but public replies are not enabled on this Phabricator '.
|
'("%s"), but public replies are not enabled on this server. An '.
|
||||||
'install. An administrator may have recently disabled this '.
|
'administrator may have recently disabled this setting, or you '.
|
||||||
'setting, or you may have replied to an old message. Try '.
|
'may have replied to an old message. Try replying to a more '.
|
||||||
'replying to a more recent message instead.',
|
'recent message instead.',
|
||||||
$pattern));
|
$pattern));
|
||||||
}
|
}
|
||||||
$check_phid = $object->getPHID();
|
$check_phid = $object->getPHID();
|
||||||
|
|
Loading…
Reference in a new issue