pht() for view and form elements

Summary:
actually just wanted to `pht()` the //Cancel// button.

includes `pht()`ed exceptions.

refrained from `pht()`-ing `phabricator_relative_date()` since I wasn't too sure about the effects.

Test Plan: visited all form elements that I remembered - looks reasonable

Reviewers: epriestley, chad, btrahan

Reviewed By: chad

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5175
This commit is contained in:
Anh Nhan Nguyen
2013-03-01 15:37:32 -08:00
committed by epriestley
parent bedc06b1bc
commit 8e51764118
23 changed files with 78 additions and 63 deletions

View File

@@ -82,7 +82,7 @@ final class AphrontCursorPagerView extends AphrontView {
public function render() {
if (!$this->uri) {
throw new Exception(
"You must call setURI() before you can call render().");
pht("You must call setURI() before you can call render()."));
}
$links = array();
@@ -95,7 +95,7 @@ final class AphrontCursorPagerView extends AphrontView {
->alter('before', null)
->alter('after', null),
),
"\xC2\xAB First");
"\xC2\xAB ". pht("First"));
}
if ($this->prevPageID) {
@@ -106,7 +106,7 @@ final class AphrontCursorPagerView extends AphrontView {
->alter('after', null)
->alter('before', $this->prevPageID),
),
"\xE2\x80\xB9 Prev");
"\xE2\x80\xB9 " . pht("Prev"));
}
if ($this->nextPageID) {