@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.

pht for Daemons.

Summary: Scan Daemons app for pht and fix a form or two.

Test Plan: Used Daemons app as much as I could, check all caps language.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5133

+46 -43
+2 -2
src/applications/daemon/application/PhabricatorApplicationDaemons.php
··· 3 3 final class PhabricatorApplicationDaemons extends PhabricatorApplication { 4 4 5 5 public function getName() { 6 - return 'Daemons'; 6 + return pht('Daemons'); 7 7 } 8 8 9 9 public function getShortDescription() { 10 - return 'Manage Daemons'; 10 + return pht('Manage Daemons'); 11 11 } 12 12 13 13 public function getBaseURI() {
+1 -1
src/applications/daemon/controller/PhabricatorDaemonCombinedLogController.php
··· 37 37 return $this->buildApplicationPage( 38 38 $nav, 39 39 array( 40 - 'title' => 'Combined Daemon Log', 40 + 'title' => pht('Combined Daemon Log'), 41 41 )); 42 42 } 43 43
+13 -13
src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
··· 66 66 $daemon_table->setDaemonLogs($logs); 67 67 68 68 $daemon_panel = new AphrontPanelView(); 69 - $daemon_panel->setHeader('Active Daemons'); 69 + $daemon_panel->setHeader(pht('Active Daemons')); 70 70 $daemon_panel->appendChild($daemon_table); 71 71 $daemon_panel->setNoBackground(); 72 72 ··· 87 87 'href' => '/daemon/task/'.$task->getID().'/', 88 88 'class' => 'button small grey', 89 89 ), 90 - 'View Task'), 90 + pht('View Task')), 91 91 ); 92 92 } 93 93 94 94 $leased_table = new AphrontTableView($rows); 95 95 $leased_table->setHeaders( 96 96 array( 97 - 'ID', 98 - 'Class', 99 - 'Owner', 100 - 'Expires', 101 - 'Failures', 97 + pht('ID'), 98 + pht('Class'), 99 + pht('Owner'), 100 + pht('Expires'), 101 + pht('Failures'), 102 102 '', 103 103 )); 104 104 $leased_table->setColumnClasses( ··· 110 110 'n', 111 111 'action', 112 112 )); 113 - $leased_table->setNoDataString('No tasks are leased by workers.'); 113 + $leased_table->setNoDataString(pht('No tasks are leased by workers.')); 114 114 115 115 $leased_panel = new AphrontPanelView(); 116 116 $leased_panel->setHeader('Leased Tasks'); ··· 135 135 $queued_table = new AphrontTableView($rows); 136 136 $queued_table->setHeaders( 137 137 array( 138 - 'Class', 139 - 'Count', 138 + pht('Class'), 139 + pht('Count'), 140 140 )); 141 141 $queued_table->setColumnClasses( 142 142 array( 143 143 'wide', 144 144 'n', 145 145 )); 146 - $queued_table->setNoDataString('Task queue is empty.'); 146 + $queued_table->setNoDataString(pht('Task queue is empty.')); 147 147 148 148 $queued_panel = new AphrontPanelView(); 149 - $queued_panel->setHeader('Queued Tasks'); 149 + $queued_panel->setHeader(pht('Queued Tasks')); 150 150 $queued_panel->appendChild($queued_table); 151 151 $queued_panel->setNoBackground(); 152 152 ··· 163 163 return $this->buildApplicationPage( 164 164 $nav, 165 165 array( 166 - 'title' => 'Console', 166 + 'title' => pht('Console'), 167 167 )); 168 168 } 169 169
+4 -4
src/applications/daemon/controller/PhabricatorDaemonController.php
··· 6 6 $nav = new AphrontSideNavFilterView(); 7 7 $nav->setBaseURI(new PhutilURI($this->getApplicationURI())); 8 8 9 - $nav->addLabel('Daemons'); 10 - $nav->addFilter('/', 'Console'); 11 - $nav->addFilter('log', 'All Daemons'); 12 - $nav->addFilter('log/combined', 'Combined Log'); 9 + $nav->addLabel(pht('Daemons')); 10 + $nav->addFilter('/', pht('Console')); 11 + $nav->addFilter('log', pht('All Daemons')); 12 + $nav->addFilter('log/combined', pht('Combined Log')); 13 13 14 14 return $nav; 15 15 }
+2 -2
src/applications/daemon/controller/PhabricatorDaemonLogListController.php
··· 25 25 $daemon_table->setDaemonLogs($logs); 26 26 27 27 $daemon_panel = new AphrontPanelView(); 28 - $daemon_panel->setHeader('All Daemons'); 28 + $daemon_panel->setHeader(pht('All Daemons')); 29 29 $daemon_panel->appendChild($daemon_table); 30 30 $daemon_panel->appendChild($pager); 31 31 $daemon_panel->setNoBackground(); ··· 37 37 return $this->buildApplicationPage( 38 38 $nav, 39 39 array( 40 - 'title' => 'All Daemons', 40 + 'title' => pht('All Daemons'), 41 41 )); 42 42 } 43 43
+10 -9
src/applications/daemon/controller/PhabricatorDaemonLogViewController.php
··· 33 33 ->setUser($user) 34 34 ->appendChild( 35 35 id(new AphrontFormStaticControl()) 36 - ->setLabel('Daemon') 36 + ->setLabel(pht('Daemon')) 37 37 ->setValue($log->getDaemon())) 38 38 ->appendChild( 39 39 id(new AphrontFormStaticControl()) 40 - ->setLabel('Host') 40 + ->setLabel(pht('Host')) 41 41 ->setValue($log->getHost())) 42 42 ->appendChild( 43 43 id(new AphrontFormStaticControl()) 44 - ->setLabel('PID') 44 + ->setLabel(pht('PID')) 45 45 ->setValue($log->getPID())) 46 46 ->appendChild( 47 47 id(new AphrontFormStaticControl()) 48 - ->setLabel('Started') 48 + ->setLabel(pht('Started')) 49 49 ->setValue( 50 50 phabricator_datetime($log->getDateCreated(), $user))) 51 51 ->appendChild( 52 52 id(new AphrontFormTextAreaControl()) 53 - ->setLabel('Argv') 53 + ->setLabel(pht('Argv')) 54 54 ->setValue($argv)); 55 55 56 56 $panel = new AphrontPanelView(); 57 - $panel->setHeader('Daemon Details'); 58 - $panel->setWidth(AphrontPanelView::WIDTH_FORM); 57 + $panel->setHeader(pht('Daemon Details')); 58 + $panel->setNoBackground(); 59 59 $panel->appendChild($form); 60 60 61 61 $content[] = $panel; ··· 65 65 $event_view->setEvents($events); 66 66 67 67 $log_panel = new AphrontPanelView(); 68 - $log_panel->setHeader('Daemon Logs'); 68 + $log_panel->setHeader(pht('Daemon Logs')); 69 + $log_panel->setNoBackground(); 69 70 $log_panel->appendChild($event_view); 70 71 71 72 $content[] = $log_panel; ··· 77 78 return $this->buildApplicationPage( 78 79 $nav, 79 80 array( 80 - 'title' => 'Daemon Log', 81 + 'title' => pht('Daemon Log'), 81 82 )); 82 83 } 83 84
+6 -4
src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php
··· 22 22 $title = pht('Task Does Not Exist'); 23 23 24 24 $error_view = new AphrontErrorView(); 25 - $error_view->setTitle('No Such Task'); 25 + $error_view->setTitle(pht('No Such Task')); 26 26 $error_view->appendChild(phutil_tag( 27 27 'p', 28 28 array(), 29 - 'This task may have recently been garbage collected.')); 29 + pht('This task may have recently been garbage collected.'))); 30 30 $error_view->setSeverity(AphrontErrorView::SEVERITY_NODATA); 31 31 32 32 $content = $error_view; 33 33 } else { 34 - $title = 'Task '.$task->getID(); 34 + $title = pht('Task %d', $task->getID()); 35 35 36 36 $header = id(new PhabricatorHeaderView()) 37 - ->setHeader('Task '.$task->getID().' ('.$task->getTaskClass().')'); 37 + ->setHeader(pht('Task %d (%s)', 38 + $task->getID(), 39 + $task->getTaskClass())); 38 40 39 41 $actions = $this->buildActionListView($task); 40 42 $properties = $this->buildPropertyListView($task);
+8 -8
src/applications/daemon/controller/PhabricatorWorkerTaskUpdateController.php
··· 71 71 switch ($this->action) { 72 72 case 'retry': 73 73 if ($can_retry) { 74 - $dialog->setTitle('Really retry task?'); 74 + $dialog->setTitle(pht('Really retry task?')); 75 75 $dialog->appendChild(phutil_tag('p', array(), pht( 76 76 'The task will be put back in the queue and executed again.'))); 77 77 $dialog->addSubmitButton('Retry Task'); 78 78 } else { 79 - $dialog->setTitle('Can Not Retry'); 79 + $dialog->setTitle(pht('Can Not Retry')); 80 80 $dialog->appendChild(phutil_tag('p', array(), pht( 81 81 'Only archived, unsuccessful tasks can be retried.'))); 82 82 } 83 83 break; 84 84 case 'cancel': 85 85 if ($can_cancel) { 86 - $dialog->setTitle('Really cancel task?'); 86 + $dialog->setTitle(pht('Really cancel task?')); 87 87 $dialog->appendChild(phutil_tag('p', array(), pht( 88 88 'The work this task represents will never be performed if you '. 89 89 'cancel it. Are you sure you want to cancel it?'))); 90 - $dialog->addSubmitButton('Cancel Task'); 90 + $dialog->addSubmitButton(pht('Cancel Task')); 91 91 } else { 92 - $dialog->setTitle('Can Not Cancel'); 92 + $dialog->setTitle(pht('Cannot Cancel')); 93 93 $dialog->appendChild(phutil_tag('p', array(), pht( 94 94 'Only active tasks can be cancelled.'))); 95 95 } 96 96 break; 97 97 case 'release': 98 98 if ($can_release) { 99 - $dialog->setTitle('Really free task lease?'); 99 + $dialog->setTitle(pht('Really free task lease?')); 100 100 $dialog->appendChild(phutil_tag('p', array(), pht( 101 101 'If the process which owns the task lease is still doing work '. 102 102 'on it, the work may be performed twice. Are you sure you '. 103 103 'want to free the lease?'))); 104 - $dialog->addSubmitButton('Free Lease'); 104 + $dialog->addSubmitButton(pht('Free Lease')); 105 105 } else { 106 - $dialog->setTitle('Can Not Free Lease'); 106 + $dialog->setTitle(pht('Cannot Free Lease')); 107 107 $dialog->appendChild(phutil_tag('p', array(), pht( 108 108 'Only active, leased tasks may have their leases freed.'))); 109 109 }