mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Remove product literal strings in "pht()", part 13
Summary: Ref T13658. Test Plan: This is non-exhaustive. - Started a JIRA auth provider creation workflow. - Same for LDAP. Maniphest Tasks: T13658 Differential Revision: https://secure.phabricator.com/D21779
This commit is contained in:
parent
4d70e9d400
commit
0eddc1a62c
10 changed files with 23 additions and 24 deletions
|
@ -9,8 +9,7 @@ final class PhabricatorAuthManagementRecoverWorkflow
|
||||||
->setExamples('**recover** __username__')
|
->setExamples('**recover** __username__')
|
||||||
->setSynopsis(
|
->setSynopsis(
|
||||||
pht(
|
pht(
|
||||||
'Recover access to an account if you have locked yourself out '.
|
'Recover access to an account if you have locked yourself out.'))
|
||||||
'of Phabricator.'))
|
|
||||||
->setArguments(
|
->setArguments(
|
||||||
array(
|
array(
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorAmazonAuthProvider
|
||||||
$https_note = null;
|
$https_note = null;
|
||||||
if ($uri->getProtocol() !== 'https') {
|
if ($uri->getProtocol() !== 'https') {
|
||||||
$https_note = pht(
|
$https_note = pht(
|
||||||
'NOTE: Amazon **requires** HTTPS, but your Phabricator install does '.
|
'NOTE: Amazon **requires** HTTPS, but this service does '.
|
||||||
'not use HTTPS. **You will not be able to add Amazon as an '.
|
'not use HTTPS. **You will not be able to add Amazon as an '.
|
||||||
'authentication provider until you configure HTTPS on this install**.');
|
'authentication provider until you configure HTTPS on this install**.');
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ final class PhabricatorGitHubAuthProvider
|
||||||
"You should use these settings in your application:".
|
"You should use these settings in your application:".
|
||||||
"\n\n".
|
"\n\n".
|
||||||
" - **URL:** Set this to your full domain with protocol. For this ".
|
" - **URL:** Set this to your full domain with protocol. For this ".
|
||||||
" Phabricator install, the correct value is: `%s`\n".
|
" server, the correct value is: `%s`\n".
|
||||||
" - **Callback URL**: Set this to: `%s`\n".
|
" - **Callback URL**: Set this to: `%s`\n".
|
||||||
"\n\n".
|
"\n\n".
|
||||||
"Once you've created an application, copy the **Client ID** and ".
|
"Once you've created an application, copy the **Client ID** and ".
|
||||||
|
|
|
@ -31,7 +31,7 @@ final class PhabricatorJIRAAuthProvider
|
||||||
"settings to create an application:\n\n".
|
"settings to create an application:\n\n".
|
||||||
" - **Server URL**: `%s`\n".
|
" - **Server URL**: `%s`\n".
|
||||||
" - Then, click **Next**. On the second page:\n".
|
" - Then, click **Next**. On the second page:\n".
|
||||||
" - **Application Name**: `Phabricator`\n".
|
" - **Application Name**: `%s`\n".
|
||||||
" - **Application Type**: `Generic Application`\n".
|
" - **Application Type**: `Generic Application`\n".
|
||||||
" - Then, click **Create**.\n\n".
|
" - Then, click **Create**.\n\n".
|
||||||
"**Configure Your Application**: Find the application you just ".
|
"**Configure Your Application**: Find the application you just ".
|
||||||
|
@ -41,13 +41,15 @@ final class PhabricatorJIRAAuthProvider
|
||||||
"settings:\n\n".
|
"settings:\n\n".
|
||||||
" - **Consumer Key**: Set this to the \"Consumer Key\" value in the ".
|
" - **Consumer Key**: Set this to the \"Consumer Key\" value in the ".
|
||||||
"form above.\n".
|
"form above.\n".
|
||||||
" - **Consumer Name**: `Phabricator`\n".
|
" - **Consumer Name**: `%s`\n".
|
||||||
" - **Public Key**: Set this to the \"Public Key\" value in the ".
|
" - **Public Key**: Set this to the \"Public Key\" value in the ".
|
||||||
"form above.\n".
|
"form above.\n".
|
||||||
" - **Consumer Callback URL**: `%s`\n".
|
" - **Consumer Callback URL**: `%s`\n".
|
||||||
"Click **Save** in JIRA. Authentication should now be configured, ".
|
"Click **Save** in JIRA. Authentication should now be configured, ".
|
||||||
"and this provider should work correctly.",
|
"and this provider should work correctly.",
|
||||||
PhabricatorEnv::getProductionURI('/'),
|
PhabricatorEnv::getProductionURI('/'),
|
||||||
|
PlatformSymbols::getPlatformServerName(),
|
||||||
|
PlatformSymbols::getPlatformServerName(),
|
||||||
$login_uri);
|
$login_uri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -169,7 +171,7 @@ final class PhabricatorJIRAAuthProvider
|
||||||
"The PHP 'openssl' extension is not installed. You must install ".
|
"The PHP 'openssl' extension is not installed. You must install ".
|
||||||
"this extension in order to add a JIRA authentication provider, ".
|
"this extension in order to add a JIRA authentication provider, ".
|
||||||
"because JIRA OAuth requests use the RSA-SHA1 signing algorithm. ".
|
"because JIRA OAuth requests use the RSA-SHA1 signing algorithm. ".
|
||||||
"Install the 'openssl' extension, restart Phabricator, and try ".
|
"Install the 'openssl' extension, restart everything, and try ".
|
||||||
"again."));
|
"again."));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -198,8 +200,8 @@ final class PhabricatorJIRAAuthProvider
|
||||||
->appendRemarkupInstructions(
|
->appendRemarkupInstructions(
|
||||||
pht(
|
pht(
|
||||||
"**JIRA Instance Name**\n\n".
|
"**JIRA Instance Name**\n\n".
|
||||||
"Choose a permanent name for this instance of JIRA. Phabricator ".
|
"Choose a permanent name for this instance of JIRA. This name is ".
|
||||||
"uses this name internally to keep track of this instance of ".
|
"used internally to keep track of this particular instance of ".
|
||||||
"JIRA, in case the URL changes later.\n\n".
|
"JIRA, in case the URL changes later.\n\n".
|
||||||
"Use lowercase letters, digits, and period. For example, ".
|
"Use lowercase letters, digits, and period. For example, ".
|
||||||
"`jira`, `jira.mycompany` or `jira.engineering` are reasonable ".
|
"`jira`, `jira.mycompany` or `jira.engineering` are reasonable ".
|
||||||
|
@ -281,8 +283,7 @@ final class PhabricatorJIRAAuthProvider
|
||||||
new PHUIRemarkupView(
|
new PHUIRemarkupView(
|
||||||
$viewer,
|
$viewer,
|
||||||
pht(
|
pht(
|
||||||
'**Post a comment** in the JIRA task, similar to the '.
|
'**Post a comment** in the JIRA task.')),
|
||||||
'emails Phabricator sends.')),
|
|
||||||
$this->shouldCreateJIRAComment()));
|
$this->shouldCreateJIRAComment()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider {
|
||||||
public function getDescriptionForCreate() {
|
public function getDescriptionForCreate() {
|
||||||
return pht(
|
return pht(
|
||||||
'Configure a connection to an LDAP server so that users can use their '.
|
'Configure a connection to an LDAP server so that users can use their '.
|
||||||
'LDAP credentials to log in to Phabricator.');
|
'LDAP credentials to log in.');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDefaultProviderConfig() {
|
public function getDefaultProviderConfig() {
|
||||||
|
@ -312,8 +312,8 @@ final class PhabricatorLDAPAuthProvider extends PhabricatorAuthProvider {
|
||||||
|
|
||||||
$instructions = array(
|
$instructions = array(
|
||||||
self::KEY_SEARCH_ATTRIBUTES => pht(
|
self::KEY_SEARCH_ATTRIBUTES => pht(
|
||||||
"When a user types their LDAP username and password into Phabricator, ".
|
"When a user provides their LDAP username and password, this ".
|
||||||
"Phabricator can either bind to LDAP with those credentials directly ".
|
"software can either bind to LDAP with those credentials directly ".
|
||||||
"(which is simpler, but not as powerful) or bind to LDAP with ".
|
"(which is simpler, but not as powerful) or bind to LDAP with ".
|
||||||
"anonymous credentials, then search for record matching the supplied ".
|
"anonymous credentials, then search for record matching the supplied ".
|
||||||
"credentials (which is more complicated, but more powerful).\n\n".
|
"credentials (which is more complicated, but more powerful).\n\n".
|
||||||
|
|
|
@ -19,7 +19,7 @@ final class PhabricatorWordPressAuthProvider
|
||||||
"You should use these settings in your application:".
|
"You should use these settings in your application:".
|
||||||
"\n\n".
|
"\n\n".
|
||||||
" - **URL:** Set this to your full domain with protocol. For this ".
|
" - **URL:** Set this to your full domain with protocol. For this ".
|
||||||
" Phabricator install, the correct value is: `%s`\n".
|
" server, the correct value is: `%s`\n".
|
||||||
" - **Redirect URL**: Set this to: `%s`\n".
|
" - **Redirect URL**: Set this to: `%s`\n".
|
||||||
"\n\n".
|
"\n\n".
|
||||||
"Once you've created an application, copy the **Client ID** and ".
|
"Once you've created an application, copy the **Client ID** and ".
|
||||||
|
|
|
@ -556,7 +556,7 @@ abstract class PhabricatorApplication
|
||||||
case PhabricatorPolicyCapability::CAN_VIEW:
|
case PhabricatorPolicyCapability::CAN_VIEW:
|
||||||
if (!$this->canUninstall()) {
|
if (!$this->canUninstall()) {
|
||||||
return pht(
|
return pht(
|
||||||
'This application is required for Phabricator to operate, so all '.
|
'This application is required, so all '.
|
||||||
'users must have access to it.');
|
'users must have access to it.');
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -96,8 +96,8 @@ abstract class PhabricatorCacheSpec extends Phobject {
|
||||||
$summary = pht('Enabling APC/APCu will improve performance.');
|
$summary = pht('Enabling APC/APCu will improve performance.');
|
||||||
$message = pht(
|
$message = pht(
|
||||||
'The APC or APCu PHP extensions are installed, but not enabled in your '.
|
'The APC or APCu PHP extensions are installed, but not enabled in your '.
|
||||||
'PHP configuration. Enabling these extensions will improve Phabricator '.
|
'PHP configuration. Enabling these extensions will improve performance. '.
|
||||||
'performance. Edit the "%s" setting to enable these extensions.',
|
'Edit the "%s" setting to enable these extensions.',
|
||||||
'apc.enabled');
|
'apc.enabled');
|
||||||
|
|
||||||
return $this
|
return $this
|
||||||
|
|
|
@ -70,7 +70,7 @@ final class PhabricatorDataCacheSpec extends PhabricatorCacheSpec {
|
||||||
if (version_compare(phpversion(), '5.5', '>=')) {
|
if (version_compare(phpversion(), '5.5', '>=')) {
|
||||||
$message = pht(
|
$message = pht(
|
||||||
'Installing the "APCu" PHP extension will improve performance. '.
|
'Installing the "APCu" PHP extension will improve performance. '.
|
||||||
'This extension is strongly recommended. Without it, Phabricator '.
|
'This extension is strongly recommended. Without it, this software '.
|
||||||
'must rely on a very inefficient disk-based cache.');
|
'must rely on a very inefficient disk-based cache.');
|
||||||
|
|
||||||
$this
|
$this
|
||||||
|
|
|
@ -85,9 +85,9 @@ final class PhabricatorOpcodeCacheSpec extends PhabricatorCacheSpec {
|
||||||
|
|
||||||
$message = pht(
|
$message = pht(
|
||||||
'The "%s" setting is currently disabled in your PHP configuration, '.
|
'The "%s" setting is currently disabled in your PHP configuration, '.
|
||||||
'but Phabricator is running in development mode. This option should '.
|
'but this software is running in development mode. This option '.
|
||||||
'normally be enabled in development so you do not need to restart '.
|
'should normally be enabled in development so you do not need to '.
|
||||||
'anything after making changes to the code.',
|
'restart anything after making changes to the code.',
|
||||||
'apc.stat');
|
'apc.stat');
|
||||||
|
|
||||||
$this
|
$this
|
||||||
|
@ -174,8 +174,7 @@ final class PhabricatorOpcodeCacheSpec extends PhabricatorCacheSpec {
|
||||||
$message = pht(
|
$message = pht(
|
||||||
'The PHP "Zend OPcache" extension is installed, but not enabled in '.
|
'The PHP "Zend OPcache" extension is installed, but not enabled in '.
|
||||||
'your PHP configuration. Enabling it will dramatically improve '.
|
'your PHP configuration. Enabling it will dramatically improve '.
|
||||||
'Phabricator performance. Edit the "%s" setting to '.
|
'performance. Edit the "%s" setting to enable the extension.',
|
||||||
'enable the extension.',
|
|
||||||
'opcache.enable');
|
'opcache.enable');
|
||||||
|
|
||||||
$this->newIssue('extension.opcache.enable')
|
$this->newIssue('extension.opcache.enable')
|
||||||
|
|
Loading…
Reference in a new issue