1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Remove product literal strings in "pht()", part 16

Summary: Ref T13658.

Test Plan:
This plan is non-exhaustive.

  - Looked at config options.
  - Ran `bin/phd`.

Maniphest Tasks: T13658

Differential Revision: https://secure.phabricator.com/D21782
This commit is contained in:
epriestley 2022-04-25 14:43:18 -07:00
parent ce1972bfae
commit 9df1bbd31d
8 changed files with 22 additions and 21 deletions

View file

@ -28,7 +28,8 @@ final class PhabricatorSetupIssue extends Phobject {
$message = pht( $message = pht(
"Unable to connect to MySQL!\n\n". "Unable to connect to MySQL!\n\n".
"%s\n\n". "%s\n\n".
"Make sure Phabricator and MySQL are correctly configured.", "Make sure databases connection information and MySQL are ".
"correctly configured.",
$ex->getMessage()); $ex->getMessage());
$issue = id(new self()) $issue = id(new self())

View file

@ -42,7 +42,7 @@ final class PhabricatorAWSConfigOptions
pht( pht(
'Explicit S3 endpoint to use. This should be the endpoint '. 'Explicit S3 endpoint to use. This should be the endpoint '.
'which corresponds to the region you have selected in '. 'which corresponds to the region you have selected in '.
'`amazon-s3.region`. Phabricator can not determine the correct '. '`amazon-s3.region`. This software can not determine the correct '.
'endpoint automatically because some endpoint locations are '. 'endpoint automatically because some endpoint locations are '.
'irregular.')) 'irregular.'))
->addExample( ->addExample(

View file

@ -73,8 +73,8 @@ final class PhabricatorAccessLogConfigOptions
->setSummary(pht('Access log location.')) ->setSummary(pht('Access log location.'))
->setDescription( ->setDescription(
pht( pht(
"To enable the Phabricator access log, specify a path. The ". "To enable the HTTP access log, specify a path. This log is ".
"Phabricator access than normal HTTP access logs (for instance, ". "more detailed than normal HTTP access logs (for instance, ".
"it can show logged-in users, controllers, and other application ". "it can show logged-in users, controllers, and other application ".
"data).\n\n". "data).\n\n".
"If not set, no log will be written.")) "If not set, no log will be written."))
@ -82,7 +82,7 @@ final class PhabricatorAccessLogConfigOptions
null, null,
pht('Disable access log.')) pht('Disable access log.'))
->addExample( ->addExample(
'/var/log/phabricator/access.log', '/var/log/devtools/access.log',
pht('Write access log here.')), pht('Write access log here.')),
$this->newOption( $this->newOption(
'log.access.format', 'log.access.format',
@ -98,16 +98,16 @@ final class PhabricatorAccessLogConfigOptions
->setSummary(pht('SSH log location.')) ->setSummary(pht('SSH log location.'))
->setDescription( ->setDescription(
pht( pht(
"To enable the Phabricator SSH log, specify a path. The ". "To enable the SSH log, specify a path. This log can provide ".
"access log can provide more detailed information about SSH ". "more detailed information about SSH access than a normal SSH ".
"access than a normal SSH log (for instance, it can show ". "log (for instance, it can show logged-in users, commands, and ".
"logged-in users, commands, and other application data).\n\n". "other application data).\n\n".
"If not set, no log will be written.")) "If not set, no log will be written."))
->addExample( ->addExample(
null, null,
pht('Disable SSH log.')) pht('Disable SSH log.'))
->addExample( ->addExample(
'/var/log/phabricator/ssh.log', '/var/log/devtools/ssh.log',
pht('Write SSH log here.')), pht('Write SSH log here.')),
$this->newOption( $this->newOption(
'log.ssh.format', 'log.ssh.format',
@ -121,14 +121,14 @@ final class PhabricatorAccessLogConfigOptions
->setSummary(pht('SSH error log location.')) ->setSummary(pht('SSH error log location.'))
->setDescription( ->setDescription(
pht( pht(
'To enable the Phabricator SSH error log, specify a path. Errors '. 'To enable the SSH error log, specify a path. Errors occurring '.
'occurring in contexts where Phabricator is serving SSH requests '. 'in contexts where this software is serving SSH requests '.
'will be written to this log.'. 'will be written to this log.'.
"\n\n". "\n\n".
'If not set, no log will be written.')) 'If not set, no log will be written.'))
->addExample(null, pht('Disable SSH error log.')) ->addExample(null, pht('Disable SSH error log.'))
->addExample( ->addExample(
'/var/log/phabricator/ssh-error.log', '/var/log/devtools/ssh-error.log',
pht('Write SSH error log here.')), pht('Write SSH error log here.')),
); );
} }

