Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class ilContainerNewsSettingsGUI
protected bool $has_block_forced = false;
protected string $news_block_label = 'news_news_block';
protected ?string $news_block_info = 'obj_tool_setting_news_info';
protected string $public_feed_info = 'news_public_feed_info_container';

public function __construct(ilObjectGUI $a_parent_gui)
{
Expand Down Expand Up @@ -123,7 +124,7 @@ public function initForm(): ilPropertyFormGUI
if ($this->news_block_info !== null) {
$news->setInfo($this->lng->txt($this->news_block_info));
}
ilNewsForContextBlockGUI::addToSettingsForm($news);
ilNewsForContextBlockGUI::addToSettingsForm($news, $this->public_feed_info);
$form->addItem($news);
}

Expand Down Expand Up @@ -390,6 +391,11 @@ public function setNewsBlockInfo(?string $lang_key): void
$this->news_block_info = $lang_key;
}

public function setPublicFeedInfo(string $lang_key): void
{
$this->public_feed_info = $lang_key;
}

public function getNewsBlockForced(): bool
{
return $this->has_block_forced;
Expand Down
1 change: 1 addition & 0 deletions components/ILIAS/Forum/classes/class.ilObjForumGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ public function executeCommand(): void
$news_set_gui->setPublicNotification(true);
$news_set_gui->setNewsBlockLabel('frm_latest_postings_block');
$news_set_gui->setNewsBlockInfo(null);
$news_set_gui->setPublicFeedInfo('news_public_feed_info_frm');
$this->ctrl->forwardCommand($news_set_gui);
break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,10 @@ public function initSettingsForm(): void
/**
* Add inputs to the container news settings form to configure also the contextBlock options.
*/
public static function addToSettingsForm(ilFormPropertyGUI $a_input): void
{
public static function addToSettingsForm(
ilFormPropertyGUI $a_input,
string $public_feed_info
): void {
global $DIC;

$lng = $DIC->language();
Expand All @@ -887,7 +889,7 @@ public static function addToSettingsForm(ilFormPropertyGUI $a_input): void
$lng->txt("news_public_feed"),
"notifications_public_feed"
);
$radio_rss->setInfo($lng->txt("news_public_feed_info"));
$radio_rss->setInfo($lng->txt($public_feed_info));
$radio_rss->setChecked((bool) $public_feed);
$a_input->addSubItem($radio_rss);
}
Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/News/lang/news.pot
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ msgstr ""
msgid "news_public_feed_info"
msgstr ""

msgid "news_public_feed_info_container"
msgstr ""

msgid "news_public_feed_info_frm"
msgstr ""

msgid "news_really_delete_news"
msgstr ""

Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/News/lang/news_de.po
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ msgstr "Eigener Webfeed"
msgid "news_public_feed_info"
msgstr "Stellt einen RSS-Feed für die Neuigkeiten dieses Objekts bereit, der über das ▼-Menü aufgerufen werden kann."

msgid "news_public_feed_info_container"
msgstr "Stellen Sie einen RSS-Feed für die Neuigkeiten dieses Objekts bereit. Die Feed-URL finden Sie im ▼-Menü des Neuigkeiten-Blocks."

msgid "news_public_feed_info_frm"
msgstr "Stellen Sie einen RSS-Feed für die letzten Beiträge bereit. Die Feed-URL finden Sie im ▼-Menü des Blocks „Letzte Beiträge“."

msgid "news_really_delete_news"
msgstr "Soll dieser Beitrag wirklich gelöscht werden?"

Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/News/lang/news_en.po
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ msgstr "Extra RSS Feed"
msgid "news_public_feed_info"
msgstr "Make an RSS feed for this object’s news available. This can be accessed via the ▼ menu."

msgid "news_public_feed_info_container"
msgstr "Make an RSS feed for this object's news available. The feed URL can be accessed via the news block's ▼ menu."

msgid "news_public_feed_info_frm"
msgstr "Make an RSS feed for the latest posts available. The feed URL can be accessed via the 'Latest Posts' block's ▼ menu."

msgid "news_really_delete_news"
msgstr "Are you sure you want to delete this news item?"

Expand Down
6 changes: 6 additions & 0 deletions components/ILIAS/News/lang/news_fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ msgstr "Flux RSS Dédié"
msgid "news_public_feed_info"
msgstr "Si actif, une URL du flux d'actualités (RSS) distincte pour cet article est créée."

msgid "news_public_feed_info_container"
msgstr "Rendez disponible un flux RSS pour les actualités de cet objet. L'URL du flux est accessible via le menu ▼ du bloc « Actualités internes »."

msgid "news_public_feed_info_frm"
msgstr "Rendez disponible un flux RSS pour les derniers articles. L'URL du flux est accessible via le menu ▼ du bloc « Derniers Articles »."

msgid "news_really_delete_news"
msgstr "Voulez-vous vraiment supprimer cet article de nouvelles?"

Expand Down
Loading