@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

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

Summary: Ref T13658.

Test Plan: Static checks only.

Maniphest Tasks: T13658

Differential Revision: https://secure.phabricator.com/D21784

+31 -26
+2 -2
src/applications/diffusion/controller/DiffusionRepositoryEditUpdateController.php
··· 45 45 ->setTitle(pht('Update Repository Now')) 46 46 ->appendParagraph( 47 47 pht( 48 - 'Normally, Phabricator automatically updates repositories '. 48 + 'Normally, repositories are automatically updated '. 49 49 'based on how much time has elapsed since the last commit. '. 50 50 'This helps reduce load if you have a large number of mostly '. 51 51 'inactive repositories, which is common.')) ··· 57 57 'repository.')) 58 58 ->appendParagraph( 59 59 pht( 60 - 'To learn more about how Phabricator updates repositories, '. 60 + 'To learn more about how repositories are updated, '. 61 61 'read %s in the documentation.', 62 62 $doc_link)) 63 63 ->addCancelButton($panel_uri)
+4 -4
src/applications/diffusion/controller/DiffusionRepositoryURICredentialController.php
··· 38 38 ->setTitle(pht('Builtin URIs Do Not Use Credentials')) 39 39 ->appendParagraph( 40 40 pht( 41 - 'You can not set a credential for builtin URIs which Phabricator '. 42 - 'hosts and serves. Phabricator does not fetch from these URIs or '. 43 - 'push to these URIs, and does not need credentials to '. 44 - 'authenticate any activity against them.')) 41 + 'You can not set a credential for builtin URIs which this '. 42 + 'server hosts. These URIs are not fetched from or pushed to, '. 43 + 'and credentials are not required to authenticate any '. 44 + 'activity against them.')) 45 45 ->addCancelButton($view_uri); 46 46 } 47 47
+1 -1
src/applications/diffusion/controller/DiffusionServeController.php
··· 421 421 $result = new PhabricatorVCSResponse( 422 422 500, 423 423 pht( 424 - 'Phabricator does not support HTTP access to Subversion '. 424 + 'This server does not support HTTP access to Subversion '. 425 425 'repositories.')); 426 426 break; 427 427 default:
+3 -3
src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php
··· 217 217 $permanent_value = $object->getPermanentRefRules(); 218 218 219 219 $automation_instructions = pht( 220 - "Configure **Repository Automation** to allow Phabricator to ". 220 + "Configure **Repository Automation** to allow this server to ". 221 221 "write to this repository.". 222 222 "\n\n". 223 223 "IMPORTANT: This feature is new, experimental, and not supported. ". ··· 234 234 235 235 $subpath_instructions = pht( 236 236 'If you want to import only part of a repository, like `trunk/`, '. 237 - 'you can set a path in **Import Only**. Phabricator will ignore '. 237 + 'you can set a path in **Import Only**. The import process will ignore '. 238 238 'commits which do not affect this path.'); 239 239 240 240 $filesize_warning = null; ··· 256 256 $track_instructions = pht( 257 257 'WARNING: The "Track Only" feature is deprecated. Use "Fetch Refs" '. 258 258 'and "Permanent Refs" instead. This feature will be removed in a '. 259 - 'future version of Phabricator.'); 259 + 'future version of this software.'); 260 260 261 261 return array( 262 262 id(new PhabricatorSelectEditField())
+1 -1
src/applications/diffusion/panel/DiffusionSetPasswordSettingsPanel.php
··· 114 114 ->setUser($viewer) 115 115 ->appendRemarkupInstructions( 116 116 pht( 117 - 'To access repositories hosted by Phabricator over HTTP, you must '. 117 + 'To access repositories hosted on this server over HTTP, you must '. 118 118 'set a version control password. This password should be unique.'. 119 119 "\n\n". 120 120 "This password applies to all repositories available over ".
+4 -3
src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
··· 273 273 throw new Exception( 274 274 pht( 275 275 'Repository "%s" exists on more than one device, but no device '. 276 - 'has any repository version information. Phabricator can not '. 277 - 'guess which copy of the existing data is authoritative. Promote '. 278 - 'a device or see "Ambiguous Leaders" in the documentation.', 276 + 'has any repository version information. There is no way for the '. 277 + 'software to determine which copy of the existing data is '. 278 + 'authoritative. Promote a device or see "Ambiguous Leaders" in '. 279 + 'the documentation.', 279 280 $repository->getDisplayName())); 280 281 } 281 282
+1 -1
src/applications/diffusion/request/DiffusionRequest.php
··· 563 563 throw new DiffusionSetupException( 564 564 pht( 565 565 'The working copy for this repository ("%s") has not been cloned yet '. 566 - 'on this machine ("%s"). Make sure you havestarted the Phabricator '. 566 + 'on this machine ("%s"). Make sure you have started the '. 567 567 'daemons. If this problem persists for longer than a clone should '. 568 568 'take, check the daemon logs (in the Daemon Console) to see if there '. 569 569 'were errors cloning the repository. Consult the "Diffusion User '.
+1 -1
src/applications/diffusion/ssh/DiffusionSSHWorkflow.php
··· 117 117 throw new Exception( 118 118 pht( 119 119 'Unable to determine the username to connect with when trying '. 120 - 'to proxy an SSH request within the Phabricator cluster.')); 120 + 'to proxy an SSH request within the cluster.')); 121 121 } 122 122 123 123 $port = $uri->getPort();
+9 -7
src/applications/diviner/controller/DivinerMainController.php
··· 48 48 $document->appendChild($list); 49 49 } else { 50 50 $text = pht( 51 - "(NOTE) **Looking for Phabricator documentation?** ". 52 - "If you're looking for help and information about Phabricator, ". 51 + "(NOTE) **Looking for documentation?** ". 52 + "If you're looking for help and information about %s, ". 53 53 "you can [[https://secure.phabricator.com/diviner/ | ". 54 - "browse the public Phabricator documentation]] on the live site.\n\n". 55 - "Diviner is the documentation generator used to build the ". 56 - "Phabricator documentation.\n\n". 54 + "browse the public %s documentation]] on the live site.\n\n". 55 + "Diviner is the documentation generator used to build this ". 56 + "documentation.\n\n". 57 57 "You haven't generated any Diviner documentation books yet, so ". 58 58 "there's nothing to show here. If you'd like to generate your own ". 59 - "local copy of the Phabricator documentation and have it appear ". 59 + "local copy of the documentation and have it appear ". 60 60 "here, run this command:\n\n". 61 61 " %s\n\n", 62 - 'phabricator/ $ ./bin/diviner generate'); 62 + PlatformSymbols::getPlatformServerName(), 63 + PlatformSymbols::getPlatformServerName(), 64 + '$ ./bin/diviner generate'); 63 65 64 66 $text = new PHUIRemarkupView($viewer, $text); 65 67 $document->appendChild($text);
+5 -3
src/applications/doorkeeper/option/PhabricatorAsanaConfigOptions.php
··· 33 33 ->setSummary(pht('Optional Asana projects to use as application tags.')) 34 34 ->setDescription( 35 35 pht( 36 - 'When Phabricator creates tasks in Asana, it can add the tasks '. 36 + 'When %s creates tasks in Asana, it can add the tasks '. 37 37 'to Asana projects based on which application the corresponding '. 38 - 'object in Phabricator comes from. For example, you can add code '. 38 + 'object in %s comes from. For example, you can add code '. 39 39 'reviews in Asana to a "Differential" project.'. 40 40 "\n\n". 41 - 'NOTE: This feature is new and experimental.')), 41 + 'NOTE: This feature is new and experimental.', 42 + PlatformSymbols::getPlatformServerName(), 43 + PlatformSymbols::getPlatformServerName())), 42 44 ); 43 45 } 44 46