@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

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

+21 -20
+1 -2
src/applications/herald/controller/HeraldRuleController.php
··· 108 108 throw new Exception( 109 109 pht( 110 110 'This rule was created with a newer version of Herald. You can not '. 111 - 'view or edit it in this older version. Upgrade your Phabricator '. 112 - 'deployment.')); 111 + 'view or edit it in this older version. Upgrade your software.')); 113 112 } 114 113 115 114 // Upgrade rule version to our version, since we might add newly-defined
+1 -1
src/applications/herald/controller/HeraldWebhookViewController.php
··· 53 53 $warnings = array(); 54 54 if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { 55 55 $message = pht( 56 - 'Phabricator is currently configured in silent mode, so it will not '. 56 + 'This server is running in silent mode, so it will not '. 57 57 'publish webhooks. To adjust this setting, see '. 58 58 '@{config:phabricator.silent} in Config.'); 59 59
+2 -1
src/applications/legalpad/controller/LegalpadDocumentSignController.php
··· 681 681 $body = pht( 682 682 "%s:\n\n". 683 683 "This email address was used to sign a Legalpad document ". 684 - "in Phabricator:\n\n". 684 + "in %s:\n\n". 685 685 " %s\n\n". 686 686 "Please verify you own this email address and accept the ". 687 687 "agreement by clicking this link:\n\n". ··· 690 690 "verification step.\n\nYou can review the document here:\n\n". 691 691 " %s\n", 692 692 $name, 693 + PlatformSymbols::getPlatformServerName(), 693 694 $doc_name, 694 695 $link, 695 696 $doc_link);
+1 -1
src/applications/legalpad/editor/LegalpadDocumentEditor.php
··· 101 101 LegalpadDocumentRequireSignatureTransaction::TRANSACTIONTYPE, 102 102 pht('Invalid'), 103 103 pht('Only documents with signature type "individual" may '. 104 - 'require signing to use Phabricator.'), 104 + 'require signing to log in.'), 105 105 null); 106 106 } 107 107
+1 -2
src/applications/legalpad/query/LegalpadDocumentSearchEngine.php
··· 185 185 ->setIcon($icon) 186 186 ->setTitle(pht('Welcome to %s', $app_name)) 187 187 ->setDescription( 188 - pht('Create documents and track signatures. Can also be re-used in '. 189 - 'other areas of Phabricator, like CLAs.')) 188 + pht('Create documents and track signatures.')) 190 189 ->addAction($create_button); 191 190 192 191 return $view;
+2 -1
src/applications/maniphest/xaction/ManiphestTaskOwnerTransaction.php
··· 112 112 foreach ($xactions as $xaction) { 113 113 $old = $xaction->getOldValue(); 114 114 $new = $xaction->getNewValue(); 115 - if (!strlen($new)) { 115 + 116 + if (!phutil_nonempty_string($new)) { 116 117 continue; 117 118 } 118 119
+7 -6
src/applications/meta/controller/PhabricatorApplicationEmailCommandsController.php
··· 35 35 36 36 $content[] = '= '.pht('Mail Commands Overview'); 37 37 $content[] = pht( 38 - 'After configuring Phabricator to process inbound mail, you can '. 38 + 'After configuring processing for inbound mail, you can '. 39 39 'interact with objects (like tasks and revisions) over email. For '. 40 - 'information on configuring Phabricator, see '. 40 + 'information on configuring inbound mail, see '. 41 41 '**[[ %s | Configuring Inbound Email ]]**.'. 42 42 "\n\n". 43 - 'In most cases, you can reply to email you receive from Phabricator '. 43 + 'In most cases, you can reply to email you receive from this server '. 44 44 'to leave comments. You can also use **mail commands** to take a '. 45 45 'greater range of actions (like claiming a task or requesting changes '. 46 46 'to a revision) without needing to log in to the web UI.'. ··· 52 52 'or end of your mail message. For example, you could write this in a '. 53 53 'reply to task email to claim the task:'. 54 54 "\n\n```\n!claim\n\nI'll take care of this.\n```\n\n\n". 55 - "When Phabricator receives your mail, it will process any commands ". 55 + "When %s receives your mail, it will process any commands ". 56 56 "first, then post the remaining message body as a comment. You can ". 57 57 "execute multiple commands at once:". 58 58 "\n\n```\n!assign alincoln\n!close\n\nI just talked to @alincoln, ". 59 59 "and he showed me that he fixed this.\n```\n", 60 - PhabricatorEnv::getDoclink('Configuring Inbound Email')); 60 + PhabricatorEnv::getDoclink('Configuring Inbound Email'), 61 + PlatformSymbols::getPlatformServerName()); 61 62 62 63 $content[] = '= '.$spec['header']; 63 64 $content[] = $spec['summary']; ··· 122 123 $info_view = null; 123 124 if (!PhabricatorEnv::getEnvConfig('metamta.reply-handler-domain')) { 124 125 $error = pht( 125 - "Phabricator is not currently configured to accept inbound mail. ". 126 + "This server is not currently configured to accept inbound mail. ". 126 127 "You won't be able to interact with objects over email until ". 127 128 "inbound mail is set up."); 128 129 $info_view = id(new PHUIInfoView())
+1 -1
src/applications/metamta/applicationpanel/PhabricatorMetaMTAApplicationEmailPanel.php
··· 264 264 pht( 265 265 'Used if the "From:" address does not map to a user account. '. 266 266 'Setting a default author will allow anyone on the public '. 267 - 'internet to create objects in Phabricator by sending email to '. 267 + 'internet to create objects by sending email to '. 268 268 'this address.'))); 269 269 270 270 if ($is_new) {
+1 -1
src/applications/metamta/query/PhabricatorMetaMTAActor.php
··· 143 143 'recipient received the original email message, so we are not '. 144 144 'sending them this substantially similar message (for example, '. 145 145 'the sender used "Reply All" instead of "Reply" in response to '. 146 - 'mail from Phabricator).'), 146 + 'mail from this server).'), 147 147 self::REASON_SELF => pht( 148 148 'This recipient is the user whose actions caused delivery of '. 149 149 'this message, but they have set preferences so they do not '.
+4 -4
src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php
··· 72 72 MetaMTAReceivedMailStatus::STATUS_NO_PUBLIC_MAIL, 73 73 pht( 74 74 'This mail is addressed to the public email address of an object '. 75 - '("%s"), but public replies are not enabled on this Phabricator '. 76 - 'install. An administrator may have recently disabled this '. 77 - 'setting, or you may have replied to an old message. Try '. 78 - 'replying to a more recent message instead.', 75 + '("%s"), but public replies are not enabled on this server. An '. 76 + 'administrator may have recently disabled this setting, or you '. 77 + 'may have replied to an old message. Try replying to a more '. 78 + 'recent message instead.', 79 79 $pattern)); 80 80 } 81 81 $check_phid = $object->getPHID();