2013-01-04 16:22:52 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorTranslationsConfigOptions
|
|
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
|
|
|
|
public function getName() {
|
2014-06-09 11:36:49 -07:00
|
|
|
return pht('Translations');
|
2013-01-04 16:22:52 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getDescription() {
|
2014-06-09 11:36:49 -07:00
|
|
|
return pht('Options relating to translations.');
|
2013-01-04 16:22:52 -08:00
|
|
|
}
|
|
|
|
|
2015-02-02 10:17:25 -08:00
|
|
|
public function getFontIcon() {
|
|
|
|
return 'fa-globe';
|
|
|
|
}
|
|
|
|
|
2015-02-09 13:10:56 -08:00
|
|
|
public function getGroup() {
|
|
|
|
return 'core';
|
|
|
|
}
|
|
|
|
|
2013-01-04 16:22:52 -08:00
|
|
|
public function getOptions() {
|
|
|
|
return array(
|
|
|
|
$this->newOption('translation.override', 'wild', array())
|
2014-06-09 11:36:49 -07:00
|
|
|
->setSummary(pht('Override translations.'))
|
2013-01-04 16:22:52 -08:00
|
|
|
->setDescription(
|
|
|
|
pht(
|
|
|
|
"You can use 'translation.override' if you don't want to create ".
|
|
|
|
"a full translation to give users an option for switching to it ".
|
|
|
|
"and you just want to override some strings in the default ".
|
|
|
|
"translation."))
|
|
|
|
->addExample(
|
|
|
|
'{"some string": "my alternative"}',
|
|
|
|
pht('Valid Setting')),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|