[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorTranslationsConfigOptions 4 extends PhabricatorApplicationConfigOptions { 5 6 public function getName() { 7 return pht('Translations'); 8 } 9 10 public function getDescription() { 11 return pht('Options relating to translations.'); 12 } 13 14 public function getOptions() { 15 return array( 16 $this->newOption( 17 'translation.provider', 18 'class', 19 'PhabricatorEnglishTranslation') 20 ->setBaseClass('PhabricatorTranslation') 21 ->setSummary(pht('Translation class that should be used for strings.')) 22 ->setDescription( 23 pht( 24 'This allows customizing texts used in Phabricator. The class '. 25 'must extend PhabricatorTranslation.')) 26 ->addExample('PhabricatorEnglishTranslation', pht('Valid Setting')), 27 // TODO: This should be dict<string,string> I think, but that doesn't 28 // exist yet. 29 $this->newOption('translation.override', 'wild', array()) 30 ->setSummary(pht('Override translations.')) 31 ->setDescription( 32 pht( 33 "You can use 'translation.override' if you don't want to create ". 34 "a full translation to give users an option for switching to it ". 35 "and you just want to override some strings in the default ". 36 "translation.")) 37 ->addExample( 38 '{"some string": "my alternative"}', 39 pht('Valid Setting')), 40 ); 41 } 42 43 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |