1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 07:42:40 +01:00
phorge-phorge/src/applications/config/option/PhabricatorTranslationsConfigOptions.php
Chad Little fe5cd4ca2c Move FontIcon calls to Icon
Summary: Normalizes all `setFontIcon` calls to `setIcon`.

Test Plan: UIExamples, Almanac, Apps list, etc.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, hach-que, yelirekim

Differential Revision: https://secure.phabricator.com/D15129
2016-01-28 08:48:45 -08:00

38 lines
967 B
PHP

<?php
final class PhabricatorTranslationsConfigOptions
extends PhabricatorApplicationConfigOptions {
public function getName() {
return pht('Translations');
}
public function getDescription() {
return pht('Options relating to translations.');
}
public function getIcon() {
return 'fa-globe';
}
public function getGroup() {
return 'core';
}
public function getOptions() {
return array(
$this->newOption('translation.override', 'wild', array())
->setSummary(pht('Override translations.'))
->setDescription(
pht(
"You can use '%s' 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.",
'translation.override'))
->addExample(
'{"some string": "my alternative"}',
pht('Valid Setting')),
);
}
}