mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:50:10 +00:00
Improved code / updated messages.po
This commit is contained in:
parent
aba4a482f0
commit
4aedf7f650
2 changed files with 55 additions and 51 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue