Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorTitleGlyphsSetting.php
- This file was added.
<?php | |||||
final class PhabricatorTitleGlyphsSetting | |||||
extends PhabricatorSelectSetting { | |||||
const SETTINGKEY = 'titles'; | |||||
const VALUE_TITLE_GLYPHS = 'glyph'; | |||||
const VALUE_TITLE_TEXT = 'text'; | |||||
public function getSettingName() { | |||||
return pht('Page Titles'); | |||||
} | |||||
protected function getControlInstructions() { | |||||
return pht( | |||||
'Phabricator uses unicode glyphs in page titles to provide a compact '. | |||||
'representation of the current application. You can substitute plain '. | |||||
'text instead if these glyphs do not display on your system.'); | |||||
} | |||||
public function getSettingDefaultValue() { | |||||
return self::VALUE_TITLE_GLYPHS; | |||||
} | |||||
protected function getSelectOptions() { | |||||
return array( | |||||
self::VALUE_TITLE_GLYPHS => pht("Use Unicode Glyphs: \xE2\x9A\x99"), | |||||
self::VALUE_TITLE_TEXT => pht('Use Plain Text: [Differential]'), | |||||
); | |||||
} | |||||
} |