Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / settings / setting / PhabricatorMonospacedTextareasSetting.php
blobef2244f6e8346d9cfa849ab425618bb654550d29
1 <?php
3 final class PhabricatorMonospacedTextareasSetting
4 extends PhabricatorSelectSetting {
6 const SETTINGKEY = 'monospaced-textareas';
8 const VALUE_TEXT_VARIABLE_WIDTH = 'disabled';
9 const VALUE_TEXT_MONOSPACED = 'enabled';
11 public function getSettingName() {
12 return pht('Monospaced Textareas');
15 public function getSettingPanelKey() {
16 return PhabricatorDisplayPreferencesSettingsPanel::PANELKEY;
19 protected function getSettingOrder() {
20 return 600;
23 protected function getControlInstructions() {
24 return pht(
25 'You can choose to use either a monospaced or variable-width font '.
26 'in textareas in the UI. Textareas are used for editing descriptions '.
27 'and writing comments, among other things.');
30 public function getSettingDefaultValue() {
31 return self::VALUE_TEXT_VARIABLE_WIDTH;
34 protected function getSelectOptions() {
35 return array(
36 self::VALUE_TEXT_VARIABLE_WIDTH => pht('Use Variable-Width Font'),
37 self::VALUE_TEXT_MONOSPACED => pht('Use Monospaced Font'),