~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to phabricator/src/applications/releeph/field/specification/ReleephReasonFieldSpecification.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-06-13 10:52:10 UTC
  • mfrom: (0.30.1) (0.29.1) (0.17.4) (2.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20150613105210-5uirr7tvnk0n6e6y
Tags: 0~git20150613-1
* New snapshot release (closes: #787805)
* fixed typo in logrotate script (closes: #787645)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
  public function validate($reason) {
46
46
    if (!$reason) {
47
 
      $this->error = 'Required';
 
47
      $this->error = pht('Required');
48
48
      throw new ReleephFieldParseException(
49
49
        $this,
50
50
        pht('You must give a reason for your request.'));
53
53
 
54
54
  public function renderHelpForArcanist() {
55
55
    $text = pht(
56
 
      "Fully explain why you are requesting this code be included ".
57
 
      "in the next release.\n");
 
56
      'Fully explain why you are requesting this code be included '.
 
57
      'in the next release.')."\n";
58
58
    return phutil_console_wrap($text, 8);
59
59
  }
60
60