diff --git a/src/applications/project/constants/PhabricatorProjectStatus.php b/src/applications/project/constants/PhabricatorProjectStatus.php index 3fc02e2683..20e0eb0757 100644 --- a/src/applications/project/constants/PhabricatorProjectStatus.php +++ b/src/applications/project/constants/PhabricatorProjectStatus.php @@ -11,7 +11,7 @@ final class PhabricatorProjectStatus { self::STATUS_ARCHIVED => pht('Archived'), ); - return idx($map, coalesce($status, '?'), 'Unknown'); + return idx($map, coalesce($status, '?'), pht('Unknown')); } public static function getIconForStatus($status) { @@ -25,8 +25,8 @@ final class PhabricatorProjectStatus { public static function getStatusMap() { return array( - self::STATUS_ACTIVE => 'Active', - self::STATUS_ARCHIVED => 'Archived', + self::STATUS_ACTIVE => pht('Active'), + self::STATUS_ARCHIVED => pht('Archived'), ); } diff --git a/src/applications/project/controller/PhabricatorProjectController.php b/src/applications/project/controller/PhabricatorProjectController.php index 7df3bc03aa..dd6ce47855 100644 --- a/src/applications/project/controller/PhabricatorProjectController.php +++ b/src/applications/project/controller/PhabricatorProjectController.php @@ -2,19 +2,6 @@ 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) { $id = $project->getID(); diff --git a/src/applications/project/controller/PhabricatorProjectProfileEditController.php b/src/applications/project/controller/PhabricatorProjectProfileEditController.php index c2bab3206e..c4b6a35d49 100644 --- a/src/applications/project/controller/PhabricatorProjectProfileEditController.php +++ b/src/applications/project/controller/PhabricatorProjectProfileEditController.php @@ -79,7 +79,7 @@ final class PhabricatorProjectProfileEditController $editor->setActor($user); $editor->applyTransactions($xactions); } catch (PhabricatorProjectNameCollisionException $ex) { - $e_name = 'Not Unique'; + $e_name = pht('Not Unique'); $errors[] = $ex->getMessage(); } @@ -244,6 +244,7 @@ final class PhabricatorProjectProfileEditController array( 'title' => $title, 'device' => true, + 'dust' => true, )); } } diff --git a/src/applications/project/editor/PhabricatorProjectEditor.php b/src/applications/project/editor/PhabricatorProjectEditor.php index 2992fa4f35..30817f9775 100644 --- a/src/applications/project/editor/PhabricatorProjectEditor.php +++ b/src/applications/project/editor/PhabricatorProjectEditor.php @@ -180,9 +180,9 @@ final class PhabricatorProjectEditor extends PhabricatorEditor { $other_name = $collision->getName(); $other_id = $collision->getID(); throw new PhabricatorProjectNameCollisionException( - "Project names must be unique. The name '{$name}' is too similar to ". - "the name of another project, '{$other_name}' (Project ID: ". - "{$other_id}). Choose a unique name."); + pht("Project names must be unique. The name '%s' is too similar to ". + "the name of another project, '%s' (Project ID: ". + "%d). Choose a unique name.", $name, $other_name, $other_id)); } }