Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorCoreConfigOptions.php
| Show All 18 Lines | if (phutil_is_windows()) { | ||||
| '/bin', | '/bin', | ||||
| '/usr/bin', | '/usr/bin', | ||||
| '/usr/local/bin', | '/usr/local/bin', | ||||
| ); | ); | ||||
| } | } | ||||
| $path = getenv('PATH'); | $path = getenv('PATH'); | ||||
| $proto_doc_href = PhabricatorEnv::getDoclink( | |||||
| 'User Guide: Prototype Applications'); | |||||
| $proto_doc_name = pht('User Guide: Prototype Applications'); | |||||
| return array( | return array( | ||||
| $this->newOption('phabricator.base-uri', 'string', null) | $this->newOption('phabricator.base-uri', 'string', null) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ->setSummary(pht('URI where Phabricator is installed.')) | ->setSummary(pht('URI where Phabricator is installed.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'Set the URI where Phabricator is installed. Setting this '. | 'Set the URI where Phabricator is installed. Setting this '. | ||||
| 'improves security by preventing cookies from being set on other '. | 'improves security by preventing cookies from being set on other '. | ||||
| ▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | return array( | ||||
| pht('Set a string Phabricator should use to prefix '. | pht('Set a string Phabricator should use to prefix '. | ||||
| 'cookie names')) | 'cookie names')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'Cookies set for x.com are also sent for y.x.com. Assuming '. | 'Cookies set for x.com are also sent for y.x.com. Assuming '. | ||||
| 'Phabricator instances are running on both domains, this will '. | 'Phabricator instances are running on both domains, this will '. | ||||
| 'create a collision preventing you from logging in.')) | 'create a collision preventing you from logging in.')) | ||||
| ->addExample('dev', pht('Prefix cookie with "dev"')), | ->addExample('dev', pht('Prefix cookie with "dev"')), | ||||
| $this->newOption('phabricator.show-beta-applications', 'bool', false) | $this->newOption('phabricator.show-prototypes', 'bool', false) | ||||
| ->setBoolOptions( | ->setBoolOptions( | ||||
| array( | array( | ||||
| pht('Install Beta Applications'), | pht('Enable Prototypes'), | ||||
| pht('Uninstall Beta Applications') | pht('Disable Prototypes') | ||||
| )) | )) | ||||
| ->setSummary( | ->setSummary( | ||||
| pht( | pht( | ||||
| 'Install applications which are still under development.')) | 'Install applications which are still under development.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| "Phabricator includes 'Beta' applications which are in an early ". | "IMPORTANT: The upstream does not provide support for prototype ". | ||||
| "stage of development. They range from very rough prototypes to ". | "applications.". | ||||
| "relatively complete (but unpolished) applications.\n\n". | "\n\n". | ||||
| "By default, Beta applications are not installed. You can enable ". | "Phabricator includes prototype applications which are in an ". | ||||
| "this option to install them if you're interested in previewing ". | "**early stage of development**. By default, prototype ". | ||||
| "upcoming features.\n\n". | "applications are not installed, because are often not yet ". | ||||
btrahan: because they are often not | |||||
| "After enabling Beta applications, you can selectively uninstall ". | "developed enough to be generally usable. You can enable ". | ||||
| "them (like normal applications).")), | "this option to install them if you're developing Phabricator ". | ||||
| "or are interested in previewing upcoming features.". | |||||
| "\n\n". | |||||
| "To learn more about prototypes, see [[ %s | %s ]].". | |||||
Not Done Inline ActionsThis renders as: To learn more about prototypes, see <a href="https://secure.phabricator.com/diviner/find/?name=User+Guide%3A+Prototype+Applications&type=article&jump=1" target="_blank" rel="noreferrer">User Guide: Prototype Applications</a>. hach-que: This renders as:
```
To learn more about prototypes, see <a href="https://secure.phabricator. | |||||
| "\n\n". | |||||
| "After enabling prototypes, you can selectively uninstall them ". | |||||
| "(like normal applications).", | |||||
| $proto_doc_href, | |||||
| $proto_doc_name)), | |||||
| $this->newOption('phabricator.serious-business', 'bool', false) | $this->newOption('phabricator.serious-business', 'bool', false) | ||||
| ->setBoolOptions( | ->setBoolOptions( | ||||
| array( | array( | ||||
| pht('Serious business'), | pht('Serious business'), | ||||
| pht('Shenanigans'), // That should be interesting to translate. :P | pht('Shenanigans'), // That should be interesting to translate. :P | ||||
| )) | )) | ||||
| ->setSummary( | ->setSummary( | ||||
| pht('Allows you to remove levity and jokes from the UI.')) | pht('Allows you to remove levity and jokes from the UI.')) | ||||
| ▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines | |||||
because they are often not