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 @@ -102,6 +102,7 @@ protected function getItems(): void

// add/remove desktop
$actions = [];
$this->lng->loadLanguageModule('dash');
if ($this->enable_desktop) {
// add to desktop link
if (!$this->fav_manager->ifIsFavourite($ilUser->getId(), $ref_id)) {
Expand All @@ -110,14 +111,15 @@ protected function getItems(): void
$this->ctrl->setParameter($this->getParentObject(), 'item_id', $ref_id);
$this->ctrl->setParameter($this->getParentObject(), 'type', $type);
$url = $this->ctrl->getLinkTarget($this->getParentObject(), 'addToDesk');
$actions[$url] = $this->lng->txt("rep_add_to_favourites");
$actions[$url] = $this->lng->txt("add_to_favourites");
}
} else {
$this->ctrl->setParameter($this->getParentObject(), 'item_ref_id', $ref_id);
$this->ctrl->setParameter($this->getParentObject(), 'item_id', $ref_id);
$this->ctrl->setParameter($this->getParentObject(), 'type', $type);
$url = $this->ctrl->getLinkTarget($this->getParentObject(), 'removeFromDesk');
$actions[$url] = $this->lng->txt("rep_remove_from_favourites");

$actions[$url] = $this->lng->txt("remove_from_favourites");
}
}

Expand Down
5 changes: 3 additions & 2 deletions components/ILIAS/Course/classes/class.ilCourseContentGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public function showStartObjects(ilCourseStart $start_obj): void
}

// add to desktop link
$this->lng->loadLanguageModule('dash');
if ($this->course_obj->getAboStatus()) {
if (!$this->fav_manager->ifIsFavourite($this->user->getId(), $ref_id)) {
if ($this->access->checkAccess('read', '', $ref_id)) {
Expand All @@ -199,7 +200,7 @@ public function showStartObjects(ilCourseStart $start_obj): void
"LINK_HREF",
$this->ctrl->getLinkTarget($this->container_gui, 'addToDesk')
);
$this->tpl->setVariable("LINK_NAME", $this->lng->txt("rep_add_to_favourites"));
$this->tpl->setVariable("LINK_NAME", $this->lng->txt("add_to_favourites"));
$this->tpl->parseCurrentBlock();
}
} else {
Expand All @@ -212,7 +213,7 @@ public function showStartObjects(ilCourseStart $start_obj): void
"LINK_HREF",
$this->ctrl->getLinkTarget($this->container_gui, 'removeFromDesk')
);
$this->tpl->setVariable("LINK_NAME", $this->lng->txt("rep_remove_from_favourites"));
$this->tpl->setVariable("LINK_NAME", $this->lng->txt("remove_from_favourites"));
$this->tpl->parseCurrentBlock();
}
}
Expand Down
2 changes: 0 additions & 2 deletions lang/ilias_de.lang
Original file line number Diff line number Diff line change
Expand Up @@ -15047,7 +15047,6 @@ rep#:#rep_add_new_def_grp_content#:#Inhalt
rep#:#rep_add_new_def_grp_feedback#:#Feedback und Evaluation
rep#:#rep_add_new_def_grp_organisation#:#Organisation
rep#:#rep_add_new_def_grp_templates#:#Vorlagen
rep#:#rep_add_to_favourites#:#Zu Favoriten hinzufügen
rep#:#rep_added_rec_content#:#Empfohlener Inhalt wurde hinzugefügt.
rep#:#rep_added_to_favourites#:#Das Objekt wurde den Favoriten hinzugefügt.
rep#:#rep_allowed_types#:#Allowed Types
Expand Down Expand Up @@ -15104,7 +15103,6 @@ rep#:#rep_object_references_cannot_be_read#:#Keine Rechte an %s weiteren Referen
rep#:#rep_object_to_delete#:#Zu löschen
rep#:#rep_rec_content_removed#:#Empfohlener Inhalt wurde entfernt.
rep#:#rep_recommended_content#:#Empfohlene Inhalte
rep#:#rep_remove_from_favourites#:#Von Favoriten entfernen
rep#:#rep_remove_rec_content#:#Sollen die folgenden Empfehlungen wirklich entfernt werden? Die entsprechenden Inhalte bleiben weiterhin erhalten.
rep#:#rep_removed_from_favourites#:#Das Objekt wurde aus den Favoriten entfernt.
rep#:#rep_target_location#:#Zielort
Expand Down
2 changes: 0 additions & 2 deletions lang/ilias_en.lang
Original file line number Diff line number Diff line change
Expand Up @@ -15048,7 +15048,6 @@ rep#:#rep_add_new_def_grp_content#:#Content
rep#:#rep_add_new_def_grp_feedback#:#Feedback and Evaluation
rep#:#rep_add_new_def_grp_organisation#:#Organisation
rep#:#rep_add_new_def_grp_templates#:#Templates
rep#:#rep_add_to_favourites#:#Add to Favourites
rep#:#rep_added_rec_content#:#Recommended content has been added.
rep#:#rep_added_to_favourites#:#The item has been added to your favourites.
rep#:#rep_allowed_types#:#Allowed Types
Expand Down Expand Up @@ -15105,7 +15104,6 @@ rep#:#rep_object_references_cannot_be_read#:#No permissions for %s more referenc
rep#:#rep_object_to_delete#:#To Delete
rep#:#rep_rec_content_removed#:#Recommended content has been removed.
rep#:#rep_recommended_content#:#Recommended Content
rep#:#rep_remove_from_favourites#:#Remove from Favourites
rep#:#rep_remove_rec_content#:#Are you sure you want to remove the following recommended content?
rep#:#rep_removed_from_favourites#:#The item has been removed from your favourites.
rep#:#rep_target_location#:#Target Location
Expand Down
Loading