Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorTranslationSetting.php
Show All 17 Lines | final class PhabricatorTranslationSetting | ||||
} | } | ||||
public function getSettingDefaultValue() { | public function getSettingDefaultValue() { | ||||
return 'en_US'; | return 'en_US'; | ||||
} | } | ||||
protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
return pht( | return pht( | ||||
'Choose which language you would like the Phabricator UI to use.'); | 'Choose which language you would like the UI to use.'); | ||||
} | } | ||||
public function assertValidValue($value) { | public function assertValidValue($value) { | ||||
$locales = PhutilLocale::loadAllLocales(); | $locales = PhutilLocale::loadAllLocales(); | ||||
return isset($locales[$value]); | return isset($locales[$value]); | ||||
} | } | ||||
protected function getSelectOptionGroups() { | protected function getSelectOptionGroups() { | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |