@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+8 -20
+3 -3
src/applications/project/constants/PhabricatorProjectStatus.php
··· 11 11 self::STATUS_ARCHIVED => pht('Archived'), 12 12 ); 13 13 14 - return idx($map, coalesce($status, '?'), 'Unknown'); 14 + return idx($map, coalesce($status, '?'), pht('Unknown')); 15 15 } 16 16 17 17 public static function getIconForStatus($status) { ··· 25 25 26 26 public static function getStatusMap() { 27 27 return array( 28 - self::STATUS_ACTIVE => 'Active', 29 - self::STATUS_ARCHIVED => 'Archived', 28 + self::STATUS_ACTIVE => pht('Active'), 29 + self::STATUS_ARCHIVED => pht('Archived'), 30 30 ); 31 31 } 32 32
-13
src/applications/project/controller/PhabricatorProjectController.php
··· 2 2 3 3 abstract class PhabricatorProjectController extends PhabricatorController { 4 4 5 - public function buildStandardPageResponse($view, array $data) { 6 - $page = $this->buildStandardPageView(); 7 - 8 - $page->setApplicationName(pht('Project')); 9 - $page->setBaseURI('/project/'); 10 - $page->setTitle(idx($data, 'title')); 11 - $page->setGlyph("\xE2\x98\xA3"); 12 - $page->appendChild($view); 13 - 14 - $response = new AphrontWebpageResponse(); 15 - return $response->setContent($page->render()); 16 - } 17 - 18 5 protected function buildLocalNavigation(PhabricatorProject $project) { 19 6 $id = $project->getID(); 20 7
+2 -1
src/applications/project/controller/PhabricatorProjectProfileEditController.php
··· 79 79 $editor->setActor($user); 80 80 $editor->applyTransactions($xactions); 81 81 } catch (PhabricatorProjectNameCollisionException $ex) { 82 - $e_name = 'Not Unique'; 82 + $e_name = pht('Not Unique'); 83 83 $errors[] = $ex->getMessage(); 84 84 } 85 85 ··· 244 244 array( 245 245 'title' => $title, 246 246 'device' => true, 247 + 'dust' => true, 247 248 )); 248 249 } 249 250 }
+3 -3
src/applications/project/editor/PhabricatorProjectEditor.php
··· 180 180 $other_name = $collision->getName(); 181 181 $other_id = $collision->getID(); 182 182 throw new PhabricatorProjectNameCollisionException( 183 - "Project names must be unique. The name '{$name}' is too similar to ". 184 - "the name of another project, '{$other_name}' (Project ID: ". 185 - "{$other_id}). Choose a unique name."); 183 + pht("Project names must be unique. The name '%s' is too similar to ". 184 + "the name of another project, '%s' (Project ID: ". 185 + "%d). Choose a unique name.", $name, $other_name, $other_id)); 186 186 } 187 187 } 188 188