1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +01:00

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

Summary: Ref T13658.

Test Plan: Static checks only.

Maniphest Tasks: T13658

Differential Revision: https://secure.phabricator.com/D21791
This commit is contained in:
epriestley 2022-04-25 16:30:02 -07:00
parent bc7f87591f
commit 27b512e284
7 changed files with 21 additions and 18 deletions

View file

@ -47,9 +47,10 @@ final class PhabricatorStorageManagementDestroyWorkflow
} else { } else {
$warning = pht( $warning = pht(
'Are you completely sure you really want to permanently destroy '. 'Are you completely sure you really want to permanently destroy '.
'all storage for Phabricator data on host "%s"? This operation '. 'all storage for %s data on host "%s"? This operation '.
'can not be undone and your data will not be recoverable if '. 'can not be undone and your data will not be recoverable if '.
'you proceed.', 'you proceed.',
PlatformSymbols::getPlatformServerName(),
$host_display); $host_display);
echo tsprintf( echo tsprintf(

View file

@ -161,7 +161,7 @@ final class PhabricatorStorageManagementDumpWorkflow
throw new PhutilArgumentUsageException( throw new PhutilArgumentUsageException(
pht( pht(
'Database "%s" is unknown. This script can only dump '. 'Database "%s" is unknown. This script can only dump '.
'databases known to the current version of Phabricator. '. 'databases known to the current version of this software. '.
'Valid databases are: %s.', 'Valid databases are: %s.',
$filter, $filter,
implode(', ', array_keys($internal_names)))); implode(', ', array_keys($internal_names))));

View file

@ -10,7 +10,7 @@ final class PhabricatorStorageManagementQuickstartWorkflow
->setSynopsis( ->setSynopsis(
pht( pht(
'Generate a new quickstart database dump. This command is mostly '. 'Generate a new quickstart database dump. This command is mostly '.
'useful when developing Phabricator.')) 'useful for internal development.'))
->setArguments( ->setArguments(
array( array(
array( array(

View file

@ -46,8 +46,8 @@ final class PhabricatorStorageManagementUpgradeWorkflow
phutil_console_wrap( phutil_console_wrap(
pht( pht(
'Before running storage upgrades, you should take down the '. 'Before running storage upgrades, you should take down the '.
'Phabricator web interface and stop any running Phabricator '. 'web interface and stop any running daemons (you can disable '.
'daemons (you can disable this warning with %s).', 'this warning with %s).',
'--force'))); '--force')));
if (!phutil_console_confirm(pht('Are you ready to continue?'))) { if (!phutil_console_confirm(pht('Are you ready to continue?'))) {

View file

@ -47,7 +47,7 @@ abstract class PhabricatorStorageManagementWorkflow
throw new PhutilArgumentUsageException( throw new PhutilArgumentUsageException(
pht( pht(
'Phabricator is configured in cluster mode, with multiple database '. 'This server is configured in cluster mode, with multiple database '.
'hosts. Use "--host" to specify which host you want to operate on.')); 'hosts. Use "--host" to specify which host you want to operate on.'));
} }
@ -98,7 +98,7 @@ abstract class PhabricatorStorageManagementWorkflow
} else { } else {
throw new PhutilArgumentUsageException( throw new PhutilArgumentUsageException(
pht( pht(
'Phabricator is currently in read-only mode. Use --force to '. 'This server is currently in read-only mode. Use --force to '.
'override this mode.')); 'override this mode.'));
} }
} }
@ -189,7 +189,7 @@ abstract class PhabricatorStorageManagementWorkflow
"You can exit this workflow, update MySQL now, and then run this ". "You can exit this workflow, update MySQL now, and then run this ".
"workflow again. This is recommended, but may cause a lot of downtime ". "workflow again. This is recommended, but may cause a lot of downtime ".
"right now.\n\n". "right now.\n\n".
"You can exit this workflow, continue using Phabricator without ". "You can exit this workflow, continue using this software without ".
"applying adjustments, update MySQL at a later date, and then run ". "applying adjustments, update MySQL at a later date, and then run ".
"this workflow again. This is also a good approach, and will let you ". "this workflow again. This is also a good approach, and will let you ".
"delay downtime until later.\n\n". "delay downtime until later.\n\n".
@ -826,8 +826,8 @@ abstract class PhabricatorStorageManagementWorkflow
$message = array(); $message = array();
if ($all_surplus) { if ($all_surplus) {
$message[] = pht( $message[] = pht(
'You have surplus schemata (extra tables or columns which Phabricator '. 'You have surplus schemata (extra tables or columns which this '.
'does not expect). For information on resolving these '. 'software does not expect). For information on resolving these '.
'issues, see the "Surplus Schemata" section in the "Managing Storage '. 'issues, see the "Surplus Schemata" section in the "Managing Storage '.
'Adjustments" article in the documentation.'); 'Adjustments" article in the documentation.');
} else if ($all_access) { } else if ($all_access) {
@ -844,27 +844,29 @@ abstract class PhabricatorStorageManagementWorkflow
$message[] = pht( $message[] = pht(
'Some of these errors are caused by access control problems. '. 'Some of these errors are caused by access control problems. '.
'The user you are connecting with does not have permission to see '. 'The user you are connecting with does not have permission to see '.
'all of the database or tables that Phabricator uses. You need to '. 'all of the database or tables that this software uses. You need to '.
'GRANT the user more permission, or use a different user.'); 'GRANT the user more permission, or use a different user.');
} }
if ($any_surplus) { if ($any_surplus) {
$message[] = pht( $message[] = pht(
'Some of these errors are caused by surplus schemata (extra '. 'Some of these errors are caused by surplus schemata (extra '.
'tables or columns which Phabricator does not expect). These are '. 'tables or columns which this software does not expect). These are '.
'not serious. For information on resolving these issues, see the '. 'not serious. For information on resolving these issues, see the '.
'"Surplus Schemata" section in the "Managing Storage Adjustments" '. '"Surplus Schemata" section in the "Managing Storage Adjustments" '.
'article in the documentation.'); 'article in the documentation.');
} }
$message[] = pht( $message[] = pht(
'If you are not developing Phabricator itself, report this issue to '. 'If you are not developing %s itself, report this issue to '.
'the upstream.'); 'the upstream.',
PlatformSymbols::getPlatformServerName());
$message[] = pht( $message[] = pht(
'If you are developing Phabricator, these errors usually indicate '. 'If you are developing %s, these errors usually indicate '.
'that your schema specifications do not agree with the schemata your '. 'that your schema specifications do not agree with the schemata your '.
'code actually builds.'); 'code actually builds.',
PlatformSymbols::getPlatformServerName());
} }
$message = implode("\n\n", $message); $message = implode("\n\n", $message);

View file

@ -307,7 +307,7 @@ abstract class PhabricatorPasswordHasher extends Phobject {
throw new PhabricatorPasswordHasherUnavailableException( throw new PhabricatorPasswordHasherUnavailableException(
pht( pht(
'Attempting to compare a password saved with the "%s" hash. No such '. 'Attempting to compare a password saved with the "%s" hash. No such '.
'hasher is known to Phabricator.', 'hasher is known.',
$name)); $name));
} }

View file

@ -276,7 +276,7 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView
'doc_name' => pht('See Documentation'), 'doc_name' => pht('See Documentation'),
'doc_href' => $doc_href, 'doc_href' => $doc_href,
'message' => pht( 'message' => pht(
'Phabricator thinks you are using %s, but your '. 'This server thinks you are using %s, but your '.
'client is convinced that it is using %s. This is a serious '. 'client is convinced that it is using %s. This is a serious '.
'misconfiguration with subtle, but significant, consequences.', 'misconfiguration with subtle, but significant, consequences.',
$server_protocol, $client_protocol), $server_protocol, $client_protocol),