@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 17

Summary: Ref T13658.

Test Plan:
This is non-exhaustive.

- Viewed "diffusion.looksoon" Conduit API method page.
- Viewed config settings.

Maniphest Tasks: T13658

Differential Revision: https://secure.phabricator.com/D21783

+25 -25
+1 -1
src/applications/daemon/management/PhabricatorDaemonManagementStopWorkflow.php
··· 21 21 'name' => 'force', 22 22 'help' => pht( 23 23 'Stop all daemon processes on this host, even if they belong '. 24 - 'to another Phabricator instance.'), 24 + 'to another instance.'), 25 25 ), 26 26 array( 27 27 'name' => 'gently',
+4 -4
src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php
··· 140 140 return $this->renderErrorPanel( 141 141 $panel->getName(), 142 142 pht( 143 - 'This panel has type "%s", but that panel type is not known to '. 144 - 'Phabricator.', 143 + 'This panel has type "%s", but that panel type is unknown.', 145 144 $panel->getPanelType())); 146 145 } 147 146 ··· 425 424 throw new Exception( 426 425 pht( 427 426 'To render more than %s levels of panels nested inside other '. 428 - 'panels, purchase a subscription to Phabricator Gold.', 429 - new PhutilNumber($max_depth))); 427 + 'panels, purchase a subscription to %s Gold.', 428 + new PhutilNumber($max_depth), 429 + PlatformSymbols::getPlatformServerName())); 430 430 } 431 431 432 432 if (in_array($panel->getPHID(), $this->parentPanelPHIDs)) {
+1 -2
src/applications/dashboard/storage/PhabricatorDashboardPanel.php
··· 96 96 throw new Exception( 97 97 pht( 98 98 'Attempting to use a panel in a way that requires an '. 99 - 'implementation, but the panel implementation ("%s") is unknown to '. 100 - 'Phabricator.', 99 + 'implementation, but the panel implementation ("%s") is unknown.', 101 100 $this->getPanelType())); 102 101 } 103 102 return $impl;
+3 -3
src/applications/differential/config/PhabricatorDifferentialConfigOptions.php
··· 210 210 'to "Close" the revision and move it off the dashboard.'. 211 211 "\n\n". 212 212 'If you have an unusual workflow where Differential is used for '. 213 - 'post-commit review (normally called "Audit", elsewhere in '. 214 - 'Phabricator), you can set this flag to treat the "Accepted" '. 213 + 'post-commit review (normally called "Audit", elsewhere), you '. 214 + 'can set this flag to treat the "Accepted" '. 215 215 'state as a "Closed" state and end the review workflow early.'. 216 216 "\n\n". 217 217 'This sort of workflow is very unusual. Very few installs should '. ··· 228 228 ->setSummary(pht('Attach patches to email, as text attachments.')) 229 229 ->setDescription( 230 230 pht( 231 - 'If you set this to true, Phabricator will attach patches to '. 231 + 'If you set this to true, patches will be attached to '. 232 232 'Differential mail (as text attachments). This will not work if '. 233 233 'you are using SendGrid as your mail adapter.')), 234 234 $this->newOption(
+3 -2
src/applications/differential/controller/DifferentialDiffCreateController.php
··· 112 112 array( 113 113 array( 114 114 pht( 115 - 'The best way to create a diff is to use the Arcanist '. 116 - 'command-line tool.'), 115 + 'The best way to create a diff is to use the %s '. 116 + 'command-line tool.', 117 + PlatformSymbols::getPlatformClientName()), 117 118 ' ', 118 119 $arcanist_link, 119 120 ),
+3 -2
src/applications/differential/customfield/DifferentialJIRAIssuesField.php
··· 166 166 pht('Not Linked'), 167 167 pht( 168 168 'You can not add JIRA issues (%s) to this revision because your '. 169 - 'Phabricator account is not linked to a JIRA account.', 170 - implode(', ', $add)), 169 + '%s account is not linked to a JIRA account.', 170 + implode(', ', $add), 171 + PlatformSymbols::getPlatformServerName()), 171 172 $xaction); 172 173 continue; 173 174 }
+1 -1
src/applications/diffusion/conduit/DiffusionLookSoonConduitAPIMethod.php
··· 13 13 14 14 public function getMethodDescription() { 15 15 return pht( 16 - 'Advises Phabricator to look for new commits in a repository as soon '. 16 + 'Advises this server to look for new commits in a repository as soon '. 17 17 'as possible. This advice is most useful if you have just pushed new '. 18 18 'commits to that repository.'); 19 19 }
+7 -8
src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php
··· 107 107 ->setSummary(pht('Enable HTTP Basic Auth for repositories.')) 108 108 ->setDescription( 109 109 pht( 110 - "Phabricator can serve repositories over HTTP, using HTTP basic ". 110 + "This server can serve repositories over HTTP, using HTTP basic ". 111 111 "auth.\n\n". 112 112 "Because HTTP basic auth is less secure than SSH auth, it is ". 113 113 "disabled by default. You can enable it here if you'd like to use ". 114 114 "it anyway. There's nothing fundamentally insecure about it as ". 115 - "long as Phabricator uses HTTPS, but it presents a much lower ". 115 + "long as this server uses HTTPS, but it presents a much lower ". 116 116 "barrier to attackers than SSH does.\n\n". 117 117 "Consider using SSH for authenticated access to repositories ". 118 118 "instead of HTTP.")), ··· 126 126 ->setSummary(pht('Allow Git Large File Storage (LFS).')) 127 127 ->setDescription( 128 128 pht( 129 - 'Phabricator supports Git LFS, a Git extension for storing large '. 129 + 'This server supports Git LFS, a Git extension for storing large '. 130 130 'files alongside a repository. Activate this setting to allow '. 131 - 'the extension to store file data in Phabricator.')), 131 + 'the extension to store file data.')), 132 132 $this->newOption('diffusion.ssh-user', 'string', null) 133 133 ->setLocked(true) 134 134 ->setSummary(pht('Login username for SSH connections to repositories.')) ··· 150 150 ->setSummary(pht('Host for SSH connections to repositories.')) 151 151 ->setDescription( 152 152 pht( 153 - 'If you accept Phabricator SSH traffic on a different host '. 154 - 'from web traffic (for example, if you use different SSH and '. 155 - 'web load balancers), you can set the SSH hostname here. This '. 156 - 'is an advanced option.')), 153 + 'If you accept SSH traffic on a different host from web traffic '. 154 + '(for example, if you use different SSH and web load balancers), '. 155 + 'you can set the SSH hostname here. This is an advanced option.')), 157 156 $this->newOption('diffusion.fields', $custom_field_type, $default_fields) 158 157 ->setCustomData( 159 158 id(new PhabricatorRepositoryCommit())
+1 -1
src/applications/diffusion/controller/DiffusionRepositoryEditDangerousController.php
··· 23 23 ->appendParagraph( 24 24 pht( 25 25 'This repository can not be protected from dangerous changes '. 26 - 'because Phabricator does not control what users are allowed '. 26 + 'because this server does not control what users are allowed '. 27 27 'to push to it.')) 28 28 ->addCancelButton($panel_uri); 29 29 }
+1 -1
src/applications/diffusion/controller/DiffusionRepositoryEditEnormousController.php
··· 23 23 ->appendParagraph( 24 24 pht( 25 25 'This repository can not be protected from enormous changes '. 26 - 'because Phabricator does not control what users are allowed '. 26 + 'because this server does not control what users are allowed '. 27 27 'to push to it.')) 28 28 ->addCancelButton($panel_uri); 29 29 }