View file

@ -44,14 +44,14 @@ final class PhabricatorAuthenticationConfigOptions
pht('Require administrators to approve new accounts.')) pht('Require administrators to approve new accounts.'))
->setDescription( ->setDescription(
pht( pht(
"Newly registered Phabricator accounts can either be placed ". "Newly registered accounts can either be placed ".
"into a manual approval queue for administrative review, or ". "into a manual approval queue for administrative review, or ".
"automatically activated immediately. The approval queue is ". "automatically activated immediately. The approval queue is ".
"enabled by default because it gives you greater control over ". "enabled by default because it gives you greater control over ".
"who can register an account and access Phabricator.\n\n". "who can register an account and access the server.\n\n".
"If your install is completely public, or on a VPN, or users can ". "If your install is completely public, or on a VPN, or users can ".
"only register with a trusted provider like LDAP, or you've ". "only register with a trusted provider like LDAP, or you've ".
"otherwise configured Phabricator to prevent unauthorized ". "otherwise configured the server to prevent unauthorized ".
"registration, you can disable the queue to reduce administrative ". "registration, you can disable the queue to reduce administrative ".
"overhead.\n\n". "overhead.\n\n".
"NOTE: Before you disable the queue, make sure ". "NOTE: Before you disable the queue, make sure ".
@ -107,7 +107,7 @@ final class PhabricatorAuthenticationConfigOptions
'This option controls whether users can edit account email '. 'This option controls whether users can edit account email '.
'addresses and profile real names.'. 'addresses and profile real names.'.
"\n\n". "\n\n".
'If you set up Phabricator to automatically synchronize account '. 'If you set things up to automatically synchronize account '.
'information from some other authoritative system, you can '. 'information from some other authoritative system, you can '.
'prevent users from making these edits to ensure information '. 'prevent users from making these edits to ensure information '.
'remains consistent across both systems.')), 'remains consistent across both systems.')),

View file

@ -251,7 +251,7 @@ EOREMARKUP
$this->newOption('phabricator.application-settings', 'wild', array()) $this->newOption('phabricator.application-settings', 'wild', array())
->setLocked(true) ->setLocked(true)
->setDescription( ->setDescription(
pht('Customized settings for Phabricator applications.')), pht('Customized settings for applications.')),
$this->newOption('phabricator.cache-namespace', 'string', 'phabricator') $this->newOption('phabricator.cache-namespace', 'string', 'phabricator')
->setLocked(true) ->setLocked(true)
->setDescription(pht('Cache namespace.')), ->setDescription(pht('Cache namespace.')),

View file

@ -50,7 +50,7 @@ final class PhabricatorPHDConfigOptions
pht( pht(
'Specify a system user to run the daemons as. Primarily, this '. 'Specify a system user to run the daemons as. Primarily, this '.
'user will own the working copies of any repositories that '. 'user will own the working copies of any repositories that '.
'Phabricator imports or manages. This option is new and '. 'this software imports or manages. This option is new and '.
'experimental.')), 'experimental.')),
$this->newOption('phd.garbage-collection', 'wild', array()) $this->newOption('phd.garbage-collection', 'wild', array())
->setLocked(true) ->setLocked(true)

View file

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

View file

@ -8,7 +8,7 @@ final class PhabricatorDaemonManagementStartWorkflow
->setName('start') ->setName('start')
->setSynopsis( ->setSynopsis(
pht( pht(
'Start the standard configured collection of Phabricator daemons. '. 'Start the standard configured collection of daemons. '.
'This is appropriate for most installs. Use **%s** to '. 'This is appropriate for most installs. Use **%s** to '.
'customize which daemons are launched.', 'customize which daemons are launched.',
'phd launch')) 'phd launch'))