mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +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:
parent
f8d8156ccc
commit
6958f7677d
4 changed files with 8 additions and 20 deletions
|
@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue