From 96f6fb585e68d64585c48262f0413682fe616d10 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sun, 1 Mar 2015 09:41:00 +1100 Subject: [PATCH] `pht`ize a few strings 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/D11909 --- .../PhabricatorApplicationSearchController.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/applications/search/controller/PhabricatorApplicationSearchController.php b/src/applications/search/controller/PhabricatorApplicationSearchController.php index 3df7781ba7..759ff9cc30 100644 --- a/src/applications/search/controller/PhabricatorApplicationSearchController.php +++ b/src/applications/search/controller/PhabricatorApplicationSearchController.php @@ -50,19 +50,23 @@ final class PhabricatorApplicationSearchController if (!$parent) { throw new Exception( - 'You must delegate to this controller, not invoke it directly.'); + pht('You must delegate to this controller, not invoke it directly.')); } $engine = $this->getSearchEngine(); if (!$engine) { throw new Exception( - 'Call setEngine() before delegating to this controller!'); + pht( + 'Call %s before delegating to this controller!', + 'setEngine()')); } $nav = $this->getNavigation(); if (!$nav) { throw new Exception( - 'Call setNavigation() before delegating to this controller!'); + pht( + 'Call %s before delegating to this controller!', + 'setNavigation()')); } $engine->setViewer($this->getRequest()->getUser());