Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / settings / setting / PhabricatorUnifiedDiffsSetting.php
blob5a94397418fa61776e23cfb437f73db02a107095
1 <?php
3 final class PhabricatorUnifiedDiffsSetting
4 extends PhabricatorSelectSetting {
6 const SETTINGKEY = 'diff-unified';
8 const VALUE_ON_SMALL_SCREENS = 'default';
9 const VALUE_ALWAYS_UNIFIED = 'unified';
11 public function getSettingName() {
12 return pht('Show Unified Diffs');
15 protected function getSettingOrder() {
16 return 100;
19 public function getSettingPanelKey() {
20 return PhabricatorDiffPreferencesSettingsPanel::PANELKEY;
23 protected function getControlInstructions() {
24 return pht(
25 'Phabricator normally shows diffs in a side-by-side layout on large '.
26 'screens and automatically switches to a unified view on small '.
27 'screens (like mobile phones). If you prefer unified diffs even on '.
28 'large screens, you can select them for use on all displays.');
31 public function getSettingDefaultValue() {
32 return self::VALUE_ON_SMALL_SCREENS;
35 protected function getSelectOptions() {
36 return array(
37 self::VALUE_ON_SMALL_SCREENS => pht('On Small Screens'),
38 self::VALUE_ALWAYS_UNIFIED => pht('Always'),