Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / settings / setting / PhabricatorEmailStampsSetting.php
blob39403f40a09dc4678b492821df49d703e5209af0
1 <?php
3 final class PhabricatorEmailStampsSetting
4 extends PhabricatorSelectSetting {
6 const SETTINGKEY = 'stamps';
8 const VALUE_BODY_STAMPS = 'body';
9 const VALUE_HEADER_STAMPS = 'header';
11 public function getSettingName() {
12 return pht('Send Stamps');
15 public function getSettingPanelKey() {
16 return PhabricatorEmailFormatSettingsPanel::PANELKEY;
19 protected function getSettingOrder() {
20 return 400;
23 protected function getControlInstructions() {
24 return pht(<<<EOREMARKUP
25 Phabricator stamps mail with labels like `actor(alice)` which can be used to
26 write client mail rules to organize mail. By default, these stamps are sent
27 in an `X-Phabricator-Stamps` header.
29 If you use a client which can not use headers to route mail (like Gmail),
30 you can also include the stamps in the message body so mail rules based on
31 body content can route messages.
32 EOREMARKUP
36 public function getSettingDefaultValue() {
37 return self::VALUE_HEADER_STAMPS;
40 protected function getSelectOptions() {
41 return array(
42 self::VALUE_HEADER_STAMPS => pht('Mail Headers'),
43 self::VALUE_BODY_STAMPS => pht('Mail Headers and Body'),