mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +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:
parent
67795a46eb
commit
4d3f0dc7c7
11 changed files with 29 additions and 29 deletions
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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' =>
|
||||
|
|
|
@ -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.'),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -22,7 +22,7 @@ final class PhabricatorEmailStampsSetting
|
|||
|
||||
protected function getControlInstructions() {
|
||||
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
|
||||
in an `X-Phabricator-Stamps` header.
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ final class PhabricatorTranslationSetting
|
|||
|
||||
protected function getControlInstructions() {
|
||||
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) {
|
||||
|
|
|
@ -16,7 +16,7 @@ final class PhabricatorSystemReadOnlyController
|
|||
case PhabricatorEnv::READONLY_CONFIG:
|
||||
$title = pht('Administrative Read-Only Mode');
|
||||
$body[] = pht(
|
||||
'An administrator has placed Phabricator into read-only mode.');
|
||||
'An administrator has placed this server into read-only mode.');
|
||||
$body[] = pht(
|
||||
'This mode may be used to perform temporary maintenance, test '.
|
||||
'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 '.
|
||||
'administrator, so you can get more information about why it '.
|
||||
'has been turned on by rolling your chair away from your desk and '.
|
||||
'yelling "Hey! Why is Phabricator in read-only mode??!" using '.
|
||||
'your very loudest outside voice.');
|
||||
'yelling "Hey! Why is %s in read-only mode??!" using '.
|
||||
'your very loudest outside voice.',
|
||||
PlatformSymbols::getPlatformServerSymbol());
|
||||
$body[] = pht(
|
||||
'This mode is active because it is enabled in the configuration '.
|
||||
'option "%s".',
|
||||
|
@ -35,9 +36,9 @@ final class PhabricatorSystemReadOnlyController
|
|||
case PhabricatorEnv::READONLY_MASTERLESS:
|
||||
$title = pht('No Writable Database');
|
||||
$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. '.
|
||||
'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.');
|
||||
$body[] = pht(
|
||||
'This usually occurs when an administrator is actively working on '.
|
||||
|
@ -52,17 +53,17 @@ final class PhabricatorSystemReadOnlyController
|
|||
case PhabricatorEnv::READONLY_UNREACHABLE:
|
||||
$title = pht('Unable to Reach Master');
|
||||
$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 '.
|
||||
'into read-only mode.');
|
||||
$body[] = pht(
|
||||
'This may happen if there is a temporary network anomaly on the '.
|
||||
'server side, like cosmic radiation or spooky ghosts. If this '.
|
||||
'failure was caused by a transient service interruption, '.
|
||||
'Phabricator will recover momentarily.');
|
||||
'this server will recover momentarily.');
|
||||
$body[] = pht(
|
||||
'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 '.
|
||||
'read-only mode until the issue is resolved.');
|
||||
$button = pht('Quite Unsettling');
|
||||
|
@ -70,13 +71,13 @@ final class PhabricatorSystemReadOnlyController
|
|||
case PhabricatorEnv::READONLY_SEVERED:
|
||||
$title = pht('Severed From Master');
|
||||
$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.');
|
||||
$body[] = pht(
|
||||
'This likely indicates a severe misconfiguration or major service '.
|
||||
'interruption.');
|
||||
$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 '.
|
||||
'interruption will require administrative intervention in order '.
|
||||
'to restore service.');
|
||||
|
|
|
@ -15,9 +15,9 @@ final class TransactionSearchConduitAPIMethod
|
|||
|
||||
protected function newDocumentationPages(PhabricatorUser $viewer) {
|
||||
$markup = pht(<<<EOREMARKUP
|
||||
When an object (like a task) is edited, Phabricator creates a "transaction"
|
||||
and applies it. This list of transactions on each object is the basis for
|
||||
essentially all edits and comments in Phabricator. Reviewing the transaction
|
||||
When an object (like a task) is edited, the relevant application creates a
|
||||
"transaction" and applies it. This list of transactions on each object is the
|
||||
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
|
||||
things.
|
||||
|
||||
|
|
Loading…
Reference in a new issue