mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 15:30:58 +01:00
Fix some copy and bugs in Ponder
Summary: Fixes T12939. Fixes some feed stories, mailtags, and headers. Test Plan: Review changes locally by asking how babby is formed. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T12939 Differential Revision: https://secure.phabricator.com/D18285
This commit is contained in:
parent
a7121f022f
commit
9cf5bc30cd
4 changed files with 27 additions and 3 deletions
|
@ -94,7 +94,7 @@ final class PonderQuestionViewController extends PonderController {
|
|||
$wiki = new PHUIRemarkupView($viewer, $question->getAnswerWiki());
|
||||
$answer_wiki = id(new PHUIObjectBoxView())
|
||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||
->setHeaderText(pht('ANSWER SUMMARY'))
|
||||
->setHeaderText(pht('Answer Summary'))
|
||||
->appendChild($wiki)
|
||||
->addClass('ponder-answer-wiki');
|
||||
}
|
||||
|
|
|
@ -10,11 +10,11 @@ final class PonderQuestionEditor
|
|||
}
|
||||
|
||||
public function getCreateObjectTitle($author, $object) {
|
||||
return pht('%s created this question.', $author);
|
||||
return pht('%s asked this question.', $author);
|
||||
}
|
||||
|
||||
public function getCreateObjectTitleForFeed($author, $object) {
|
||||
return pht('%s created %s.', $author, $object);
|
||||
return pht('%s asked %s.', $author, $object);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,4 +23,11 @@ final class PonderAnswerTransaction
|
|||
return 'PonderAnswerTransactionType';
|
||||
}
|
||||
|
||||
public function getMailTags() {
|
||||
$tags = parent::getMailTags();
|
||||
$tags[] = PonderQuestionTransaction::MAILTAG_OTHER;
|
||||
|
||||
return $tags;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -14,12 +14,29 @@ final class PonderAnswerContentTransaction
|
|||
}
|
||||
|
||||
public function getTitle() {
|
||||
$old = $this->getOldValue();
|
||||
|
||||
if (!strlen($old)) {
|
||||
return pht(
|
||||
'%s added an answer.',
|
||||
$this->renderAuthor());
|
||||
}
|
||||
|
||||
return pht(
|
||||
'%s updated the answer details.',
|
||||
$this->renderAuthor());
|
||||
}
|
||||
|
||||
public function getTitleForFeed() {
|
||||
$old = $this->getOldValue();
|
||||
|
||||
if (!strlen($old)) {
|
||||
return pht(
|
||||
'%s added %s.',
|
||||
$this->renderAuthor(),
|
||||
$this->renderObject());
|
||||
}
|
||||
|
||||
return pht(
|
||||
'%s updated the answer details for %s.',
|
||||
$this->renderAuthor(),
|
||||
|
|
Loading…
Reference in a new issue