Improved code / updated messages.po

This commit is contained in:
Michael 2024-01-06 22:04:30 +00:00
parent aba4a482f0
commit 4aedf7f650
2 changed files with 55 additions and 51 deletions

View file

@ -129,8 +129,12 @@ class Channels extends BaseSettings
$account_type = $user['account-type'];
if ($account_type == User::ACCOUNT_TYPE_RELAY) {
$circles = [0 => $this->l10n->t('Global Community')];
$intro = $this->t('This page can be used to define the channels that will automatically be reshared by your account.');
$circles = [
0 => $this->l10n->t('Global Community')
];
} else {
$intro = $this->t('This page can be used to define your own channels.');
$circles = [
0 => $this->l10n->t('Global Community'),
-3 => $this->l10n->t('Network'),
@ -174,12 +178,6 @@ class Channels extends BaseSettings
];
}
if ($account_type == User::ACCOUNT_TYPE_RELAY) {
$intro = $this->t('This page can be used to define the channels that will automatically be reshared by your account.');
} else {
$intro = $this->t('This page can be used to define your own channels.');
}
$t = Renderer::getMarkupTemplate('settings/channels.tpl');
return Renderer::replaceMacros($t, [
'open' => count($channels) == 0,