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

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

Summary: Ref T13658.

Test Plan:
This test plan is non-exhaustive.

  - Ran `bin/storage databases`.
  - Viewed Badges UI exmaples page.
  - Used eval rule for `strings.platform.server.name`, got "Phabricator".

Maniphest Tasks: T13658

Differential Revision: https://secure.phabricator.com/D21773
This commit is contained in:
epriestley 2022-04-25 12:13:50 -07:00
parent 4d3f0dc7c7
commit 57469db22e
10 changed files with 16 additions and 17 deletions

View file

@ -67,7 +67,7 @@ browser's address bar. It will usually look something like this:
%s
```
However, `your.install.com` will be the domain where your copy of Phabricator
However, `your.install.com` will be the domain where your copy of this software
is installed, and `application/` will be the URI for an application. Some
applications have multiple forms for creating objects or URIs that look a little
different than this example, so the URI may not look exactly like this.

View file

@ -56,7 +56,7 @@ final class PHUIBadgeExample extends PhabricatorUIExample {
$badges2 = array();
$badges2[] = id(new PHUIBadgeView())
->setIcon('fa-user')
->setHeader(pht('Phabricator User'))
->setHeader(pht('User'))
->setSubhead(pht('Confirmed your account.'))
->setQuality(PhabricatorBadgesQuality::POOR)
->setSource(pht('People (automatic)'))
@ -111,7 +111,7 @@ final class PHUIBadgeExample extends PhabricatorUIExample {
$badges2[] = id(new PHUIBadgeView())
->setIcon('fa-compass')
->setHeader(pht('Lead Developer'))
->setSubhead(pht('Lead Developer of Phabricator'))
->setSubhead(pht('Lead Developer of Software'))
->setQuality(PhabricatorBadgesQuality::HEIRLOOM)
->setSource(pht('Direct Award'))
->addByline(pht('Dec 31, 1969'))

View file

@ -39,7 +39,7 @@ final class PHUIHovercardUIExample extends PhabricatorUIExample {
$task_handle = $this->createBasicDummyHandle(
'T123',
ManiphestTaskPHIDType::TYPECONST,
pht('Improve Mobile Experience for Phabricator'));
pht('Improve Mobile Experience'));
$tag = id(new PHUITagView())
->setType(PHUITagView::TYPE_STATE)

View file

@ -7,7 +7,7 @@ final class PhabricatorProjectBuiltinsExample extends PhabricatorUIExample {
}
public function getDescription() {
return pht('Builtin Project Images that ship with Phabricator.');
return pht('Builtin Project Images.');
}
public function getCategory() {

View file

@ -42,7 +42,7 @@ abstract class PhabricatorContentSource extends Phobject {
} else {
throw new Exception(
pht(
'Content source type "%s" is not known to Phabricator!',
'Content source type "%s" is unknown.',
$source));
}
}

View file

@ -554,17 +554,17 @@ final class PhabricatorEnv extends Phobject {
switch ($reason) {
case self::READONLY_MASTERLESS:
return pht(
'Phabricator is in read-only mode (no writable database '.
'This server is in read-only mode (no writable database '.
'is configured).');
case self::READONLY_UNREACHABLE:
return pht(
'Phabricator is in read-only mode (unreachable master).');
'This server is in read-only mode (unreachable master).');
case self::READONLY_SEVERED:
return pht(
'Phabricator is in read-only mode (major interruption).');
'This server is in read-only mode (major interruption).');
}
return pht('Phabricator is in read-only mode.');
return pht('This server is in read-only mode.');
}
public static function getReadOnlyURI() {
@ -884,7 +884,7 @@ final class PhabricatorEnv extends Phobject {
if (!$cluster_addresses) {
throw new Exception(
pht(
'Phabricator is not configured to serve cluster requests. '.
'This server is not configured to serve cluster requests. '.
'Set `cluster.addresses` in the configuration to whitelist '.
'cluster hosts before sending requests that use a cluster '.
'authentication mechanism.'));

View file

@ -33,8 +33,7 @@ EOHELP
return pht(<<<EOHELP
Data can not be exported to Excel because the PHPExcel library is not
installed. This software component is required for Phabricator to create
Excel files.
installed. This software component is required to create Excel files.
You can install PHPExcel from GitHub:

View file

@ -67,11 +67,11 @@ final class PhutilRemarkupEvalRule extends PhutilRemarkupRule {
'strings' => array(
'platform' => array(
'server' => array(
'name' => pht('Phabricator'),
'name' => PlatformSymbols::getPlatformServerName(),
'path' => pht('phabricator/'),
),
'client' => array(
'name' => pht('Arcanist'),
'name' => PlatformSymbols::getPlatformClientName(),
'path' => pht('arcanist/'),
),
),

View file

@ -7,7 +7,7 @@ final class PhabricatorStorageManagementDatabasesWorkflow
$this
->setName('databases')
->setExamples('**databases** [__options__]')
->setSynopsis(pht('List Phabricator databases.'));
->setSynopsis(pht('List databases.'));
}
protected function isReadOnlyWorkflow() {

View file

@ -22,7 +22,7 @@ final class PhabricatorHash extends Phobject {
if (!$key) {
throw new Exception(
pht(
"Set a '%s' in your Phabricator configuration!",
"Set a '%s' in your configuration!",
'security.hmac-key'));
}