phtize all the things
Summary: `pht`ize a whole bunch of strings in rP. Test Plan: Intense eyeballing. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12797
This commit is contained in:
@@ -15,7 +15,7 @@ final class PhabricatorPHPASTApplication extends PhabricatorApplication {
|
||||
}
|
||||
|
||||
public function getShortDescription() {
|
||||
return 'Visual PHP Parser';
|
||||
return pht('Visual PHP Parser');
|
||||
}
|
||||
|
||||
public function getTitleGlyph() {
|
||||
|
||||
@@ -22,7 +22,7 @@ final class PhabricatorXHPASTViewFrameController
|
||||
'',
|
||||
)),
|
||||
array(
|
||||
'title' => 'XHPAST View',
|
||||
'title' => pht('XHPAST View'),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ abstract class PhabricatorXHPASTViewPanelController
|
||||
$this->storageTree = id(new PhabricatorXHPASTViewParseTree())
|
||||
->load($this->id);
|
||||
if (!$this->storageTree) {
|
||||
throw new Exception('No such AST!');
|
||||
throw new Exception(pht('No such AST!'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ final class PhabricatorXHPASTViewRunController
|
||||
->setUser($user)
|
||||
->appendChild(
|
||||
id(new AphrontFormTextAreaControl())
|
||||
->setLabel('Source')
|
||||
->setLabel(pht('Source'))
|
||||
->setName('source')
|
||||
->setValue("<?php\n\n")
|
||||
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL))
|
||||
|
||||
@@ -16,7 +16,7 @@ final class PhabricatorXHPASTViewStreamController
|
||||
foreach ($tree->getRawTokenStream() as $id => $token) {
|
||||
$seq = $id;
|
||||
$name = $token->getTypeName();
|
||||
$title = "Token {$seq}: {$name}";
|
||||
$title = pht('Token %s: %s', $seq, $name);
|
||||
|
||||
$tokens[] = phutil_tag(
|
||||
'span',
|
||||
|
||||
Reference in New Issue
Block a user