1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00

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
This commit is contained in:
epriestley 2022-04-25 14:48:20 -07:00
parent 9df1bbd31d
commit 55770a2ca8
10 changed files with 25 additions and 25 deletions

View file

@ -21,7 +21,7 @@ final class PhabricatorDaemonManagementStopWorkflow
'name' => 'force',
'help' => pht(
'Stop all daemon processes on this host, even if they belong '.
'to another Phabricator instance.'),
'to another instance.'),
),
array(
'name' => 'gently',

View file

@ -140,8 +140,7 @@ final class PhabricatorDashboardPanelRenderingEngine extends Phobject {
return $this->renderErrorPanel(
$panel->getName(),
pht(
'This panel has type "%s", but that panel type is not known to '.
'Phabricator.',
'This panel has type "%s", but that panel type is unknown.',
$panel->getPanelType()));
}
@ -425,8 +424,9 @@ final class PhabricatorDashboardPanelRenderingEngine extends Phobject {
throw new Exception(
pht(
'To render more than %s levels of panels nested inside other '.
'panels, purchase a subscription to Phabricator Gold.',
new PhutilNumber($max_depth)));
'panels, purchase a subscription to %s Gold.',
new PhutilNumber($max_depth),
PlatformSymbols::getPlatformServerName()));
}
if (in_array($panel->getPHID(), $this->parentPanelPHIDs)) {

View file

@ -96,8 +96,7 @@ final class PhabricatorDashboardPanel
throw new Exception(
pht(
'Attempting to use a panel in a way that requires an '.
'implementation, but the panel implementation ("%s") is unknown to '.
'Phabricator.',
'implementation, but the panel implementation ("%s") is unknown.',
$this->getPanelType()));
}
return $impl;

View file

@ -210,8 +210,8 @@ EOHELP
'to "Close" the revision and move it off the dashboard.'.
"\n\n".
'If you have an unusual workflow where Differential is used for '.
'post-commit review (normally called "Audit", elsewhere in '.
'Phabricator), you can set this flag to treat the "Accepted" '.
'post-commit review (normally called "Audit", elsewhere), you '.
'can set this flag to treat the "Accepted" '.
'state as a "Closed" state and end the review workflow early.'.
"\n\n".
'This sort of workflow is very unusual. Very few installs should '.
@ -228,7 +228,7 @@ EOHELP
->setSummary(pht('Attach patches to email, as text attachments.'))
->setDescription(
pht(
'If you set this to true, Phabricator will attach patches to '.
'If you set this to true, patches will be attached to '.
'Differential mail (as text attachments). This will not work if '.
'you are using SendGrid as your mail adapter.')),
$this->newOption(

View file

@ -112,8 +112,9 @@ final class DifferentialDiffCreateController extends DifferentialController {
array(
array(
pht(
'The best way to create a diff is to use the Arcanist '.
'command-line tool.'),
'The best way to create a diff is to use the %s '.
'command-line tool.',
PlatformSymbols::getPlatformClientName()),
' ',
$arcanist_link,
),

View file

@ -166,8 +166,9 @@ final class DifferentialJIRAIssuesField
pht('Not Linked'),
pht(
'You can not add JIRA issues (%s) to this revision because your '.
'Phabricator account is not linked to a JIRA account.',
implode(', ', $add)),
'%s account is not linked to a JIRA account.',
implode(', ', $add),
PlatformSymbols::getPlatformServerName()),
$xaction);
continue;
}

View file

@ -13,7 +13,7 @@ final class DiffusionLookSoonConduitAPIMethod
public function getMethodDescription() {
return pht(
'Advises Phabricator to look for new commits in a repository as soon '.
'Advises this server to look for new commits in a repository as soon '.
'as possible. This advice is most useful if you have just pushed new '.
'commits to that repository.');
}

View file

@ -107,12 +107,12 @@ final class PhabricatorDiffusionConfigOptions
->setSummary(pht('Enable HTTP Basic Auth for repositories.'))
->setDescription(
pht(
"Phabricator can serve repositories over HTTP, using HTTP basic ".
"This server can serve repositories over HTTP, using HTTP basic ".
"auth.\n\n".
"Because HTTP basic auth is less secure than SSH auth, it is ".
"disabled by default. You can enable it here if you'd like to use ".
"it anyway. There's nothing fundamentally insecure about it as ".
"long as Phabricator uses HTTPS, but it presents a much lower ".
"long as this server uses HTTPS, but it presents a much lower ".
"barrier to attackers than SSH does.\n\n".
"Consider using SSH for authenticated access to repositories ".
"instead of HTTP.")),
@ -126,9 +126,9 @@ final class PhabricatorDiffusionConfigOptions
->setSummary(pht('Allow Git Large File Storage (LFS).'))
->setDescription(
pht(
'Phabricator supports Git LFS, a Git extension for storing large '.
'This server supports Git LFS, a Git extension for storing large '.
'files alongside a repository. Activate this setting to allow '.
'the extension to store file data in Phabricator.')),
'the extension to store file data.')),
$this->newOption('diffusion.ssh-user', 'string', null)
->setLocked(true)
->setSummary(pht('Login username for SSH connections to repositories.'))
@ -150,10 +150,9 @@ final class PhabricatorDiffusionConfigOptions
->setSummary(pht('Host for SSH connections to repositories.'))
->setDescription(
pht(
'If you accept Phabricator SSH traffic on a different host '.
'from web traffic (for example, if you use different SSH and '.
'web load balancers), you can set the SSH hostname here. This '.
'is an advanced option.')),
'If you accept SSH traffic on a different host from web traffic '.
'(for example, if you use different SSH and web load balancers), '.
'you can set the SSH hostname here. This is an advanced option.')),
$this->newOption('diffusion.fields', $custom_field_type, $default_fields)
->setCustomData(
id(new PhabricatorRepositoryCommit())

View file

@ -23,7 +23,7 @@ final class DiffusionRepositoryEditDangerousController
->appendParagraph(
pht(
'This repository can not be protected from dangerous changes '.
'because Phabricator does not control what users are allowed '.
'because this server does not control what users are allowed '.
'to push to it.'))
->addCancelButton($panel_uri);
}

View file

@ -23,7 +23,7 @@ final class DiffusionRepositoryEditEnormousController
->appendParagraph(
pht(
'This repository can not be protected from enormous changes '.
'because Phabricator does not control what users are allowed '.
'because this server does not control what users are allowed '.
'to push to it.'))
->addCancelButton($panel_uri);
}