1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-08 21:08:29 +01:00

Clean up some pht's in Projects

Summary: Run through Projects in ALL_CAPS

Test Plan: see summary

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5990
This commit is contained in:
Chad Little 2013-05-21 16:13:34 -07:00
parent f8d8156ccc
commit 6958f7677d
4 changed files with 8 additions and 20 deletions

View file

@ -11,7 +11,7 @@ final class PhabricatorProjectStatus {
self::STATUS_ARCHIVED => pht('Archived'), self::STATUS_ARCHIVED => pht('Archived'),
); );
return idx($map, coalesce($status, '?'), 'Unknown'); return idx($map, coalesce($status, '?'), pht('Unknown'));
} }
public static function getIconForStatus($status) { public static function getIconForStatus($status) {
@ -25,8 +25,8 @@ final class PhabricatorProjectStatus {
public static function getStatusMap() { public static function getStatusMap() {
return array( return array(
self::STATUS_ACTIVE => 'Active', self::STATUS_ACTIVE => pht('Active'),
self::STATUS_ARCHIVED => 'Archived', self::STATUS_ARCHIVED => pht('Archived'),
); );
} }

View file

@ -2,19 +2,6 @@
abstract class PhabricatorProjectController extends PhabricatorController { abstract class PhabricatorProjectController extends PhabricatorController {
public function buildStandardPageResponse($view, array $data) {
$page = $this->buildStandardPageView();
$page->setApplicationName(pht('Project'));
$page->setBaseURI('/project/');
$page->setTitle(idx($data, 'title'));
$page->setGlyph("\xE2\x98\xA3");
$page->appendChild($view);
$response = new AphrontWebpageResponse();
return $response->setContent($page->render());
}
protected function buildLocalNavigation(PhabricatorProject $project) { protected function buildLocalNavigation(PhabricatorProject $project) {
$id = $project->getID(); $id = $project->getID();

View file

@ -79,7 +79,7 @@ final class PhabricatorProjectProfileEditController
$editor->setActor($user); $editor->setActor($user);
$editor->applyTransactions($xactions); $editor->applyTransactions($xactions);
} catch (PhabricatorProjectNameCollisionException $ex) { } catch (PhabricatorProjectNameCollisionException $ex) {
$e_name = 'Not Unique'; $e_name = pht('Not Unique');
$errors[] = $ex->getMessage(); $errors[] = $ex->getMessage();
} }
@ -244,6 +244,7 @@ final class PhabricatorProjectProfileEditController
array( array(
'title' => $title, 'title' => $title,
'device' => true, 'device' => true,
'dust' => true,
)); ));
} }
} }

View file

@ -180,9 +180,9 @@ final class PhabricatorProjectEditor extends PhabricatorEditor {
$other_name = $collision->getName(); $other_name = $collision->getName();
$other_id = $collision->getID(); $other_id = $collision->getID();
throw new PhabricatorProjectNameCollisionException( throw new PhabricatorProjectNameCollisionException(
"Project names must be unique. The name '{$name}' is too similar to ". pht("Project names must be unique. The name '%s' is too similar to ".
"the name of another project, '{$other_name}' (Project ID: ". "the name of another project, '%s' (Project ID: ".
"{$other_id}). Choose a unique name."); "%d). Choose a unique name.", $name, $other_name, $other_id));
} }
} }