Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / settings / setting / PhabricatorAccessibilitySetting.php
blob774bfcd8959fc2fa1877e3fc48a836c46bf1ac32
1 <?php
3 final class PhabricatorAccessibilitySetting
4 extends PhabricatorSelectSetting {
6 const SETTINGKEY = 'resource-postprocessor';
8 public function getSettingName() {
9 return pht('Accessibility');
12 public function getSettingPanelKey() {
13 return PhabricatorDisplayPreferencesSettingsPanel::PANELKEY;
16 protected function getSettingOrder() {
17 return 100;
20 protected function getControlInstructions() {
21 return pht(
22 'If you have difficulty reading the Phabricator UI, this setting '.
23 'may make Phabricator more accessible.');
26 public function getSettingDefaultValue() {
27 return CelerityDefaultPostprocessor::POSTPROCESSOR_KEY;
30 protected function getSelectOptions() {
31 $postprocessor_map = CelerityPostprocessor::getAllPostprocessors();
33 $postprocessor_map = mpull($postprocessor_map, 'getPostprocessorName');
34 asort($postprocessor_map);
36 $postprocessor_order = array(
37 CelerityDefaultPostprocessor::POSTPROCESSOR_KEY,
40 $postprocessor_map = array_select_keys(
41 $postprocessor_map,
42 $postprocessor_order) + $postprocessor_map;
44 return $postprocessor_map;