mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-29 10:12:41 +01:00
pht
ize some strings
Summary: Self-explanatory. Test Plan: Eyeball it. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11206
This commit is contained in:
parent
d477df00eb
commit
0b51f4d7c9
1 changed files with 28 additions and 21 deletions
|
@ -267,34 +267,37 @@ abstract class ArcanistExternalLinter extends ArcanistFutureLinter {
|
||||||
if (!Filesystem::binaryExists($interpreter)) {
|
if (!Filesystem::binaryExists($interpreter)) {
|
||||||
throw new ArcanistUsageException(
|
throw new ArcanistUsageException(
|
||||||
pht(
|
pht(
|
||||||
'Unable to locate interpreter "%s" to run linter %s. You may '.
|
'Unable to locate interpreter "%s" to run linter %s. You may need '.
|
||||||
'need to install the interpreter, or adjust your linter '.
|
'to install the interpreter, or adjust your linter configuration.',
|
||||||
'configuration.'.
|
|
||||||
"\nTO INSTALL: %s",
|
|
||||||
$interpreter,
|
$interpreter,
|
||||||
get_class($this),
|
get_class($this)));
|
||||||
$this->getInstallInstructions()));
|
|
||||||
}
|
}
|
||||||
if (!Filesystem::pathExists($binary)) {
|
if (!Filesystem::pathExists($binary)) {
|
||||||
throw new ArcanistUsageException(
|
throw new ArcanistUsageException(
|
||||||
pht(
|
sprintf(
|
||||||
'Unable to locate script "%s" to run linter %s. You may need '.
|
"%s\n%s",
|
||||||
'to install the script, or adjust your linter configuration. '.
|
pht(
|
||||||
"\nTO INSTALL: %s",
|
'Unable to locate script "%s" to run linter %s. You may need '.
|
||||||
$binary,
|
'to install the script, or adjust your linter configuration.',
|
||||||
get_class($this),
|
$binary,
|
||||||
$this->getInstallInstructions()));
|
get_class($this)),
|
||||||
|
pht(
|
||||||
|
'TO INSTALL: %s',
|
||||||
|
$this->getInstallInstructions())));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!Filesystem::binaryExists($binary)) {
|
if (!Filesystem::binaryExists($binary)) {
|
||||||
throw new ArcanistUsageException(
|
throw new ArcanistUsageException(
|
||||||
pht(
|
sprintf(
|
||||||
'Unable to locate binary "%s" to run linter %s. You may need '.
|
"%s\n%s",
|
||||||
'to install the binary, or adjust your linter configuration. '.
|
pht(
|
||||||
"\nTO INSTALL: %s",
|
'Unable to locate binary "%s" to run linter %s. You may need '.
|
||||||
$binary,
|
'to install the binary, or adjust your linter configuration.',
|
||||||
get_class($this),
|
$binary,
|
||||||
$this->getInstallInstructions()));
|
get_class($this)),
|
||||||
|
pht(
|
||||||
|
'TO INSTALL: %s',
|
||||||
|
$this->getInstallInstructions())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -415,7 +418,11 @@ abstract class ArcanistExternalLinter extends ArcanistFutureLinter {
|
||||||
$future->resolvex();
|
$future->resolvex();
|
||||||
} else {
|
} else {
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
"Linter failed to parse output!\n\n{$stdout}\n\n{$stderr}");
|
sprintf(
|
||||||
|
"%s\n\nSTDOUT\n%s\n\nSTDERR\n%s",
|
||||||
|
pht('Linter failed to parse output!'),
|
||||||
|
$stdout,
|
||||||
|
$stderr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue