1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 21:40:55 +01:00

Minor, add some missing pht(). See D4200.

Auditors: btrahan
This commit is contained in:
epriestley 2012-12-16 16:36:22 -08:00
parent 221562b294
commit 86353462cd

View file

@ -53,7 +53,7 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
->setLabel(pht('Name')) ->setLabel(pht('Name'))
->setName('name') ->setName('name')
->setValue($request->getStr('name')) ->setValue($request->getStr('name'))
->setCaption('Optional file display name.')) ->setCaption(pht('Optional file display name.')))
->appendChild( ->appendChild(
id(new AphrontFormSubmitControl()) id(new AphrontFormSubmitControl())
->setValue(pht('Upload')) ->setValue(pht('Upload'))
@ -66,12 +66,14 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
->setName(pht('Upload')) ->setName(pht('Upload'))
->setHref($request->getRequestURI())); ->setHref($request->getRequestURI()));
$title = pht('Upload File');
$header = id(new PhabricatorHeaderView()) $header = id(new PhabricatorHeaderView())
->setHeader(pht('Upload File')); ->setHeader($title);
if ($errors) { if ($errors) {
$errors = id(new AphrontErrorView()) $errors = id(new AphrontErrorView())
->setTitle('Form Errors') ->setTitle(pht('Form Errors'))
->setErrors($errors); ->setErrors($errors);
} }
@ -87,7 +89,7 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
$global_upload, $global_upload,
), ),
array( array(
'title' => 'Upload File', 'title' => $title,
'device' => true, 'device' => true,
)); ));
} }