1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

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

Summary: Ref T13658.

Test Plan:
This test plan is non-exhaustive.

  - Viewed "remarkup.process" Conduit method API page.
  - Viewed URIs in a Diffusion repository.
  - Viewed editor protocol configuration in Settings.

Maniphest Tasks: T13658

Differential Revision: https://secure.phabricator.com/D21772
This commit is contained in:
epriestley 2022-04-25 12:07:12 -07:00
parent 67795a46eb
commit 4d3f0dc7c7
11 changed files with 29 additions and 29 deletions

View file

@ -11,7 +11,7 @@ final class RemarkupProcessConduitAPIMethod extends ConduitAPIMethod {
} }
public function getMethodDescription() { public function getMethodDescription() {
return pht('Process text through remarkup in Phabricator context.'); return pht('Process text through remarkup.');
} }
protected function defineReturnType() { protected function defineReturnType() {

View file

@ -16,7 +16,7 @@ final class PhabricatorRepositoryMirrorEngine
if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { if (PhabricatorEnv::getEnvConfig('phabricator.silent')) {
$this->log( $this->log(
pht('Phabricator is running in silent mode; declining to mirror.')); pht('This software is running in silent mode; declining to mirror.'));
return; return;
} }

View file

@ -47,7 +47,7 @@ final class PhabricatorRepositoryManagementCacheWorkflow
->loadPathIDs(); ->loadPathIDs();
if (empty($path_map[$path_name])) { if (empty($path_map[$path_name])) {
throw new PhutilArgumentUsageException( throw new PhutilArgumentUsageException(
pht('Path "%s" is not known to Phabricator.', $path_name)); pht('Path "%s" is not unknown.', $path_name));
} }
$path_id = $path_map[$path_name]; $path_id = $path_map[$path_name];

View file

@ -203,7 +203,8 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
public function getDisplayName() { public function getDisplayName() {
$slug = $this->getRepositorySlug(); $slug = $this->getRepositorySlug();
if (strlen($slug)) {
if (phutil_nonempty_string($slug)) {
return $slug; return $slug;
} }

View file

@ -674,9 +674,9 @@ final class PhabricatorRepositoryCommit
return array( return array(
'buildable.commit' => pht('The commit identifier, if applicable.'), 'buildable.commit' => pht('The commit identifier, if applicable.'),
'repository.callsign' => 'repository.callsign' =>
pht('The callsign of the repository in Phabricator.'), pht('The callsign of the repository.'),
'repository.phid' => 'repository.phid' =>
pht('The PHID of the repository in Phabricator.'), pht('The PHID of the repository.'),
'repository.vcs' => 'repository.vcs' =>
pht('The version control system, either "svn", "hg" or "git".'), pht('The version control system, either "svn", "hg" or "git".'),
'repository.uri' => 'repository.uri' =>

View file

@ -501,7 +501,7 @@ final class PhabricatorRepositoryURI
'color' => 'green', 'color' => 'green',
'label' => pht('Observe'), 'label' => pht('Observe'),
'note' => pht( 'note' => pht(
'Phabricator will observe changes to this URI and copy them.'), 'Changes to this URI will be observed and pulled.'),
'short' => pht('Copy from a remote.'), 'short' => pht('Copy from a remote.'),
), ),
self::IO_MIRROR => array( self::IO_MIRROR => array(
@ -509,7 +509,7 @@ final class PhabricatorRepositoryURI
'color' => 'green', 'color' => 'green',
'label' => pht('Mirror'), 'label' => pht('Mirror'),
'note' => pht( 'note' => pht(
'Phabricator will push a copy of any changes to this URI.'), 'A copy of any changes will be pushed to this URI.'),
'short' => pht('Push a copy to a remote.'), 'short' => pht('Push a copy to a remote.'),
), ),
self::IO_NONE => array( self::IO_NONE => array(
@ -517,7 +517,7 @@ final class PhabricatorRepositoryURI
'color' => 'grey', 'color' => 'grey',
'label' => pht('No I/O'), 'label' => pht('No I/O'),
'note' => pht( 'note' => pht(
'Phabricator will not push or pull any changes to this URI.'), 'No changes will be pushed or pulled from this URI.'),
'short' => pht('Do not perform any I/O.'), 'short' => pht('Do not perform any I/O.'),
), ),
self::IO_READ => array( self::IO_READ => array(
@ -525,8 +525,7 @@ final class PhabricatorRepositoryURI
'color' => 'blue', 'color' => 'blue',
'label' => pht('Read Only'), 'label' => pht('Read Only'),
'note' => pht( 'note' => pht(
'Phabricator will serve a read-only copy of the repository from '. 'A read-only copy of the repository will be served from this URI.'),
'this URI.'),
'short' => pht('Serve repository in read-only mode.'), 'short' => pht('Serve repository in read-only mode.'),
), ),
self::IO_READWRITE => array( self::IO_READWRITE => array(
@ -534,8 +533,7 @@ final class PhabricatorRepositoryURI
'color' => 'blue', 'color' => 'blue',
'label' => pht('Read/Write'), 'label' => pht('Read/Write'),
'note' => pht( 'note' => pht(
'Phabricator will serve a read/write copy of the repository from '. 'A read/write copy of the repository will be served from this URI.'),
'this URI.'),
'short' => pht('Serve repository in read/write mode.'), 'short' => pht('Serve repository in read/write mode.'),
), ),
); );

View file

@ -129,7 +129,7 @@ final class PhabricatorExternalEditorSettingsPanel
$protocol_table = id(new AphrontTableView($protocol_rows)) $protocol_table = id(new AphrontTableView($protocol_rows))
->setNoDataString( ->setNoDataString(
pht( pht(
'Phabricator is not configured to allow any editor protocols.')) 'No allowed editor protocols are configured.'))
->setHeaders( ->setHeaders(
array( array(
pht('Protocol'), pht('Protocol'),

View file

@ -22,7 +22,7 @@ final class PhabricatorEmailStampsSetting
protected function getControlInstructions() { protected function getControlInstructions() {
return pht(<<<EOREMARKUP return pht(<<<EOREMARKUP
Phabricator stamps mail with labels like `actor(alice)` which can be used to Outgoing mail is stamped with labels like `actor(alice)` which can be used to
write client mail rules to organize mail. By default, these stamps are sent write client mail rules to organize mail. By default, these stamps are sent
in an `X-Phabricator-Stamps` header. in an `X-Phabricator-Stamps` header.

View file

@ -23,7 +23,7 @@ final class PhabricatorTranslationSetting
protected function getControlInstructions() { protected function getControlInstructions() {
return pht( return pht(
'Choose which language you would like the Phabricator UI to use.'); 'Choose which language you would like the UI to use.');
} }
public function assertValidValue($value) { public function assertValidValue($value) {

View file

@ -16,7 +16,7 @@ final class PhabricatorSystemReadOnlyController
case PhabricatorEnv::READONLY_CONFIG: case PhabricatorEnv::READONLY_CONFIG:
$title = pht('Administrative Read-Only Mode'); $title = pht('Administrative Read-Only Mode');
$body[] = pht( $body[] = pht(
'An administrator has placed Phabricator into read-only mode.'); 'An administrator has placed this server into read-only mode.');
$body[] = pht( $body[] = pht(
'This mode may be used to perform temporary maintenance, test '. 'This mode may be used to perform temporary maintenance, test '.
'configuration, or archive an installation permanently.'); 'configuration, or archive an installation permanently.');
@ -24,8 +24,9 @@ final class PhabricatorSystemReadOnlyController
'Read-only mode was enabled by the explicit action of a human '. 'Read-only mode was enabled by the explicit action of a human '.
'administrator, so you can get more information about why it '. 'administrator, so you can get more information about why it '.
'has been turned on by rolling your chair away from your desk and '. 'has been turned on by rolling your chair away from your desk and '.
'yelling "Hey! Why is Phabricator in read-only mode??!" using '. 'yelling "Hey! Why is %s in read-only mode??!" using '.
'your very loudest outside voice.'); 'your very loudest outside voice.',
PlatformSymbols::getPlatformServerSymbol());
$body[] = pht( $body[] = pht(
'This mode is active because it is enabled in the configuration '. 'This mode is active because it is enabled in the configuration '.
'option "%s".', 'option "%s".',
@ -35,9 +36,9 @@ final class PhabricatorSystemReadOnlyController
case PhabricatorEnv::READONLY_MASTERLESS: case PhabricatorEnv::READONLY_MASTERLESS:
$title = pht('No Writable Database'); $title = pht('No Writable Database');
$body[] = pht( $body[] = pht(
'Phabricator is currently configured with no writable ("master") '. 'This server is currently configured with no writable ("master") '.
'database, so it can not write new information anywhere. '. 'database, so it can not write new information anywhere. '.
'Phabricator will run in read-only mode until an administrator '. 'This server will run in read-only mode until an administrator '.
'reconfigures it with a writable database.'); 'reconfigures it with a writable database.');
$body[] = pht( $body[] = pht(
'This usually occurs when an administrator is actively working on '. 'This usually occurs when an administrator is actively working on '.
@ -52,17 +53,17 @@ final class PhabricatorSystemReadOnlyController
case PhabricatorEnv::READONLY_UNREACHABLE: case PhabricatorEnv::READONLY_UNREACHABLE:
$title = pht('Unable to Reach Master'); $title = pht('Unable to Reach Master');
$body[] = pht( $body[] = pht(
'Phabricator was unable to connect to the writable ("master") '. 'This server was unable to connect to the writable ("master") '.
'database while handling this request, and automatically degraded '. 'database while handling this request, and automatically degraded '.
'into read-only mode.'); 'into read-only mode.');
$body[] = pht( $body[] = pht(
'This may happen if there is a temporary network anomaly on the '. 'This may happen if there is a temporary network anomaly on the '.
'server side, like cosmic radiation or spooky ghosts. If this '. 'server side, like cosmic radiation or spooky ghosts. If this '.
'failure was caused by a transient service interruption, '. 'failure was caused by a transient service interruption, '.
'Phabricator will recover momentarily.'); 'this server will recover momentarily.');
$body[] = pht( $body[] = pht(
'This may also indicate that a more serious failure has occurred. '. 'This may also indicate that a more serious failure has occurred. '.
'If this interruption does not resolve on its own, Phabricator '. 'If this interruption does not resolve on its own, this server '.
'will soon detect the persistent disruption and degrade into '. 'will soon detect the persistent disruption and degrade into '.
'read-only mode until the issue is resolved.'); 'read-only mode until the issue is resolved.');
$button = pht('Quite Unsettling'); $button = pht('Quite Unsettling');
@ -70,13 +71,13 @@ final class PhabricatorSystemReadOnlyController
case PhabricatorEnv::READONLY_SEVERED: case PhabricatorEnv::READONLY_SEVERED:
$title = pht('Severed From Master'); $title = pht('Severed From Master');
$body[] = pht( $body[] = pht(
'Phabricator has consistently been unable to reach the writable '. 'This server has consistently been unable to reach the writable '.
'("master") database while processing recent requests.'); '("master") database while processing recent requests.');
$body[] = pht( $body[] = pht(
'This likely indicates a severe misconfiguration or major service '. 'This likely indicates a severe misconfiguration or major service '.
'interruption.'); 'interruption.');
$body[] = pht( $body[] = pht(
'Phabricator will periodically retry the connection and recover '. 'This server will periodically retry the connection and recover '.
'once service is restored. Most causes of persistent service '. 'once service is restored. Most causes of persistent service '.
'interruption will require administrative intervention in order '. 'interruption will require administrative intervention in order '.
'to restore service.'); 'to restore service.');

View file

@ -15,9 +15,9 @@ final class TransactionSearchConduitAPIMethod
protected function newDocumentationPages(PhabricatorUser $viewer) { protected function newDocumentationPages(PhabricatorUser $viewer) {
$markup = pht(<<<EOREMARKUP $markup = pht(<<<EOREMARKUP
When an object (like a task) is edited, Phabricator creates a "transaction" When an object (like a task) is edited, the relevant application creates a
and applies it. This list of transactions on each object is the basis for "transaction" and applies it. This list of transactions on each object is the
essentially all edits and comments in Phabricator. Reviewing the transaction basis for essentially all edits and comments. Reviewing the transaction
record allows you to see who edited an object, when, and how their edit changed record allows you to see who edited an object, when, and how their edit changed
things. things.