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:
parent
4d3f0dc7c7
commit
57469db22e
10 changed files with 16 additions and 17 deletions
|
@ -67,7 +67,7 @@ browser's address bar. It will usually look something like this:
|
||||||
%s
|
%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
|
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
|
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.
|
different than this example, so the URI may not look exactly like this.
|
||||||
|
|
|
@ -56,7 +56,7 @@ final class PHUIBadgeExample extends PhabricatorUIExample {
|
||||||
$badges2 = array();
|
$badges2 = array();
|
||||||
$badges2[] = id(new PHUIBadgeView())
|
$badges2[] = id(new PHUIBadgeView())
|
||||||
->setIcon('fa-user')
|
->setIcon('fa-user')
|
||||||
->setHeader(pht('Phabricator User'))
|
->setHeader(pht('User'))
|
||||||
->setSubhead(pht('Confirmed your account.'))
|
->setSubhead(pht('Confirmed your account.'))
|
||||||
->setQuality(PhabricatorBadgesQuality::POOR)
|
->setQuality(PhabricatorBadgesQuality::POOR)
|
||||||
->setSource(pht('People (automatic)'))
|
->setSource(pht('People (automatic)'))
|
||||||
|
@ -111,7 +111,7 @@ final class PHUIBadgeExample extends PhabricatorUIExample {
|
||||||
$badges2[] = id(new PHUIBadgeView())
|
$badges2[] = id(new PHUIBadgeView())
|
||||||
->setIcon('fa-compass')
|
->setIcon('fa-compass')
|
||||||
->setHeader(pht('Lead Developer'))
|
->setHeader(pht('Lead Developer'))
|
||||||
->setSubhead(pht('Lead Developer of Phabricator'))
|
->setSubhead(pht('Lead Developer of Software'))
|
||||||
->setQuality(PhabricatorBadgesQuality::HEIRLOOM)
|
->setQuality(PhabricatorBadgesQuality::HEIRLOOM)
|
||||||
->setSource(pht('Direct Award'))
|
->setSource(pht('Direct Award'))
|
||||||
->addByline(pht('Dec 31, 1969'))
|
->addByline(pht('Dec 31, 1969'))
|
||||||
|
|
|
@ -39,7 +39,7 @@ final class PHUIHovercardUIExample extends PhabricatorUIExample {
|
||||||
$task_handle = $this->createBasicDummyHandle(
|
$task_handle = $this->createBasicDummyHandle(
|
||||||
'T123',
|
'T123',
|
||||||
ManiphestTaskPHIDType::TYPECONST,
|
ManiphestTaskPHIDType::TYPECONST,
|
||||||
pht('Improve Mobile Experience for Phabricator'));
|
pht('Improve Mobile Experience'));
|
||||||
|
|
||||||
$tag = id(new PHUITagView())
|
$tag = id(new PHUITagView())
|
||||||
->setType(PHUITagView::TYPE_STATE)
|
->setType(PHUITagView::TYPE_STATE)
|
||||||
|
|
|
@ -7,7 +7,7 @@ final class PhabricatorProjectBuiltinsExample extends PhabricatorUIExample {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDescription() {
|
public function getDescription() {
|
||||||
return pht('Builtin Project Images that ship with Phabricator.');
|
return pht('Builtin Project Images.');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCategory() {
|
public function getCategory() {
|
||||||
|
|
|
@ -42,7 +42,7 @@ abstract class PhabricatorContentSource extends Phobject {
|
||||||
} else {
|
} else {
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
pht(
|
pht(
|
||||||
'Content source type "%s" is not known to Phabricator!',
|
'Content source type "%s" is unknown.',
|
||||||
$source));
|
$source));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
10
src/infrastructure/env/PhabricatorEnv.php
vendored
10
src/infrastructure/env/PhabricatorEnv.php
vendored
|
@ -554,17 +554,17 @@ final class PhabricatorEnv extends Phobject {
|
||||||
switch ($reason) {
|
switch ($reason) {
|
||||||
case self::READONLY_MASTERLESS:
|
case self::READONLY_MASTERLESS:
|
||||||
return pht(
|
return pht(
|
||||||
'Phabricator is in read-only mode (no writable database '.
|
'This server is in read-only mode (no writable database '.
|
||||||
'is configured).');
|
'is configured).');
|
||||||
case self::READONLY_UNREACHABLE:
|
case self::READONLY_UNREACHABLE:
|
||||||
return pht(
|
return pht(
|
||||||
'Phabricator is in read-only mode (unreachable master).');
|
'This server is in read-only mode (unreachable master).');
|
||||||
case self::READONLY_SEVERED:
|
case self::READONLY_SEVERED:
|
||||||
return pht(
|
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() {
|
public static function getReadOnlyURI() {
|
||||||
|
@ -884,7 +884,7 @@ final class PhabricatorEnv extends Phobject {
|
||||||
if (!$cluster_addresses) {
|
if (!$cluster_addresses) {
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
pht(
|
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 '.
|
'Set `cluster.addresses` in the configuration to whitelist '.
|
||||||
'cluster hosts before sending requests that use a cluster '.
|
'cluster hosts before sending requests that use a cluster '.
|
||||||
'authentication mechanism.'));
|
'authentication mechanism.'));
|
||||||
|
|
|
@ -33,8 +33,7 @@ EOHELP
|
||||||
|
|
||||||
return pht(<<<EOHELP
|
return pht(<<<EOHELP
|
||||||
Data can not be exported to Excel because the PHPExcel library is not
|
Data can not be exported to Excel because the PHPExcel library is not
|
||||||
installed. This software component is required for Phabricator to create
|
installed. This software component is required to create Excel files.
|
||||||
Excel files.
|
|
||||||
|
|
||||||
You can install PHPExcel from GitHub:
|
You can install PHPExcel from GitHub:
|
||||||
|
|
||||||
|
|
|
@ -67,11 +67,11 @@ final class PhutilRemarkupEvalRule extends PhutilRemarkupRule {
|
||||||
'strings' => array(
|
'strings' => array(
|
||||||
'platform' => array(
|
'platform' => array(
|
||||||
'server' => array(
|
'server' => array(
|
||||||
'name' => pht('Phabricator'),
|
'name' => PlatformSymbols::getPlatformServerName(),
|
||||||
'path' => pht('phabricator/'),
|
'path' => pht('phabricator/'),
|
||||||
),
|
),
|
||||||
'client' => array(
|
'client' => array(
|
||||||
'name' => pht('Arcanist'),
|
'name' => PlatformSymbols::getPlatformClientName(),
|
||||||
'path' => pht('arcanist/'),
|
'path' => pht('arcanist/'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -7,7 +7,7 @@ final class PhabricatorStorageManagementDatabasesWorkflow
|
||||||
$this
|
$this
|
||||||
->setName('databases')
|
->setName('databases')
|
||||||
->setExamples('**databases** [__options__]')
|
->setExamples('**databases** [__options__]')
|
||||||
->setSynopsis(pht('List Phabricator databases.'));
|
->setSynopsis(pht('List databases.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function isReadOnlyWorkflow() {
|
protected function isReadOnlyWorkflow() {
|
||||||
|
|
|
@ -22,7 +22,7 @@ final class PhabricatorHash extends Phobject {
|
||||||
if (!$key) {
|
if (!$key) {
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
pht(
|
pht(
|
||||||
"Set a '%s' in your Phabricator configuration!",
|
"Set a '%s' in your configuration!",
|
||||||
'security.hmac-key'));
|
'security.hmac-key'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue