pht for phriction

Summary: Scan all phriction app files for text to pht

Test Plan: Use phriction in ALL CAPS, seems reasonably usable.

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4862
This commit is contained in:
Chad Little
2013-02-08 09:54:27 -08:00
parent 9c19e9b7d8
commit 51dfeb7950
9 changed files with 75 additions and 72 deletions

View File

@@ -49,7 +49,7 @@ final class PhrictionHistoryController
$diff_uri = new PhutilURI('/phriction/diff/'.$document->getID().'/');
$vs_previous = '<em>Created</em>';
$vs_previous = '<em>'.pht('Created').'</em>';
if ($content->getVersion() != 1) {
$uri = $diff_uri
->alter('l', $content->getVersion() - 1)
@@ -59,10 +59,10 @@ final class PhrictionHistoryController
array(
'href' => $uri,
),
'Show Change');
pht('Show Change'));
}
$vs_head = '<em>Current</em>';
$vs_head = '<em>'.pht('Current').'</em>';
if ($content->getID() != $document->getContentID()) {
$uri = $diff_uri
->alter('l', $content->getVersion())
@@ -73,7 +73,7 @@ final class PhrictionHistoryController
array(
'href' => $uri,
),
'Show Later Changes');
pht('Show Later Changes'));
}
$change_type = PhrictionChangeType::getChangeTypeLabel(
@@ -87,7 +87,7 @@ final class PhrictionHistoryController
array(
'href' => $slug_uri.'?v='.$version,
),
'Version '.$version),
pht('Version %s', $version)),
$handles[$content->getAuthorPHID()]->renderLink(),
$change_type,
phutil_escape_html($content->getDescription()),
@@ -99,14 +99,14 @@ final class PhrictionHistoryController
$table = new AphrontTableView($rows);
$table->setHeaders(
array(
'Date',
'Time',
'Version',
'Author',
'Type',
'Description',
'Against Previous',
'Against Current',
pht('Date'),
pht('Time'),
pht('Version'),
pht('Author'),
pht('Type'),
pht('Description'),
pht('Against Previous'),
pht('Against Current'),
));
$table->setColumnClasses(
array(
@@ -132,7 +132,7 @@ final class PhrictionHistoryController
PhrictionDocument::getSlugURI($document->getSlug(), 'history')));
$panel = new AphrontPanelView();
$panel->setHeader('Document History');
$panel->setHeader(pht('Document History'));
$panel->setNoBackground();
$panel->appendChild($table);
$panel->appendChild($pager);
@@ -143,7 +143,7 @@ final class PhrictionHistoryController
$panel,
),
array(
'title' => 'Document History',
'title' => pht('Document History'),
'device' => true,
));