mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
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
This commit is contained in:
parent
e246001bd2
commit
5320d85343
2 changed files with 14 additions and 8 deletions
|
@ -334,7 +334,7 @@ final class PhabricatorPeopleEditController
|
||||||
|
|
||||||
$form->appendChild(
|
$form->appendChild(
|
||||||
id(new AphrontFormStaticControl())
|
id(new AphrontFormStaticControl())
|
||||||
->setLabel('Roles')
|
->setLabel(pht('Roles'))
|
||||||
->setValue($roles));
|
->setValue($roles));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ final class PhabricatorPeopleProfileController
|
||||||
->setDescription($profile->getTitle());
|
->setDescription($profile->getTitle());
|
||||||
|
|
||||||
if ($user->getIsDisabled()) {
|
if ($user->getIsDisabled()) {
|
||||||
$header->setStatus('Disabled');
|
$header->setStatus(pht('Disabled'));
|
||||||
} else {
|
} else {
|
||||||
$statuses = id(new PhabricatorUserStatus())->loadCurrentStatuses(
|
$statuses = id(new PhabricatorUserStatus())->loadCurrentStatuses(
|
||||||
array($user->getPHID()));
|
array($user->getPHID()));
|
||||||
|
@ -180,33 +180,38 @@ final class PhabricatorPeopleProfileController
|
||||||
|
|
||||||
$content = hsprintf(
|
$content = hsprintf(
|
||||||
'<div class="phabricator-profile-info-group">
|
'<div class="phabricator-profile-info-group">
|
||||||
<h1 class="phabricator-profile-info-header">Basic Information</h1>
|
<h1 class="phabricator-profile-info-header">%s</h1>
|
||||||
<div class="phabricator-profile-info-pane">
|
<div class="phabricator-profile-info-pane">
|
||||||
<table class="phabricator-profile-info-table">
|
<table class="phabricator-profile-info-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>PHID</th>
|
<th>%s</th>
|
||||||
<td>%s</td>
|
<td>%s</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>User Since</th>
|
<th>%s</th>
|
||||||
<td>%s</td>
|
<td>%s</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>'.
|
</div>'.
|
||||||
'<div class="phabricator-profile-info-group">
|
'<div class="phabricator-profile-info-group">
|
||||||
<h1 class="phabricator-profile-info-header">Flavor Text</h1>
|
<h1 class="phabricator-profile-info-header">%s</h1>
|
||||||
<div class="phabricator-profile-info-pane">
|
<div class="phabricator-profile-info-pane">
|
||||||
<table class="phabricator-profile-info-table">
|
<table class="phabricator-profile-info-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Blurb</th>
|
<th>%s</th>
|
||||||
<td>%s</td>
|
<td>%s</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>',
|
</div>',
|
||||||
|
pht('Basic Information'),
|
||||||
|
pht('PHID'),
|
||||||
$user->getPHID(),
|
$user->getPHID(),
|
||||||
|
pht('User Since'),
|
||||||
phabricator_datetime($user->getDateCreated(), $viewer),
|
phabricator_datetime($user->getDateCreated(), $viewer),
|
||||||
|
pht('Flavor Text'),
|
||||||
|
pht('Blurb'),
|
||||||
$blurb);
|
$blurb);
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
|
@ -230,9 +235,10 @@ final class PhabricatorPeopleProfileController
|
||||||
|
|
||||||
return hsprintf(
|
return hsprintf(
|
||||||
'<div class="phabricator-profile-info-group">
|
'<div class="phabricator-profile-info-group">
|
||||||
<h1 class="phabricator-profile-info-header">Activity Feed</h1>
|
<h1 class="phabricator-profile-info-header">%s</h1>
|
||||||
<div class="phabricator-profile-info-pane">%s</div>
|
<div class="phabricator-profile-info-pane">%s</div>
|
||||||
</div>',
|
</div>',
|
||||||
|
pht('Activity Feed'),
|
||||||
$view->render());
|
$view->render());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue