From 4d3f0dc7c727e6fdc0e8cba0e8e8f2b8ef1bd16c Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 25 Apr 2022 12:07:12 -0700 Subject: [PATCH] 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 --- .../RemarkupProcessConduitAPIMethod.php | 2 +- .../PhabricatorRepositoryMirrorEngine.php | 2 +- ...catorRepositoryManagementCacheWorkflow.php | 2 +- .../storage/PhabricatorRepository.php | 3 ++- .../storage/PhabricatorRepositoryCommit.php | 4 ++-- .../storage/PhabricatorRepositoryURI.php | 12 +++++------ ...PhabricatorExternalEditorSettingsPanel.php | 2 +- .../setting/PhabricatorEmailStampsSetting.php | 2 +- .../setting/PhabricatorTranslationSetting.php | 2 +- .../PhabricatorSystemReadOnlyController.php | 21 ++++++++++--------- .../TransactionSearchConduitAPIMethod.php | 6 +++--- 11 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/applications/remarkup/conduit/RemarkupProcessConduitAPIMethod.php b/src/applications/remarkup/conduit/RemarkupProcessConduitAPIMethod.php index f9169cd08c..ae181f9860 100644 --- a/src/applications/remarkup/conduit/RemarkupProcessConduitAPIMethod.php +++ b/src/applications/remarkup/conduit/RemarkupProcessConduitAPIMethod.php @@ -11,7 +11,7 @@ final class RemarkupProcessConduitAPIMethod extends ConduitAPIMethod { } public function getMethodDescription() { - return pht('Process text through remarkup in Phabricator context.'); + return pht('Process text through remarkup.'); } protected function defineReturnType() { diff --git a/src/applications/repository/engine/PhabricatorRepositoryMirrorEngine.php b/src/applications/repository/engine/PhabricatorRepositoryMirrorEngine.php index ed856957f0..32689d3a77 100644 --- a/src/applications/repository/engine/PhabricatorRepositoryMirrorEngine.php +++ b/src/applications/repository/engine/PhabricatorRepositoryMirrorEngine.php @@ -16,7 +16,7 @@ final class PhabricatorRepositoryMirrorEngine if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { $this->log( - pht('Phabricator is running in silent mode; declining to mirror.')); + pht('This software is running in silent mode; declining to mirror.')); return; } diff --git a/src/applications/repository/management/PhabricatorRepositoryManagementCacheWorkflow.php b/src/applications/repository/management/PhabricatorRepositoryManagementCacheWorkflow.php index a78dff1a73..81955f36f3 100644 --- a/src/applications/repository/management/PhabricatorRepositoryManagementCacheWorkflow.php +++ b/src/applications/repository/management/PhabricatorRepositoryManagementCacheWorkflow.php @@ -47,7 +47,7 @@ final class PhabricatorRepositoryManagementCacheWorkflow ->loadPathIDs(); if (empty($path_map[$path_name])) { 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]; diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php index 66242f8d15..8f02dd664f 100644 --- a/src/applications/repository/storage/PhabricatorRepository.php +++ b/src/applications/repository/storage/PhabricatorRepository.php @@ -203,7 +203,8 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO public function getDisplayName() { $slug = $this->getRepositorySlug(); - if (strlen($slug)) { + + if (phutil_nonempty_string($slug)) { return $slug; } diff --git a/src/applications/repository/storage/PhabricatorRepositoryCommit.php b/src/applications/repository/storage/PhabricatorRepositoryCommit.php index 0303e36919..9e20a36676 100644 --- a/src/applications/repository/storage/PhabricatorRepositoryCommit.php +++ b/src/applications/repository/storage/PhabricatorRepositoryCommit.php @@ -674,9 +674,9 @@ final class PhabricatorRepositoryCommit return array( 'buildable.commit' => pht('The commit identifier, if applicable.'), 'repository.callsign' => - pht('The callsign of the repository in Phabricator.'), + pht('The callsign of the repository.'), 'repository.phid' => - pht('The PHID of the repository in Phabricator.'), + pht('The PHID of the repository.'), 'repository.vcs' => pht('The version control system, either "svn", "hg" or "git".'), 'repository.uri' => diff --git a/src/applications/repository/storage/PhabricatorRepositoryURI.php b/src/applications/repository/storage/PhabricatorRepositoryURI.php index 98c08baa00..26db694a66 100644 --- a/src/applications/repository/storage/PhabricatorRepositoryURI.php +++ b/src/applications/repository/storage/PhabricatorRepositoryURI.php @@ -501,7 +501,7 @@ final class PhabricatorRepositoryURI 'color' => 'green', 'label' => pht('Observe'), '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.'), ), self::IO_MIRROR => array( @@ -509,7 +509,7 @@ final class PhabricatorRepositoryURI 'color' => 'green', 'label' => pht('Mirror'), '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.'), ), self::IO_NONE => array( @@ -517,7 +517,7 @@ final class PhabricatorRepositoryURI 'color' => 'grey', 'label' => pht('No I/O'), '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.'), ), self::IO_READ => array( @@ -525,8 +525,7 @@ final class PhabricatorRepositoryURI 'color' => 'blue', 'label' => pht('Read Only'), 'note' => pht( - 'Phabricator will serve a read-only copy of the repository from '. - 'this URI.'), + 'A read-only copy of the repository will be served from this URI.'), 'short' => pht('Serve repository in read-only mode.'), ), self::IO_READWRITE => array( @@ -534,8 +533,7 @@ final class PhabricatorRepositoryURI 'color' => 'blue', 'label' => pht('Read/Write'), 'note' => pht( - 'Phabricator will serve a read/write copy of the repository from '. - 'this URI.'), + 'A read/write copy of the repository will be served from this URI.'), 'short' => pht('Serve repository in read/write mode.'), ), ); diff --git a/src/applications/settings/panel/PhabricatorExternalEditorSettingsPanel.php b/src/applications/settings/panel/PhabricatorExternalEditorSettingsPanel.php index c331d3d762..3a49b6c3c3 100644 --- a/src/applications/settings/panel/PhabricatorExternalEditorSettingsPanel.php +++ b/src/applications/settings/panel/PhabricatorExternalEditorSettingsPanel.php @@ -129,7 +129,7 @@ final class PhabricatorExternalEditorSettingsPanel $protocol_table = id(new AphrontTableView($protocol_rows)) ->setNoDataString( pht( - 'Phabricator is not configured to allow any editor protocols.')) + 'No allowed editor protocols are configured.')) ->setHeaders( array( pht('Protocol'), diff --git a/src/applications/settings/setting/PhabricatorEmailStampsSetting.php b/src/applications/settings/setting/PhabricatorEmailStampsSetting.php index 39403f40a0..52497f3c42 100644 --- a/src/applications/settings/setting/PhabricatorEmailStampsSetting.php +++ b/src/applications/settings/setting/PhabricatorEmailStampsSetting.php @@ -22,7 +22,7 @@ final class PhabricatorEmailStampsSetting protected function getControlInstructions() { return pht(<<