From 5320d85343e7d7a8b54e665ae0c66c281181e74d Mon Sep 17 00:00:00 2001 From: Anh Nhan Nguyen Date: Tue, 26 Mar 2013 12:47:25 -0700 Subject: [PATCH] Some pht()'s for People that got missed Summary: We certainly don't go all-caps enough, else we would have noticed them. Test Plan: Looked at profiles, people edit page before and after with All-Caps Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5450 --- .../PhabricatorPeopleEditController.php | 2 +- .../PhabricatorPeopleProfileController.php | 20 ++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/applications/people/controller/PhabricatorPeopleEditController.php b/src/applications/people/controller/PhabricatorPeopleEditController.php index 5dcefe17a5..74a50f62c8 100644 --- a/src/applications/people/controller/PhabricatorPeopleEditController.php +++ b/src/applications/people/controller/PhabricatorPeopleEditController.php @@ -334,7 +334,7 @@ final class PhabricatorPeopleEditController $form->appendChild( id(new AphrontFormStaticControl()) - ->setLabel('Roles') + ->setLabel(pht('Roles')) ->setValue($roles)); } diff --git a/src/applications/people/controller/PhabricatorPeopleProfileController.php b/src/applications/people/controller/PhabricatorPeopleProfileController.php index d489c3c259..078b5f3e4e 100644 --- a/src/applications/people/controller/PhabricatorPeopleProfileController.php +++ b/src/applications/people/controller/PhabricatorPeopleProfileController.php @@ -131,7 +131,7 @@ final class PhabricatorPeopleProfileController ->setDescription($profile->getTitle()); if ($user->getIsDisabled()) { - $header->setStatus('Disabled'); + $header->setStatus(pht('Disabled')); } else { $statuses = id(new PhabricatorUserStatus())->loadCurrentStatuses( array($user->getPHID())); @@ -180,33 +180,38 @@ final class PhabricatorPeopleProfileController $content = hsprintf( '
-

Basic Information

+

%s

- + - +
PHID%s %s
User Since%s %s
'. '
-

Flavor Text

+

%s

- +
Blurb%s %s
', + pht('Basic Information'), + pht('PHID'), $user->getPHID(), + pht('User Since'), phabricator_datetime($user->getDateCreated(), $viewer), + pht('Flavor Text'), + pht('Blurb'), $blurb); return $content; @@ -230,9 +235,10 @@ final class PhabricatorPeopleProfileController return hsprintf( '
-

Activity Feed

+

%s

%s
', + pht('Activity Feed'), $view->render()); } }