@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
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Summary: Ref T13658.

Test Plan: Static checks only, these are all reachable only by breaking your install in weird ways.

Maniphest Tasks: T13658

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

+31 -30
+2 -2
src/applications/config/check/PhabricatorMailSetupCheck.php
··· 12 12 } 13 13 14 14 $message = pht( 15 - 'You haven\'t configured mailers yet, so Phabricator won\'t be able '. 15 + 'You haven\'t configured mailers yet, so this server won\'t be able '. 16 16 'to send outbound mail or receive inbound mail. See the '. 17 - 'configuration setting cluster.mailers for details.'); 17 + 'configuration setting "cluster.mailers" for details.'); 18 18 19 19 $this->newIssue('cluster.mailers') 20 20 ->setName(pht('Mailers Not Configured'))
+5 -5
src/applications/config/check/PhabricatorMySQLSetupCheck.php
··· 66 66 'fit into the column), or security concerns (for example, by '. 67 67 'truncating keys or credentials).'. 68 68 "\n\n". 69 - 'Phabricator is developed and tested in "STRICT_ALL_TABLES" mode so '. 69 + 'This software is developed and tested in "STRICT_ALL_TABLES" mode so '. 70 70 'you should normally never encounter these situations, but may run '. 71 71 'into them if you interact with the database directly, run '. 72 72 'third-party code, develop extensions, or just encounter a bug in '. ··· 88 88 'they may not work in strict mode.'. 89 89 "\n\n". 90 90 'If you can not or do not want to enable "STRICT_ALL_TABLES", you '. 91 - 'can safely ignore this warning. Phabricator will work correctly '. 91 + 'can safely ignore this warning. This software will work correctly '. 92 92 'with this mode enabled or disabled.', 93 93 $host_name, 94 94 phutil_tag('pre', array(), 'sql_mode=STRICT_ALL_TABLES')); ··· 151 151 152 152 $message = pht( 153 153 "Database host \"%s\" is using the builtin stopword file for ". 154 - "building search indexes. This can make Phabricator's search ". 154 + "building search indexes. This can make the search ". 155 155 "feature less useful.\n\n". 156 156 "Stopwords are common words which are not indexed and thus can not ". 157 157 "be searched for. The default stopword file has about 500 words, ". ··· 273 273 "There are no hard-and-fast rules to setting an appropriate value, ". 274 274 "but a reasonable starting point for a standard install is something ". 275 275 "like 40%% of the total memory on the machine. For example, if you ". 276 - "have 4GB of RAM on the machine you have installed Phabricator on, ". 276 + "have 4GB of RAM on the machine you have installed this software on, ". 277 277 "you might set this value to %s.\n\n". 278 278 "You can read more about this option in the MySQL documentation to ". 279 279 "help you make a decision about how to configure it for your use ". 280 - "case. There are no concerns specific to Phabricator which make it ". 280 + "case. There are no concerns specific to this software which make it ". 281 281 "different from normal workloads with respect to this setting.\n\n". 282 282 "To adjust the setting, add something like this to your %s file (in ". 283 283 "the %s section), replacing %s with an appropriate value for your ".
+7 -7
src/applications/config/check/PhabricatorPHPConfigSetupCheck.php
··· 21 21 'REMOTE_ADDR is no longer empty.'); 22 22 23 23 $message = pht( 24 - 'No REMOTE_ADDR is available, so Phabricator cannot determine the '. 25 - 'origin address for requests. This will prevent Phabricator from '. 24 + 'No REMOTE_ADDR is available, so this server cannot determine the '. 25 + 'origin address for requests. This will prevent the software from '. 26 26 'performing important security checks. This most often means you '. 27 27 'have a mistake in your preamble script. Consult the documentation '. 28 28 '(%s) and double-check that the script is written correctly.', ··· 76 76 'with the database. You should install the newer "mysqli" extension '. 77 77 'to improve behaviors (like error handling and query timeouts).'. 78 78 "\n\n". 79 - 'Phabricator will work with the older extension, but upgrading to the '. 80 - 'newer extension is recommended.'. 79 + 'This software will work with the older extension, but upgrading to '. 80 + 'the newer extension is recommended.'. 81 81 "\n\n". 82 82 'You may be able to install the extension with a command like: %s', 83 83 ··· 96 96 $message = pht( 97 97 'PHP is currently using the older MySQL external driver instead of '. 98 98 'the newer MySQL native driver. The older driver lacks options and '. 99 - 'features (like support for query timeouts) which allow Phabricator '. 99 + 'features (like support for query timeouts) which allow this server '. 100 100 'to interact better with the database.'. 101 101 "\n\n". 102 - 'Phabricator will work with the older driver, but upgrading to the '. 102 + 'This software will work with the older driver, but upgrading to the '. 103 103 'native driver is recommended.'. 104 104 "\n\n". 105 105 'You may be able to install the native driver with a command like: %s', ··· 134 134 'and the client will comply.'. 135 135 "\n\n". 136 136 'Although it is normally difficult for an attacker to convince '. 137 - 'Phabricator to connect to a malicious MySQL server, you should '. 137 + 'this software to connect to a malicious MySQL server, you should '. 138 138 'disable this option: this capability is unnecessary and inherently '. 139 139 'dangerous.'. 140 140 "\n\n".
+4 -4
src/applications/config/check/PhabricatorPathSetupCheck.php
··· 13 13 14 14 if (!$path) { 15 15 $summary = pht( 16 - 'The environmental variable %s is empty. Phabricator will not '. 16 + 'The environmental variable %s is empty. This server will not '. 17 17 'be able to execute some commands.', 18 18 '$PATH'); 19 19 20 20 $message = pht( 21 - "The environmental variable %s is empty. Phabricator needs to execute ". 21 + "The environmental variable %s is empty. This server needs to execute ". 22 22 "some system commands, like `%s`, `%s`, `%s`, and `%s`. To execute ". 23 23 "these commands, the binaries must be available in the webserver's ". 24 - "%s. You can set additional paths in Phabricator configuration.", 24 + "%s. You can set additional paths in configuration.", 25 25 '$PATH', 26 26 'svn', 27 27 'git', ··· 120 120 ->setMessage( 121 121 pht( 122 122 "The configured PATH includes a component which is not usable. ". 123 - "Phabricator will be unable to find or execute binaries located ". 123 + "This server will be unable to find or execute binaries located ". 124 124 "here:". 125 125 "\n\n". 126 126 "%s".
+2 -2
src/applications/config/check/PhabricatorPygmentSetupCheck.php
··· 42 42 'pygmentize'); 43 43 44 44 $message = pht( 45 - 'Phabricator has %s available in %s, but the binary '. 45 + 'This server has %s available in %s, but the binary '. 46 46 'exited with an error code when run as %s. Check that it is '. 47 47 'installed correctly.', 48 48 phutil_tag('tt', array(), 'pygmentize'), ··· 64 64 'to provide advanced syntax highlighting.'); 65 65 66 66 $message = pht( 67 - 'Phabricator can highlight a few languages by default, '. 67 + 'This software can highlight a few languages by default, '. 68 68 'but installing and enabling Pygments (a third-party highlighting '. 69 69 "tool) will add syntax highlighting for many more languages. \n\n". 70 70 'For instructions on installing and enabling Pygments, see the '.
+3 -3
src/applications/config/check/PhabricatorRepositoriesSetupCheck.php
··· 45 45 'readable by the webserver.'); 46 46 $message = pht( 47 47 "The directory for local repositories (%s) does not exist, or is not ". 48 - "readable by the webserver. Phabricator uses this directory to store ". 49 - "information about repositories. If this directory does not exist, ". 50 - "create it:\n\n". 48 + "readable by the webserver. This software uses this directory to ". 49 + "store information about repositories. If this directory does not ". 50 + "exist, create it:\n\n". 51 51 "%s\n". 52 52 "If this directory exists, make it readable to the webserver. You ". 53 53 "can also edit the configuration below to use some other directory.",
+2 -2
src/applications/config/check/PhabricatorSecuritySetupCheck.php
··· 31 31 "\n\n". 32 32 'Upgrade %s to a patched version.'. 33 33 "\n\n". 34 - 'To learn more about how this issue affects Phabricator, see %s.', 34 + 'To learn more about how this issue affects this software, see %s.', 35 35 phutil_tag('tt', array(), 'bash'), 36 36 phutil_tag('tt', array(), 'bash'), 37 37 phutil_tag( ··· 61 61 'Improve security by configuring an alternate file domain.')) 62 62 ->setMessage( 63 63 pht( 64 - 'Phabricator is currently configured to serve user uploads '. 64 + 'This software is currently configured to serve user uploads '. 65 65 'directly from the same domain as other content. This is a '. 66 66 'security risk.'. 67 67 "\n\n".
+2 -2
src/applications/config/check/PhabricatorStorageSetupCheck.php
··· 83 83 $message = pht( 84 84 'When you upload a file via drag-and-drop or the API, chunks must '. 85 85 'be buffered into memory before being written to permanent '. 86 - 'storage. Phabricator needs memory available to store these '. 86 + 'storage. This server needs memory available to store these '. 87 87 'chunks while they are uploaded, but PHP is currently configured '. 88 88 'to severely limit the available memory.'. 89 89 "\n\n". ··· 97 97 "The easiest way to resolve this issue is to set %s to %s in your ". 98 98 "PHP configuration, to disable the memory limit. There is ". 99 99 "usually little or no value to using this option to limit ". 100 - "Phabricator process memory.". 100 + "process memory.". 101 101 "\n\n". 102 102 "You can also increase the limit or ignore this issue and accept ". 103 103 "that you may encounter problems uploading large files and ".
+3 -2
src/applications/config/check/PhabricatorTimezoneSetupCheck.php
··· 40 40 41 41 $message = pht( 42 42 "Your configuration fails to specify a server timezone. You can either ". 43 - "set the PHP configuration value '%s' or the Phabricator ". 44 - "configuration value '%s' to specify one.", 43 + "set the PHP configuration value '%s' or the %s configuration ". 44 + "value '%s' to specify one.", 45 45 'date.timezone', 46 + PlatformSymbols::getPlatformServerName(), 46 47 'phabricator.timezone'); 47 48 48 49 $this
+1 -1
src/applications/config/controller/settings/PhabricatorConfigEditController.php
··· 18 18 } else { 19 19 $desc = pht( 20 20 'This configuration option is unknown. It may be misspelled, '. 21 - 'or have existed in a previous version of Phabricator.'); 21 + 'or have existed in a previous version of the software.'); 22 22 } 23 23 24 24 // This may be a dead config entry, which existed in the past but no