mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
36e2d02d6e
Summary: `pht`ize a whole bunch of strings in rP. Test Plan: Intense eyeballing. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12797
38 lines
971 B
PHP
38 lines
971 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 getFontIcon() {
|
|
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')),
|
|
);
|
|
}
|
|
|
|
}
|