Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/editor/PonderQuestionEditor.php
<?php | <?php | ||||
final class PonderQuestionEditor | final class PonderQuestionEditor | ||||
extends PonderEditor { | extends PonderEditor { | ||||
private $answer; | private $answer; | ||||
public function getEditorObjectsDescription() { | public function getEditorObjectsDescription() { | ||||
return pht('Ponder Questions'); | return pht('Ponder Questions'); | ||||
} | } | ||||
public function getCreateObjectTitle($author, $object) { | public function getCreateObjectTitle($author, $object) { | ||||
return pht('%s created this question.', $author); | return pht('%s asked this question.', $author); | ||||
} | } | ||||
public function getCreateObjectTitleForFeed($author, $object) { | public function getCreateObjectTitleForFeed($author, $object) { | ||||
return pht('%s created %s.', $author, $object); | return pht('%s asked %s.', $author, $object); | ||||
} | } | ||||
/** | /** | ||||
* This is used internally on @{method:applyInitialEffects} if a transaction | * This is used internally on @{method:applyInitialEffects} if a transaction | ||||
* of type PonderQuestionTransaction::TYPE_ANSWERS is in the mix. The value | * of type PonderQuestionTransaction::TYPE_ANSWERS is in the mix. The value | ||||
* is set to the //last// answer in the transactions. Practically, one | * is set to the //last// answer in the transactions. Practically, one | ||||
* answer is given at a time in the application, though theoretically | * answer is given at a time in the application, though theoretically | ||||
* this is buggy. | * this is buggy. | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |