Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15375062
D11503.id27662.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11503.id27662.diff
View Options
diff --git a/src/lint/engine/ArcanistSingleLintEngine.php b/src/lint/engine/ArcanistSingleLintEngine.php
--- a/src/lint/engine/ArcanistSingleLintEngine.php
+++ b/src/lint/engine/ArcanistSingleLintEngine.php
@@ -18,19 +18,28 @@
if (!$linter_name) {
throw new ArcanistUsageException(
- "You must configure '{$key}' with the name of a linter in order to ".
- "use ArcanistSingleLintEngine.");
+ pht(
+ "You must configure '%s' with the name of a linter ".
+ "in order to use %s.",
+ $key,
+ __CLASS__));
}
if (!class_exists($linter_name)) {
throw new ArcanistUsageException(
- "Linter '{$linter_name}' configured in '{$key}' does not exist!");
+ pht(
+ "Linter '%s' configured in '%s' does not exist!",
+ $linter_name,
+ $key));
}
if (!is_subclass_of($linter_name, 'ArcanistLinter')) {
throw new ArcanistUsageException(
- "Linter '{$linter_name}' configured in '{$key}' MUST be a subclass of ".
- "ArcanistLinter.");
+ pht(
+ "Linter `%s` configured in '%s' MUST be a subclass of `%s`.",
+ $linter_name,
+ $key,
+ 'ArcanistLinter'));
}
// Filter the affected paths.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 9:29 PM (1 w, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7633275
Default Alt Text
D11503.id27662.diff (1 KB)
Attached To
Mode
D11503: `pht`ize some strings
Attached
Detach File
Event Timeline
Log In to Comment