Some help pht
Summary: pht Test Plan: diff review, test shortcuts. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5991
This commit is contained in:
parent
6cd624384a
commit
4a901c788d
|
@ -5,7 +5,7 @@ abstract class PhabricatorHelpController extends PhabricatorController {
|
||||||
public function buildStandardPageResponse($view, array $data) {
|
public function buildStandardPageResponse($view, array $data) {
|
||||||
$page = $this->buildStandardPageView();
|
$page = $this->buildStandardPageView();
|
||||||
|
|
||||||
$page->setApplicationName('Help');
|
$page->setApplicationName(pht('Help'));
|
||||||
$page->setBaseURI('/help/');
|
$page->setBaseURI('/help/');
|
||||||
$page->setTitle(idx($data, 'title'));
|
$page->setTitle(idx($data, 'title'));
|
||||||
$page->setGlyph('?');
|
$page->setGlyph('?');
|
||||||
|
|
|
@ -18,7 +18,7 @@ final class PhabricatorHelpKeyboardShortcutController
|
||||||
// terribly discoverable.
|
// terribly discoverable.
|
||||||
$keys[] = array(
|
$keys[] = array(
|
||||||
'keys' => array('esc'),
|
'keys' => array('esc'),
|
||||||
'description' => 'Close any dialog, including this one.',
|
'description' => pht('Close any dialog, including this one.'),
|
||||||
);
|
);
|
||||||
|
|
||||||
$stroke_map = array(
|
$stroke_map = array(
|
||||||
|
@ -55,9 +55,9 @@ final class PhabricatorHelpKeyboardShortcutController
|
||||||
|
|
||||||
$dialog = id(new AphrontDialogView())
|
$dialog = id(new AphrontDialogView())
|
||||||
->setUser($user)
|
->setUser($user)
|
||||||
->setTitle('Keyboard Shortcuts')
|
->setTitle(pht('Keyboard Shortcuts'))
|
||||||
->appendChild($table)
|
->appendChild($table)
|
||||||
->addCancelButton('#', 'Close');
|
->addCancelButton('#', pht('Close'));
|
||||||
|
|
||||||
return id(new AphrontDialogResponse())
|
return id(new AphrontDialogResponse())
|
||||||
->setDialog($dialog);
|
->setDialog($dialog);
|
||||||
|
|
Loading…
Reference in a new issue