From 86353462cdf73435ab776584c9d0b459bb485ca5 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 16 Dec 2012 16:36:22 -0800 Subject: [PATCH] Minor, add some missing pht(). See D4200. Auditors: btrahan --- .../controller/PhabricatorFileUploadController.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/applications/files/controller/PhabricatorFileUploadController.php b/src/applications/files/controller/PhabricatorFileUploadController.php index f94e587a19..2c8ce155b9 100644 --- a/src/applications/files/controller/PhabricatorFileUploadController.php +++ b/src/applications/files/controller/PhabricatorFileUploadController.php @@ -53,7 +53,7 @@ final class PhabricatorFileUploadController extends PhabricatorFileController { ->setLabel(pht('Name')) ->setName('name') ->setValue($request->getStr('name')) - ->setCaption('Optional file display name.')) + ->setCaption(pht('Optional file display name.'))) ->appendChild( id(new AphrontFormSubmitControl()) ->setValue(pht('Upload')) @@ -66,12 +66,14 @@ final class PhabricatorFileUploadController extends PhabricatorFileController { ->setName(pht('Upload')) ->setHref($request->getRequestURI())); + $title = pht('Upload File'); + $header = id(new PhabricatorHeaderView()) - ->setHeader(pht('Upload File')); + ->setHeader($title); if ($errors) { $errors = id(new AphrontErrorView()) - ->setTitle('Form Errors') + ->setTitle(pht('Form Errors')) ->setErrors($errors); } @@ -87,7 +89,7 @@ final class PhabricatorFileUploadController extends PhabricatorFileController { $global_upload, ), array( - 'title' => 'Upload File', + 'title' => $title, 'device' => true, )); }