Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorTranslationSetting.php
| Show All 20 Lines | 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 Phabricator UI to use.'); | ||||
| } | } | ||||
| public function assertValidValue($value) { | |||||
| $locales = PhutilLocale::loadAllLocales(); | |||||
| return isset($locales[$value]); | |||||
| } | |||||
| protected function getSelectOptionGroups() { | protected function getSelectOptionGroups() { | ||||
| $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); | $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); | ||||
| $locales = PhutilLocale::loadAllLocales(); | $locales = PhutilLocale::loadAllLocales(); | ||||
| $group_labels = array( | $group_labels = array( | ||||
| 'normal' => pht('Translations'), | 'normal' => pht('Translations'), | ||||
| 'limited' => pht('Limited Translations'), | 'limited' => pht('Limited Translations'), | ||||
| 'silly' => pht('Silly Translations'), | 'silly' => pht('Silly Translations'), | ||||
| ▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines | |||||