Differential D9859 Diff 23678 src/applications/differential/config/PhabricatorDifferentialConfigOptions.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/config/PhabricatorDifferentialConfigOptions.php
| Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | return array( | ||||
| ->setBoolOptions( | ->setBoolOptions( | ||||
| array( | array( | ||||
| pht('Allow self-accept'), | pht('Allow self-accept'), | ||||
| pht('Disallow self-accept'), | pht('Disallow self-accept'), | ||||
| )) | )) | ||||
| ->setSummary(pht('Allows users to accept their own revisions.')) | ->setSummary(pht('Allows users to accept their own revisions.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| "If you set this to true, users can accept their own revisions. ". | "If you set this to true, users can accept their own revisions. ". | ||||
| "This action is disabled by default because it's most likely not ". | "This action is disabled by default because it's most likely not ". | ||||
| "a behavior you want, but it proves useful if you are working ". | "a behavior you want, but it proves useful if you are working ". | ||||
| "alone on a project and want to make use of all of ". | "alone on a project and want to make use of all of ". | ||||
| "differential's features.")), | "differential's features.")), | ||||
| $this->newOption('differential.always-allow-close', 'bool', false) | $this->newOption('differential.always-allow-close', 'bool', false) | ||||
| ->setBoolOptions( | ->setBoolOptions( | ||||
| array( | array( | ||||
| pht('Allow any user'), | pht('Allow any user'), | ||||
| Show All 23 Lines | return array( | ||||
| ->setBoolOptions( | ->setBoolOptions( | ||||
| array( | array( | ||||
| pht('Enable reopen'), | pht('Enable reopen'), | ||||
| pht('Disable reopen'), | pht('Disable reopen'), | ||||
| )) | )) | ||||
| ->setSummary(pht('Allows any user to reopen a closed revision.')) | ->setSummary(pht('Allows any user to reopen a closed revision.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht('If you set this to true, any user can reopen a revision so '. | pht('If you set this to true, any user can reopen a revision so '. | ||||
| 'long as it has been closed. This can be useful if a revision '. | 'long as it has been closed. This can be useful if a revision '. | ||||
| 'is accidentally closed or if a developer changes his or her '. | 'is accidentally closed or if a developer changes his or her '. | ||||
| 'mind after closing a revision. If it is false, reopening '. | 'mind after closing a revision. If it is false, reopening '. | ||||
| 'is not allowed.')), | 'is not allowed.')), | ||||
| $this->newOption('differential.close-on-accept', 'bool', false) | $this->newOption('differential.close-on-accept', 'bool', false) | ||||
| ->setBoolOptions( | ->setBoolOptions( | ||||
| array( | array( | ||||
| pht('Treat Accepted Revisions as "Closed"'), | pht('Treat Accepted Revisions as "Closed"'), | ||||
| pht('Treat Accepted Revisions as "Open"'), | pht('Treat Accepted Revisions as "Open"'), | ||||
| )) | )) | ||||
| ->setSummary(pht('Allows "Accepted" to act as a closed status.')) | ->setSummary(pht('Allows "Accepted" to act as a closed status.')) | ||||
| ▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines | |||||