Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / settings / setting / PhabricatorEmailRePrefixSetting.php
blob5e70b731cde727833322957f482beebda32b2828
1 <?php
3 final class PhabricatorEmailRePrefixSetting
4 extends PhabricatorSelectSetting {
6 const SETTINGKEY = 're-prefix';
8 const VALUE_RE_PREFIX = 're';
9 const VALUE_NO_PREFIX = 'none';
11 public function getSettingName() {
12 return pht('Add "Re:" Prefix');
15 public function getSettingPanelKey() {
16 return PhabricatorEmailFormatSettingsPanel::PANELKEY;
19 protected function getSettingOrder() {
20 return 200;
23 protected function getControlInstructions() {
24 return pht(
25 'The **Add "Re:" Prefix** setting adds "Re:" in front of all messages, '.
26 'even if they are not replies. If you use **Mail.app** on Mac OS X, '.
27 'this may improve mail threading.'.
28 "\n\n".
29 "| Setting | Example Mail Subject\n".
30 "|------------------------|----------------\n".
31 "| Enable \"Re:\" Prefix | ".
32 "`Re: [Differential] [Accepted] D123: Example Revision`\n".
33 "| Disable \"Re:\" Prefix | ".
34 "`[Differential] [Accepted] D123: Example Revision`");
37 public function getSettingDefaultValue() {
38 return self::VALUE_NO_PREFIX;
41 protected function getSelectOptions() {
42 return array(
43 self::VALUE_RE_PREFIX => pht('Enable "Re:" Prefix'),
44 self::VALUE_NO_PREFIX => pht('Disable "Re:" Prefix'),