]> khamidou — GitHub mirrors - arcanist.git/commitdiff
`pht`ize some strings
authorJoshua Spence <josh@joshuaspence.com>
Mon, 26 Jan 2015 19:58:30 +0000 (06:58 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 26 Jan 2015 19:58:31 +0000 (06:58 +1100)
Summary: Self-explanatory.

Test Plan: Eyeball it.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

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

src/lint/engine/ArcanistSingleLintEngine.php

index 34249b8cd61c28253cec8b6435ba549e5e4ca424..1b2b011402d4216b47aa34d298780cffa10cfa93 100644 (file)
@@ -18,19 +18,28 @@ final class ArcanistSingleLintEngine extends ArcanistLintEngine {
 
     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.