Compare commits

..

17 Commits

Author SHA1 Message Date
Markos Gogoulos
0c8a464845 d 2026-03-09 20:27:32 +02:00
Markos Gogoulos
e0974433a4 a 2026-03-09 20:09:20 +02:00
Markos Gogoulos
e130c7403c py 2026-03-09 19:58:14 +02:00
Markos Gogoulos
182fb9599a st 2026-03-09 19:57:46 +02:00
Markos Gogoulos
eadaffb27c a 2026-03-06 18:30:34 +02:00
Markos Gogoulos
27bba37a55 wtv 2026-03-06 17:56:56 +02:00
Markos Gogoulos
90b480b4f8 nces 2026-03-06 17:56:27 +02:00
Markos Gogoulos
583a8c4512 chec 2026-03-06 17:19:05 +02:00
Markos Gogoulos
b806ffd7f5 a 2026-03-06 17:01:15 +02:00
Markos Gogoulos
a6f7ce71c6 a 2026-03-06 16:56:29 +02:00
Markos Gogoulos
ab5f86ee4d e 2026-03-06 16:30:29 +02:00
Markos Gogoulos
216365fdb6 a 2026-03-06 16:29:51 +02:00
Markos Gogoulos
66b19b99f2 all 2026-03-04 13:27:42 +02:00
Markos Gogoulos
692b6b5f09 fix 2026-03-04 13:09:19 +02:00
Markos Gogoulos
814a7d3cee all 2026-03-04 09:12:45 +02:00
Markos Gogoulos
31571fc4cb stf 2026-03-04 09:02:01 +02:00
Markos Gogoulos
edd40d45b4 all 2026-03-03 23:07:09 +02:00
67 changed files with 687 additions and 1021 deletions

View File

@@ -1 +1 @@
VERSION = "7.ki" VERSION = "8.12"

View File

@@ -73,3 +73,8 @@ Can be set through the SAML Configurations tab:
3. **Group Role Mapping**: Maps the role returned by SAML (as set in the SAML Configuration tab) with the role in groups that user will be added 3. **Group Role Mapping**: Maps the role returned by SAML (as set in the SAML Configuration tab) with the role in groups that user will be added
4. **Group mapping**: This creates groups associated with this IDP. Group ids as they come from SAML, associated with MediaCMS groups 4. **Group mapping**: This creates groups associated with this IDP. Group ids as they come from SAML, associated with MediaCMS groups
5. **Category Mapping**: This maps a group id (from SAML response) with a category in MediaCMS 5. **Category Mapping**: This maps a group id (from SAML response) with a category in MediaCMS
## More options
USER_SEARCH_FIELD = "name_username_email"
ALLOW_MEDIA_REPLACEMENT = True

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "حذف الوسائط", "DELETE MEDIA": "حذف الوسائط",
"DOWNLOAD": "تحميل", "DOWNLOAD": "تحميل",
"DURATION": "المدة", "DURATION": "المدة",
"Delete Comments": "",
"Delete Media": "حذف الوسائط", "Delete Media": "حذف الوسائط",
"Delete media": "حذف الوسائط", "Delete media": "حذف الوسائط",
"Disable Comments": "تعطيل التعليقات", "Disable Comments": "تعطيل التعليقات",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "فشل تغيير المالك. يرجى المحاولة مرة أخرى.", "Failed to change owner. Please try again.": "فشل تغيير المالك. يرجى المحاولة مرة أخرى.",
"Failed to copy media.": "فشل نسخ الوسائط.", "Failed to copy media.": "فشل نسخ الوسائط.",
"Failed to create playlist": "فشل إنشاء قائمة التشغيل", "Failed to create playlist": "فشل إنشاء قائمة التشغيل",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "فشل حذف الوسائط. يرجى المحاولة مرة أخرى.", "Failed to delete media. Please try again.": "فشل حذف الوسائط. يرجى المحاولة مرة أخرى.",
"Failed to disable comments.": "فشل تعطيل التعليقات.", "Failed to disable comments.": "فشل تعطيل التعليقات.",
"Failed to disable download.": "فشل تعطيل التنزيل.", "Failed to disable download.": "فشل تعطيل التنزيل.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "تحديد جميع الوسائط", "Select all media": "تحديد جميع الوسائط",
"Select publish state:": "اختر حالة النشر:", "Select publish state:": "اختر حالة النشر:",
"Selected": "محدد", "Selected": "محدد",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "مشاركة مني", "Shared by me": "مشاركة مني",
"Shared with me": "مشاركة معي", "Shared with me": "مشاركة معي",
"Sign in": "تسجيل الدخول", "Sign in": "تسجيل الدخول",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "تم تفعيل التعليقات بنجاح", "Successfully Enabled comments": "تم تفعيل التعليقات بنجاح",
"Successfully changed owner": "تم تغيير المالك بنجاح", "Successfully changed owner": "تم تغيير المالك بنجاح",
"Successfully deleted": "تم الحذف بنجاح", "Successfully deleted": "تم الحذف بنجاح",
"Successfully deleted comments": "",
"Successfully updated": "تم التحديث بنجاح", "Successfully updated": "تم التحديث بنجاح",
"Successfully updated categories": "تم تحديث الفئات بنجاح", "Successfully updated categories": "تم تحديث الفئات بنجاح",
"Successfully updated playlist membership": "تم تحديث عضوية قائمة التشغيل بنجاح", "Successfully updated playlist membership": "تم تحديث عضوية قائمة التشغيل بنجاح",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "مرحباً", "Welcome": "مرحباً",
"You are going to copy": "سوف تقوم بالنسخ", "You are going to copy": "سوف تقوم بالنسخ",
"You are going to delete": "سوف تقوم بالحذف", "You are going to delete": "سوف تقوم بالحذف",
"You are going to delete all comments from": "",
"You are going to disable comments to": "سوف تقوم بتعطيل التعليقات لـ", "You are going to disable comments to": "سوف تقوم بتعطيل التعليقات لـ",
"You are going to disable download for": "سوف تقوم بتعطيل التنزيل لـ", "You are going to disable download for": "سوف تقوم بتعطيل التنزيل لـ",
"You are going to enable comments to": "سوف تقوم بتفعيل التعليقات لـ", "You are going to enable comments to": "سوف تقوم بتفعيل التعليقات لـ",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "মিডিয়া মুছুন", "DELETE MEDIA": "মিডিয়া মুছুন",
"DOWNLOAD": "ডাউনলোড", "DOWNLOAD": "ডাউনলোড",
"DURATION": "সময়কাল", "DURATION": "সময়কাল",
"Delete Comments": "",
"Delete Media": "", "Delete Media": "",
"Delete media": "মিডিয়া মুছুন", "Delete media": "মিডিয়া মুছুন",
"Disable Comments": "", "Disable Comments": "",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "", "Failed to change owner. Please try again.": "",
"Failed to copy media.": "মিডিয়া কপি করতে ব্যর্থ হয়েছে।", "Failed to copy media.": "মিডিয়া কপি করতে ব্যর্থ হয়েছে।",
"Failed to create playlist": "", "Failed to create playlist": "",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "মিডিয়া মুছতে ব্যর্থ হয়েছে। দয়া করে আবার চেষ্টা করুন।", "Failed to delete media. Please try again.": "মিডিয়া মুছতে ব্যর্থ হয়েছে। দয়া করে আবার চেষ্টা করুন।",
"Failed to disable comments.": "মন্তব্য নিষ্ক্রিয় করতে ব্যর্থ হয়েছে।", "Failed to disable comments.": "মন্তব্য নিষ্ক্রিয় করতে ব্যর্থ হয়েছে।",
"Failed to disable download.": "ডাউনলোড নিষ্ক্রিয় করতে ব্যর্থ হয়েছে।", "Failed to disable download.": "ডাউনলোড নিষ্ক্রিয় করতে ব্যর্থ হয়েছে।",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "", "Select all media": "",
"Select publish state:": "", "Select publish state:": "",
"Selected": "", "Selected": "",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "আমার দ্বারা শেয়ার করা", "Shared by me": "আমার দ্বারা শেয়ার করা",
"Shared with me": "আমার সাথে শেয়ার করা", "Shared with me": "আমার সাথে শেয়ার করা",
"Sign in": "সাইন ইন করুন", "Sign in": "সাইন ইন করুন",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "মন্তব্য সফলভাবে সক্রিয় হয়েছে", "Successfully Enabled comments": "মন্তব্য সফলভাবে সক্রিয় হয়েছে",
"Successfully changed owner": "", "Successfully changed owner": "",
"Successfully deleted": "সফলভাবে মুছে ফেলা হয়েছে", "Successfully deleted": "সফলভাবে মুছে ফেলা হয়েছে",
"Successfully deleted comments": "",
"Successfully updated": "", "Successfully updated": "",
"Successfully updated categories": "", "Successfully updated categories": "",
"Successfully updated playlist membership": "", "Successfully updated playlist membership": "",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "স্বাগতম", "Welcome": "স্বাগতম",
"You are going to copy": "আপনি কপি করতে চলেছেন", "You are going to copy": "আপনি কপি করতে চলেছেন",
"You are going to delete": "আপনি মুছে ফেলতে চলেছেন", "You are going to delete": "আপনি মুছে ফেলতে চলেছেন",
"You are going to delete all comments from": "",
"You are going to disable comments to": "আপনি মন্তব্য নিষ্ক্রিয় করতে চলেছেন", "You are going to disable comments to": "আপনি মন্তব্য নিষ্ক্রিয় করতে চলেছেন",
"You are going to disable download for": "আপনি ডাউনলোড নিষ্ক্রিয় করতে চলেছেন", "You are going to disable download for": "আপনি ডাউনলোড নিষ্ক্রিয় করতে চলেছেন",
"You are going to enable comments to": "আপনি মন্তব্য সক্রিয় করতে চলেছেন", "You are going to enable comments to": "আপনি মন্তব্য সক্রিয় করতে চলেছেন",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "SLET MEDIE", "DELETE MEDIA": "SLET MEDIE",
"DOWNLOAD": "HENT", "DOWNLOAD": "HENT",
"DURATION": "VARIGHED", "DURATION": "VARIGHED",
"Delete Comments": "",
"Delete Media": "Slet Medie", "Delete Media": "Slet Medie",
"Delete media": "Slet medie", "Delete media": "Slet medie",
"Disable Comments": "Deaktiver Kommentarer", "Disable Comments": "Deaktiver Kommentarer",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Ændring af ejer mislykkedes. Prøv venligst igen.", "Failed to change owner. Please try again.": "Ændring af ejer mislykkedes. Prøv venligst igen.",
"Failed to copy media.": "Kopiering af medie mislykkedes.", "Failed to copy media.": "Kopiering af medie mislykkedes.",
"Failed to create playlist": "Oprettelse af playliste mislykkedes", "Failed to create playlist": "Oprettelse af playliste mislykkedes",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Sletning af medie mislykkedes. Prøv venligst igen.", "Failed to delete media. Please try again.": "Sletning af medie mislykkedes. Prøv venligst igen.",
"Failed to disable comments.": "Deaktivering af kommentarer mislykkedes.", "Failed to disable comments.": "Deaktivering af kommentarer mislykkedes.",
"Failed to disable download.": "Deaktivering af download mislykkedes.", "Failed to disable download.": "Deaktivering af download mislykkedes.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Vælg alle medier", "Select all media": "Vælg alle medier",
"Select publish state:": "Vælg publiceringsstatus:", "Select publish state:": "Vælg publiceringsstatus:",
"Selected": "Valgt", "Selected": "Valgt",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Delt af mig", "Shared by me": "Delt af mig",
"Shared with me": "Delt med mig", "Shared with me": "Delt med mig",
"Sign in": "Log ind", "Sign in": "Log ind",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Kommentarer aktiveret med succes", "Successfully Enabled comments": "Kommentarer aktiveret med succes",
"Successfully changed owner": "Ejer ændret med succes", "Successfully changed owner": "Ejer ændret med succes",
"Successfully deleted": "Slettet med succes", "Successfully deleted": "Slettet med succes",
"Successfully deleted comments": "",
"Successfully updated": "Opdateret med succes", "Successfully updated": "Opdateret med succes",
"Successfully updated categories": "Kategorier opdateret med succes", "Successfully updated categories": "Kategorier opdateret med succes",
"Successfully updated playlist membership": "Playlistemedlemskab opdateret med succes", "Successfully updated playlist membership": "Playlistemedlemskab opdateret med succes",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Velkommen", "Welcome": "Velkommen",
"You are going to copy": "Du er ved at kopiere", "You are going to copy": "Du er ved at kopiere",
"You are going to delete": "Du er ved at slette", "You are going to delete": "Du er ved at slette",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Du er ved at deaktivere kommentarer til", "You are going to disable comments to": "Du er ved at deaktivere kommentarer til",
"You are going to disable download for": "Du er ved at deaktivere download for", "You are going to disable download for": "Du er ved at deaktivere download for",
"You are going to enable comments to": "Du er ved at aktivere kommentarer til", "You are going to enable comments to": "Du er ved at aktivere kommentarer til",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "MEDIEN LÖSCHEN", "DELETE MEDIA": "MEDIEN LÖSCHEN",
"DOWNLOAD": "HERUNTERLADEN", "DOWNLOAD": "HERUNTERLADEN",
"DURATION": "DAUER", "DURATION": "DAUER",
"Delete Comments": "",
"Delete Media": "Medien löschen", "Delete Media": "Medien löschen",
"Delete media": "Medien löschen", "Delete media": "Medien löschen",
"Disable Comments": "Kommentare deaktivieren", "Disable Comments": "Kommentare deaktivieren",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Fehler beim Ändern des Eigentümers. Bitte versuchen Sie es erneut.", "Failed to change owner. Please try again.": "Fehler beim Ändern des Eigentümers. Bitte versuchen Sie es erneut.",
"Failed to copy media.": "Fehler beim Kopieren der Medien.", "Failed to copy media.": "Fehler beim Kopieren der Medien.",
"Failed to create playlist": "Fehler beim Erstellen der Playlist", "Failed to create playlist": "Fehler beim Erstellen der Playlist",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Fehler beim Löschen der Medien. Bitte versuchen Sie es erneut.", "Failed to delete media. Please try again.": "Fehler beim Löschen der Medien. Bitte versuchen Sie es erneut.",
"Failed to disable comments.": "Fehler beim Deaktivieren der Kommentare.", "Failed to disable comments.": "Fehler beim Deaktivieren der Kommentare.",
"Failed to disable download.": "Fehler beim Deaktivieren des Downloads.", "Failed to disable download.": "Fehler beim Deaktivieren des Downloads.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Alle Medien auswählen", "Select all media": "Alle Medien auswählen",
"Select publish state:": "Veröffentlichungsstatus auswählen:", "Select publish state:": "Veröffentlichungsstatus auswählen:",
"Selected": "Ausgewählt", "Selected": "Ausgewählt",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Von mir geteilt", "Shared by me": "Von mir geteilt",
"Shared with me": "Mit mir geteilt", "Shared with me": "Mit mir geteilt",
"Sign in": "Anmelden", "Sign in": "Anmelden",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Kommentare erfolgreich aktiviert", "Successfully Enabled comments": "Kommentare erfolgreich aktiviert",
"Successfully changed owner": "Eigentümer erfolgreich geändert", "Successfully changed owner": "Eigentümer erfolgreich geändert",
"Successfully deleted": "Erfolgreich gelöscht", "Successfully deleted": "Erfolgreich gelöscht",
"Successfully deleted comments": "",
"Successfully updated": "Erfolgreich aktualisiert", "Successfully updated": "Erfolgreich aktualisiert",
"Successfully updated categories": "Kategorien erfolgreich aktualisiert", "Successfully updated categories": "Kategorien erfolgreich aktualisiert",
"Successfully updated playlist membership": "Playlist-Mitgliedschaft erfolgreich aktualisiert", "Successfully updated playlist membership": "Playlist-Mitgliedschaft erfolgreich aktualisiert",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Willkommen", "Welcome": "Willkommen",
"You are going to copy": "Sie werden kopieren", "You are going to copy": "Sie werden kopieren",
"You are going to delete": "Sie werden löschen", "You are going to delete": "Sie werden löschen",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Sie werden Kommentare deaktivieren für", "You are going to disable comments to": "Sie werden Kommentare deaktivieren für",
"You are going to disable download for": "Sie werden Download deaktivieren für", "You are going to disable download for": "Sie werden Download deaktivieren für",
"You are going to enable comments to": "Sie werden Kommentare aktivieren für", "You are going to enable comments to": "Sie werden Kommentare aktivieren für",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "ΔΙΑΓΡΑΦΗ ΑΡΧΕΙΟΥ", "DELETE MEDIA": "ΔΙΑΓΡΑΦΗ ΑΡΧΕΙΟΥ",
"DOWNLOAD": "ΚΑΤΕΒΑΣΜΑ", "DOWNLOAD": "ΚΑΤΕΒΑΣΜΑ",
"DURATION": "ΔΙΑΡΚΕΙΑ", "DURATION": "ΔΙΑΡΚΕΙΑ",
"Delete Comments": "",
"Delete Media": "Διαγραφή Αρχείου", "Delete Media": "Διαγραφή Αρχείου",
"Delete media": "Διαγραφή αρχείου", "Delete media": "Διαγραφή αρχείου",
"Disable Comments": "Απενεργοποίηση Σχολίων", "Disable Comments": "Απενεργοποίηση Σχολίων",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Αποτυχία αλλαγής ιδιοκτήτη. Παρακαλώ δοκιμάστε ξανά.", "Failed to change owner. Please try again.": "Αποτυχία αλλαγής ιδιοκτήτη. Παρακαλώ δοκιμάστε ξανά.",
"Failed to copy media.": "Αποτυχία αντιγραφής αρχείου.", "Failed to copy media.": "Αποτυχία αντιγραφής αρχείου.",
"Failed to create playlist": "Αποτυχία δημιουργίας λίστας", "Failed to create playlist": "Αποτυχία δημιουργίας λίστας",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Αποτυχία διαγραφής αρχείου. Παρακαλώ δοκιμάστε ξανά.", "Failed to delete media. Please try again.": "Αποτυχία διαγραφής αρχείου. Παρακαλώ δοκιμάστε ξανά.",
"Failed to disable comments.": "Αποτυχία απενεργοποίησης σχολίων.", "Failed to disable comments.": "Αποτυχία απενεργοποίησης σχολίων.",
"Failed to disable download.": "Αποτυχία απενεργοποίησης λήψης.", "Failed to disable download.": "Αποτυχία απενεργοποίησης λήψης.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Επιλογή όλων των αρχείων", "Select all media": "Επιλογή όλων των αρχείων",
"Select publish state:": "Επιλέξτε κατάσταση δημοσίευσης:", "Select publish state:": "Επιλέξτε κατάσταση δημοσίευσης:",
"Selected": "Επιλεγμένα", "Selected": "Επιλεγμένα",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Κοινοποιήθηκαν από εμένα", "Shared by me": "Κοινοποιήθηκαν από εμένα",
"Shared with me": "Κοινοποιήθηκαν σε εμένα", "Shared with me": "Κοινοποιήθηκαν σε εμένα",
"Sign in": "Σύνδεση", "Sign in": "Σύνδεση",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Τα σχόλια ενεργοποιήθηκαν με επιτυχία", "Successfully Enabled comments": "Τα σχόλια ενεργοποιήθηκαν με επιτυχία",
"Successfully changed owner": "Ο ιδιοκτήτης άλλαξε με επιτυχία", "Successfully changed owner": "Ο ιδιοκτήτης άλλαξε με επιτυχία",
"Successfully deleted": "Διαγράφηκε με επιτυχία", "Successfully deleted": "Διαγράφηκε με επιτυχία",
"Successfully deleted comments": "",
"Successfully updated": "Ενημερώθηκε με επιτυχία", "Successfully updated": "Ενημερώθηκε με επιτυχία",
"Successfully updated categories": "Οι κατηγορίες ενημερώθηκαν με επιτυχία", "Successfully updated categories": "Οι κατηγορίες ενημερώθηκαν με επιτυχία",
"Successfully updated playlist membership": "Η συμμετοχή στη λίστα ενημερώθηκε με επιτυχία", "Successfully updated playlist membership": "Η συμμετοχή στη λίστα ενημερώθηκε με επιτυχία",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Καλώς ήρθατε", "Welcome": "Καλώς ήρθατε",
"You are going to copy": "Πρόκειται να αντιγράψετε", "You are going to copy": "Πρόκειται να αντιγράψετε",
"You are going to delete": "Πρόκειται να διαγράψετε", "You are going to delete": "Πρόκειται να διαγράψετε",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Πρόκειται να απενεργοποιήσετε τα σχόλια για", "You are going to disable comments to": "Πρόκειται να απενεργοποιήσετε τα σχόλια για",
"You are going to disable download for": "Πρόκειται να απενεργοποιήσετε τη λήψη για", "You are going to disable download for": "Πρόκειται να απενεργοποιήσετε τη λήψη για",
"You are going to enable comments to": "Πρόκειται να ενεργοποιήσετε τα σχόλια για", "You are going to enable comments to": "Πρόκειται να ενεργοποιήσετε τα σχόλια για",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE": "", "DELETE": "",
"DELETE MEDIA": "", "DELETE MEDIA": "",
"Delete media": "", "Delete media": "",
"Delete Comments": "",
"Delete Media": "", "Delete Media": "",
"Disable Comments": "", "Disable Comments": "",
"Disable Download": "", "Disable Download": "",
@@ -71,6 +72,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "", "Failed to change owner. Please try again.": "",
"Failed to copy media.": "", "Failed to copy media.": "",
"Failed to create playlist": "", "Failed to create playlist": "",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "", "Failed to delete media. Please try again.": "",
"Failed to disable comments.": "", "Failed to disable comments.": "",
"Failed to disable download.": "", "Failed to disable download.": "",
@@ -184,6 +186,10 @@ translation_strings = {
"Selected": "", "Selected": "",
"selected": "", "selected": "",
"SHARE": "", "SHARE": "",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "", "Shared by me": "",
"Shared with me": "", "Shared with me": "",
"SHOW MORE": "", "SHOW MORE": "",
@@ -201,6 +207,7 @@ translation_strings = {
"Successfully changed owner": "", "Successfully changed owner": "",
"Successfully Copied": "", "Successfully Copied": "",
"Successfully deleted": "", "Successfully deleted": "",
"Successfully deleted comments": "",
"Successfully Disabled comments": "", "Successfully Disabled comments": "",
"Successfully Disabled Download": "", "Successfully Disabled Download": "",
"Successfully Enabled comments": "", "Successfully Enabled comments": "",
@@ -252,6 +259,7 @@ translation_strings = {
"yet": "", "yet": "",
"You are going to copy": "", "You are going to copy": "",
"You are going to delete": "", "You are going to delete": "",
"You are going to delete all comments from": "",
"You are going to disable comments to": "", "You are going to disable comments to": "",
"You are going to disable download for": "", "You are going to disable download for": "",
"You are going to enable comments to": "", "You are going to enable comments to": "",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "ELIMINAR MEDIOS", "DELETE MEDIA": "ELIMINAR MEDIOS",
"DOWNLOAD": "DESCARGAR", "DOWNLOAD": "DESCARGAR",
"DURATION": "DURACIÓN", "DURATION": "DURACIÓN",
"Delete Comments": "",
"Delete Media": "Eliminar Medio", "Delete Media": "Eliminar Medio",
"Delete media": "Eliminar medios", "Delete media": "Eliminar medios",
"Disable Comments": "Deshabilitar Comentarios", "Disable Comments": "Deshabilitar Comentarios",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Error al cambiar propietario. Por favor, inténtelo de nuevo.", "Failed to change owner. Please try again.": "Error al cambiar propietario. Por favor, inténtelo de nuevo.",
"Failed to copy media.": "Error al copiar medios.", "Failed to copy media.": "Error al copiar medios.",
"Failed to create playlist": "Error al crear lista de reproducción", "Failed to create playlist": "Error al crear lista de reproducción",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Error al eliminar medios. Por favor, inténtelo de nuevo.", "Failed to delete media. Please try again.": "Error al eliminar medios. Por favor, inténtelo de nuevo.",
"Failed to disable comments.": "Error al deshabilitar comentarios.", "Failed to disable comments.": "Error al deshabilitar comentarios.",
"Failed to disable download.": "Error al deshabilitar descarga.", "Failed to disable download.": "Error al deshabilitar descarga.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Seleccionar todos los medios", "Select all media": "Seleccionar todos los medios",
"Select publish state:": "Seleccionar estado de publicación:", "Select publish state:": "Seleccionar estado de publicación:",
"Selected": "Seleccionado", "Selected": "Seleccionado",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Compartido por mí", "Shared by me": "Compartido por mí",
"Shared with me": "Compartido conmigo", "Shared with me": "Compartido conmigo",
"Sign in": "Iniciar sesión", "Sign in": "Iniciar sesión",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Comentarios habilitados exitosamente", "Successfully Enabled comments": "Comentarios habilitados exitosamente",
"Successfully changed owner": "Propietario cambiado exitosamente", "Successfully changed owner": "Propietario cambiado exitosamente",
"Successfully deleted": "Eliminado exitosamente", "Successfully deleted": "Eliminado exitosamente",
"Successfully deleted comments": "",
"Successfully updated": "Actualizado exitosamente", "Successfully updated": "Actualizado exitosamente",
"Successfully updated categories": "Categorías actualizadas exitosamente", "Successfully updated categories": "Categorías actualizadas exitosamente",
"Successfully updated playlist membership": "Membresía de lista de reproducción actualizada exitosamente", "Successfully updated playlist membership": "Membresía de lista de reproducción actualizada exitosamente",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Bienvenido", "Welcome": "Bienvenido",
"You are going to copy": "Vas a copiar", "You are going to copy": "Vas a copiar",
"You are going to delete": "Vas a eliminar", "You are going to delete": "Vas a eliminar",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Vas a deshabilitar comentarios de", "You are going to disable comments to": "Vas a deshabilitar comentarios de",
"You are going to disable download for": "Vas a deshabilitar descarga de", "You are going to disable download for": "Vas a deshabilitar descarga de",
"You are going to enable comments to": "Vas a habilitar comentarios de", "You are going to enable comments to": "Vas a habilitar comentarios de",

View File

@@ -49,6 +49,7 @@ translation_strings = {
"DELETE MEDIA": "SUPPRIMER LE MÉDIA", "DELETE MEDIA": "SUPPRIMER LE MÉDIA",
"DOWNLOAD": "TÉLÉCHARGER", "DOWNLOAD": "TÉLÉCHARGER",
"DURATION": "DURÉE", "DURATION": "DURÉE",
"Delete Comments": "",
"Delete Media": "Supprimer le média", "Delete Media": "Supprimer le média",
"Delete media": "Supprimer le média", "Delete media": "Supprimer le média",
"Disable Comments": "Désactiver les commentaires", "Disable Comments": "Désactiver les commentaires",
@@ -71,6 +72,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Échec du changement de propriétaire. Veuillez réessayer.", "Failed to change owner. Please try again.": "Échec du changement de propriétaire. Veuillez réessayer.",
"Failed to copy media.": "Échec de la copie du média.", "Failed to copy media.": "Échec de la copie du média.",
"Failed to create playlist": "Échec de la création de la playlist", "Failed to create playlist": "Échec de la création de la playlist",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Échec de la suppression du média. Veuillez réessayer.", "Failed to delete media. Please try again.": "Échec de la suppression du média. Veuillez réessayer.",
"Failed to disable comments.": "Échec de la désactivation des commentaires.", "Failed to disable comments.": "Échec de la désactivation des commentaires.",
"Failed to disable download.": "Échec de la désactivation du téléchargement.", "Failed to disable download.": "Échec de la désactivation du téléchargement.",
@@ -179,6 +181,10 @@ translation_strings = {
"Select all media": "Sélectionner tous les médias", "Select all media": "Sélectionner tous les médias",
"Select publish state:": "Sélectionner l'état de publication:", "Select publish state:": "Sélectionner l'état de publication:",
"Selected": "Sélectionné", "Selected": "Sélectionné",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Partagé par moi", "Shared by me": "Partagé par moi",
"Shared with me": "Partagé avec moi", "Shared with me": "Partagé avec moi",
"Sign in": "Se connecter", "Sign in": "Se connecter",
@@ -197,6 +203,7 @@ translation_strings = {
"Successfully Enabled comments": "Commentaires activés avec succès", "Successfully Enabled comments": "Commentaires activés avec succès",
"Successfully changed owner": "Propriétaire changé avec succès", "Successfully changed owner": "Propriétaire changé avec succès",
"Successfully deleted": "Supprimé avec succès", "Successfully deleted": "Supprimé avec succès",
"Successfully deleted comments": "",
"Successfully updated": "Mis à jour avec succès", "Successfully updated": "Mis à jour avec succès",
"Successfully updated categories": "Catégories mises à jour avec succès", "Successfully updated categories": "Catégories mises à jour avec succès",
"Successfully updated playlist membership": "Adhésion à la playlist mise à jour avec succès", "Successfully updated playlist membership": "Adhésion à la playlist mise à jour avec succès",
@@ -241,6 +248,7 @@ translation_strings = {
"Welcome": "Bienvenue", "Welcome": "Bienvenue",
"You are going to copy": "Vous allez copier", "You are going to copy": "Vous allez copier",
"You are going to delete": "Vous allez supprimer", "You are going to delete": "Vous allez supprimer",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Vous allez désactiver les commentaires de", "You are going to disable comments to": "Vous allez désactiver les commentaires de",
"You are going to disable download for": "Vous allez désactiver le téléchargement de", "You are going to disable download for": "Vous allez désactiver le téléchargement de",
"You are going to enable comments to": "Vous allez activer les commentaires de", "You are going to enable comments to": "Vous allez activer les commentaires de",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "מחק מדיה", "DELETE MEDIA": "מחק מדיה",
"DOWNLOAD": "הורד", "DOWNLOAD": "הורד",
"DURATION": "משך", "DURATION": "משך",
"Delete Comments": "",
"Delete Media": "", "Delete Media": "",
"Delete media": "מחק מדיה", "Delete media": "מחק מדיה",
"Disable Comments": "", "Disable Comments": "",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "", "Failed to change owner. Please try again.": "",
"Failed to copy media.": "העתקת המדיה נכשלה.", "Failed to copy media.": "העתקת המדיה נכשלה.",
"Failed to create playlist": "", "Failed to create playlist": "",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "מחיקת המדיה נכשלה. אנא נסה שוב.", "Failed to delete media. Please try again.": "מחיקת המדיה נכשלה. אנא נסה שוב.",
"Failed to disable comments.": "ביטול התגובות נכשל.", "Failed to disable comments.": "ביטול התגובות נכשל.",
"Failed to disable download.": "ביטול ההורדה נכשל.", "Failed to disable download.": "ביטול ההורדה נכשל.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "", "Select all media": "",
"Select publish state:": "", "Select publish state:": "",
"Selected": "", "Selected": "",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "שותף על ידי", "Shared by me": "שותף על ידי",
"Shared with me": "שותף איתי", "Shared with me": "שותף איתי",
"Sign in": "התחבר", "Sign in": "התחבר",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "התגובות הופעלו בהצלחה", "Successfully Enabled comments": "התגובות הופעלו בהצלחה",
"Successfully changed owner": "", "Successfully changed owner": "",
"Successfully deleted": "נמחק בהצלחה", "Successfully deleted": "נמחק בהצלחה",
"Successfully deleted comments": "",
"Successfully updated": "", "Successfully updated": "",
"Successfully updated categories": "", "Successfully updated categories": "",
"Successfully updated playlist membership": "", "Successfully updated playlist membership": "",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "ברוך הבא", "Welcome": "ברוך הבא",
"You are going to copy": "אתה עומד להעתיק", "You are going to copy": "אתה עומד להעתיק",
"You are going to delete": "אתה עומד למחוק", "You are going to delete": "אתה עומד למחוק",
"You are going to delete all comments from": "",
"You are going to disable comments to": "אתה עומד לבטל תגובות ל", "You are going to disable comments to": "אתה עומד לבטל תגובות ל",
"You are going to disable download for": "אתה עומד לבטל הורדה עבור", "You are going to disable download for": "אתה עומד לבטל הורדה עבור",
"You are going to enable comments to": "אתה עומד להפעיל תגובות ל", "You are going to enable comments to": "אתה עומד להפעיל תגובות ל",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "मीडिया हटाएं", "DELETE MEDIA": "मीडिया हटाएं",
"DOWNLOAD": "डाउनलोड करें", "DOWNLOAD": "डाउनलोड करें",
"DURATION": "अवधि", "DURATION": "अवधि",
"Delete Comments": "",
"Delete Media": "मीडिया हटाएं", "Delete Media": "मीडिया हटाएं",
"Delete media": "मीडिया हटाएं", "Delete media": "मीडिया हटाएं",
"Disable Comments": "टिप्पणियां अक्षम करें", "Disable Comments": "टिप्पणियां अक्षम करें",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "स्वामी बदलने में विफल। कृपया पुनः प्रयास करें।", "Failed to change owner. Please try again.": "स्वामी बदलने में विफल। कृपया पुनः प्रयास करें।",
"Failed to copy media.": "मीडिया कॉपी करने में विफल।", "Failed to copy media.": "मीडिया कॉपी करने में विफल।",
"Failed to create playlist": "प्लेलिस्ट बनाने में विफल", "Failed to create playlist": "प्लेलिस्ट बनाने में विफल",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "मीडिया हटाने में विफल। कृपया पुनः प्रयास करें।", "Failed to delete media. Please try again.": "मीडिया हटाने में विफल। कृपया पुनः प्रयास करें।",
"Failed to disable comments.": "टिप्पणियों को अक्षम करने में विफल।", "Failed to disable comments.": "टिप्पणियों को अक्षम करने में विफल।",
"Failed to disable download.": "डाउनलोड अक्षम करने में विफल।", "Failed to disable download.": "डाउनलोड अक्षम करने में विफल।",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "सभी मीडिया चुनें", "Select all media": "सभी मीडिया चुनें",
"Select publish state:": "प्रकाशन स्थिति चुनें:", "Select publish state:": "प्रकाशन स्थिति चुनें:",
"Selected": "चयनित", "Selected": "चयनित",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "मेरे द्वारा साझा किया गया", "Shared by me": "मेरे द्वारा साझा किया गया",
"Shared with me": "मेरे साथ साझा किया गया", "Shared with me": "मेरे साथ साझा किया गया",
"Sign in": "साइन इन करें", "Sign in": "साइन इन करें",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "टिप्पणियां सफलतापूर्वक सक्षम की गईं", "Successfully Enabled comments": "टिप्पणियां सफलतापूर्वक सक्षम की गईं",
"Successfully changed owner": "स्वामी सफलतापूर्वक बदला गया", "Successfully changed owner": "स्वामी सफलतापूर्वक बदला गया",
"Successfully deleted": "सफलतापूर्वक हटाया गया", "Successfully deleted": "सफलतापूर्वक हटाया गया",
"Successfully deleted comments": "",
"Successfully updated": "सफलतापूर्वक अपडेट किया गया", "Successfully updated": "सफलतापूर्वक अपडेट किया गया",
"Successfully updated categories": "श्रेणियां सफलतापूर्वक अपडेट की गईं", "Successfully updated categories": "श्रेणियां सफलतापूर्वक अपडेट की गईं",
"Successfully updated playlist membership": "प्लेलिस्ट सदस्यता सफलतापूर्वक अपडेट की गई", "Successfully updated playlist membership": "प्लेलिस्ट सदस्यता सफलतापूर्वक अपडेट की गई",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "स्वागत है", "Welcome": "स्वागत है",
"You are going to copy": "आप कॉपी करने जा रहे हैं", "You are going to copy": "आप कॉपी करने जा रहे हैं",
"You are going to delete": "आप हटाने जा रहे हैं", "You are going to delete": "आप हटाने जा रहे हैं",
"You are going to delete all comments from": "",
"You are going to disable comments to": "आप टिप्पणियों को अक्षम करने जा रहे हैं", "You are going to disable comments to": "आप टिप्पणियों को अक्षम करने जा रहे हैं",
"You are going to disable download for": "आप डाउनलोड को अक्षम करने जा रहे हैं", "You are going to disable download for": "आप डाउनलोड को अक्षम करने जा रहे हैं",
"You are going to enable comments to": "आप टिप्पणियों को सक्षम करने जा रहे हैं", "You are going to enable comments to": "आप टिप्पणियों को सक्षम करने जा रहे हैं",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "HAPUS MEDIA", "DELETE MEDIA": "HAPUS MEDIA",
"DOWNLOAD": "UNDUH", "DOWNLOAD": "UNDUH",
"DURATION": "DURASI", "DURATION": "DURASI",
"Delete Comments": "",
"Delete Media": "Hapus Media", "Delete Media": "Hapus Media",
"Delete media": "Hapus media", "Delete media": "Hapus media",
"Disable Comments": "Nonaktifkan Komentar", "Disable Comments": "Nonaktifkan Komentar",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Gagal mengganti pemilik. Silakan coba lagi.", "Failed to change owner. Please try again.": "Gagal mengganti pemilik. Silakan coba lagi.",
"Failed to copy media.": "Gagal menyalin media.", "Failed to copy media.": "Gagal menyalin media.",
"Failed to create playlist": "Gagal membuat daftar putar", "Failed to create playlist": "Gagal membuat daftar putar",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Gagal menghapus media. Silakan coba lagi.", "Failed to delete media. Please try again.": "Gagal menghapus media. Silakan coba lagi.",
"Failed to disable comments.": "Gagal menonaktifkan komentar.", "Failed to disable comments.": "Gagal menonaktifkan komentar.",
"Failed to disable download.": "Gagal menonaktifkan unduhan.", "Failed to disable download.": "Gagal menonaktifkan unduhan.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Pilih semua media", "Select all media": "Pilih semua media",
"Select publish state:": "Pilih status publikasi:", "Select publish state:": "Pilih status publikasi:",
"Selected": "Dipilih", "Selected": "Dipilih",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Dibagikan oleh saya", "Shared by me": "Dibagikan oleh saya",
"Shared with me": "Dibagikan dengan saya", "Shared with me": "Dibagikan dengan saya",
"Sign in": "Masuk", "Sign in": "Masuk",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Komentar berhasil diaktifkan", "Successfully Enabled comments": "Komentar berhasil diaktifkan",
"Successfully changed owner": "Berhasil mengganti pemilik", "Successfully changed owner": "Berhasil mengganti pemilik",
"Successfully deleted": "Berhasil dihapus", "Successfully deleted": "Berhasil dihapus",
"Successfully deleted comments": "",
"Successfully updated": "Berhasil diperbarui", "Successfully updated": "Berhasil diperbarui",
"Successfully updated categories": "Kategori berhasil diperbarui", "Successfully updated categories": "Kategori berhasil diperbarui",
"Successfully updated playlist membership": "Keanggotaan daftar putar berhasil diperbarui", "Successfully updated playlist membership": "Keanggotaan daftar putar berhasil diperbarui",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Selamat datang", "Welcome": "Selamat datang",
"You are going to copy": "Anda akan menyalin", "You are going to copy": "Anda akan menyalin",
"You are going to delete": "Anda akan menghapus", "You are going to delete": "Anda akan menghapus",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Anda akan menonaktifkan komentar untuk", "You are going to disable comments to": "Anda akan menonaktifkan komentar untuk",
"You are going to disable download for": "Anda akan menonaktifkan unduhan untuk", "You are going to disable download for": "Anda akan menonaktifkan unduhan untuk",
"You are going to enable comments to": "Anda akan mengaktifkan komentar untuk", "You are going to enable comments to": "Anda akan mengaktifkan komentar untuk",

View File

@@ -49,6 +49,7 @@ translation_strings = {
"DELETE MEDIA": "ELIMINA MEDIA", "DELETE MEDIA": "ELIMINA MEDIA",
"DOWNLOAD": "SCARICA", "DOWNLOAD": "SCARICA",
"DURATION": "DURATA", "DURATION": "DURATA",
"Delete Comments": "",
"Delete Media": "Elimina Media", "Delete Media": "Elimina Media",
"Delete media": "Elimina media", "Delete media": "Elimina media",
"Disable Comments": "Disabilita Commenti", "Disable Comments": "Disabilita Commenti",
@@ -71,6 +72,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Impossibile cambiare proprietario. Riprova.", "Failed to change owner. Please try again.": "Impossibile cambiare proprietario. Riprova.",
"Failed to copy media.": "Impossibile copiare il media.", "Failed to copy media.": "Impossibile copiare il media.",
"Failed to create playlist": "Impossibile creare playlist", "Failed to create playlist": "Impossibile creare playlist",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Impossibile eliminare il media. Riprova.", "Failed to delete media. Please try again.": "Impossibile eliminare il media. Riprova.",
"Failed to disable comments.": "Impossibile disabilitare i commenti.", "Failed to disable comments.": "Impossibile disabilitare i commenti.",
"Failed to disable download.": "Impossibile disabilitare il download.", "Failed to disable download.": "Impossibile disabilitare il download.",
@@ -179,6 +181,10 @@ translation_strings = {
"Select all media": "Seleziona tutti i media", "Select all media": "Seleziona tutti i media",
"Select publish state:": "Seleziona stato di pubblicazione:", "Select publish state:": "Seleziona stato di pubblicazione:",
"Selected": "Selezionato", "Selected": "Selezionato",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Condiviso da me", "Shared by me": "Condiviso da me",
"Shared with me": "Condiviso con me", "Shared with me": "Condiviso con me",
"Sign in": "Login", "Sign in": "Login",
@@ -197,6 +203,7 @@ translation_strings = {
"Successfully Enabled comments": "Commenti abilitati con successo", "Successfully Enabled comments": "Commenti abilitati con successo",
"Successfully changed owner": "Proprietario cambiato con successo", "Successfully changed owner": "Proprietario cambiato con successo",
"Successfully deleted": "Eliminato con successo", "Successfully deleted": "Eliminato con successo",
"Successfully deleted comments": "",
"Successfully updated": "Aggiornato con successo", "Successfully updated": "Aggiornato con successo",
"Successfully updated categories": "Categorie aggiornate con successo", "Successfully updated categories": "Categorie aggiornate con successo",
"Successfully updated playlist membership": "Appartenenza alla playlist aggiornata con successo", "Successfully updated playlist membership": "Appartenenza alla playlist aggiornata con successo",
@@ -241,6 +248,7 @@ translation_strings = {
"Welcome": "Benvenuto", "Welcome": "Benvenuto",
"You are going to copy": "Stai per copiare", "You are going to copy": "Stai per copiare",
"You are going to delete": "Stai per eliminare", "You are going to delete": "Stai per eliminare",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Stai per disabilitare i commenti di", "You are going to disable comments to": "Stai per disabilitare i commenti di",
"You are going to disable download for": "Stai per disabilitare il download di", "You are going to disable download for": "Stai per disabilitare il download di",
"You are going to enable comments to": "Stai per abilitare i commenti di", "You are going to enable comments to": "Stai per abilitare i commenti di",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "メディアを削除", "DELETE MEDIA": "メディアを削除",
"DOWNLOAD": "ダウンロード", "DOWNLOAD": "ダウンロード",
"DURATION": "期間", "DURATION": "期間",
"Delete Comments": "",
"Delete Media": "メディアを削除", "Delete Media": "メディアを削除",
"Delete media": "メディアを削除", "Delete media": "メディアを削除",
"Disable Comments": "コメントを無効化", "Disable Comments": "コメントを無効化",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "所有者の変更に失敗しました。もう一度お試しください。", "Failed to change owner. Please try again.": "所有者の変更に失敗しました。もう一度お試しください。",
"Failed to copy media.": "メディアのコピーに失敗しました。", "Failed to copy media.": "メディアのコピーに失敗しました。",
"Failed to create playlist": "プレイリストの作成に失敗しました", "Failed to create playlist": "プレイリストの作成に失敗しました",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "メディアの削除に失敗しました。もう一度お試しください。", "Failed to delete media. Please try again.": "メディアの削除に失敗しました。もう一度お試しください。",
"Failed to disable comments.": "コメントの無効化に失敗しました。", "Failed to disable comments.": "コメントの無効化に失敗しました。",
"Failed to disable download.": "ダウンロードの無効化に失敗しました。", "Failed to disable download.": "ダウンロードの無効化に失敗しました。",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "すべてのメディアを選択", "Select all media": "すべてのメディアを選択",
"Select publish state:": "公開状態を選択:", "Select publish state:": "公開状態を選択:",
"Selected": "選択済み", "Selected": "選択済み",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "自分が共有", "Shared by me": "自分が共有",
"Shared with me": "共有されたもの", "Shared with me": "共有されたもの",
"Sign in": "サインイン", "Sign in": "サインイン",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "コメントが正常に有効化されました", "Successfully Enabled comments": "コメントが正常に有効化されました",
"Successfully changed owner": "所有者が正常に変更されました", "Successfully changed owner": "所有者が正常に変更されました",
"Successfully deleted": "正常に削除されました", "Successfully deleted": "正常に削除されました",
"Successfully deleted comments": "",
"Successfully updated": "正常に更新されました", "Successfully updated": "正常に更新されました",
"Successfully updated categories": "カテゴリーが正常に更新されました", "Successfully updated categories": "カテゴリーが正常に更新されました",
"Successfully updated playlist membership": "プレイリストメンバーシップが正常に更新されました", "Successfully updated playlist membership": "プレイリストメンバーシップが正常に更新されました",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "ようこそ", "Welcome": "ようこそ",
"You are going to copy": "コピーします", "You are going to copy": "コピーします",
"You are going to delete": "削除します", "You are going to delete": "削除します",
"You are going to delete all comments from": "",
"You are going to disable comments to": "コメントを無効化します", "You are going to disable comments to": "コメントを無効化します",
"You are going to disable download for": "ダウンロードを無効化します", "You are going to disable download for": "ダウンロードを無効化します",
"You are going to enable comments to": "コメントを有効化します", "You are going to enable comments to": "コメントを有効化します",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "미디어 삭제", "DELETE MEDIA": "미디어 삭제",
"DOWNLOAD": "다운로드", "DOWNLOAD": "다운로드",
"DURATION": "재생 시간", "DURATION": "재생 시간",
"Delete Comments": "",
"Delete Media": "미디어 삭제", "Delete Media": "미디어 삭제",
"Delete media": "미디어 삭제", "Delete media": "미디어 삭제",
"Disable Comments": "댓글 비활성화", "Disable Comments": "댓글 비활성화",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "소유자 변경에 실패했습니다. 다시 시도해주세요.", "Failed to change owner. Please try again.": "소유자 변경에 실패했습니다. 다시 시도해주세요.",
"Failed to copy media.": "미디어 복사에 실패했습니다.", "Failed to copy media.": "미디어 복사에 실패했습니다.",
"Failed to create playlist": "재생 목록 만들기 실패", "Failed to create playlist": "재생 목록 만들기 실패",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "미디어 삭제에 실패했습니다. 다시 시도해주세요.", "Failed to delete media. Please try again.": "미디어 삭제에 실패했습니다. 다시 시도해주세요.",
"Failed to disable comments.": "댓글 비활성화에 실패했습니다.", "Failed to disable comments.": "댓글 비활성화에 실패했습니다.",
"Failed to disable download.": "다운로드 비활성화에 실패했습니다.", "Failed to disable download.": "다운로드 비활성화에 실패했습니다.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "모든 미디어 선택", "Select all media": "모든 미디어 선택",
"Select publish state:": "게시 상태 선택:", "Select publish state:": "게시 상태 선택:",
"Selected": "선택됨", "Selected": "선택됨",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "내가 공유함", "Shared by me": "내가 공유함",
"Shared with me": "나와 공유됨", "Shared with me": "나와 공유됨",
"Sign in": "로그인", "Sign in": "로그인",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "댓글이 활성화되었습니다", "Successfully Enabled comments": "댓글이 활성화되었습니다",
"Successfully changed owner": "소유자가 변경되었습니다", "Successfully changed owner": "소유자가 변경되었습니다",
"Successfully deleted": "삭제 성공", "Successfully deleted": "삭제 성공",
"Successfully deleted comments": "",
"Successfully updated": "업데이트 성공", "Successfully updated": "업데이트 성공",
"Successfully updated categories": "카테고리가 업데이트되었습니다", "Successfully updated categories": "카테고리가 업데이트되었습니다",
"Successfully updated playlist membership": "재생 목록 멤버십이 업데이트되었습니다", "Successfully updated playlist membership": "재생 목록 멤버십이 업데이트되었습니다",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "환영합니다", "Welcome": "환영합니다",
"You are going to copy": "복사하려고 합니다", "You are going to copy": "복사하려고 합니다",
"You are going to delete": "삭제하려고 합니다", "You are going to delete": "삭제하려고 합니다",
"You are going to delete all comments from": "",
"You are going to disable comments to": "댓글을 비활성화하려고 합니다", "You are going to disable comments to": "댓글을 비활성화하려고 합니다",
"You are going to disable download for": "다운로드를 비활성화하려고 합니다", "You are going to disable download for": "다운로드를 비활성화하려고 합니다",
"You are going to enable comments to": "댓글을 활성화하려고 합니다", "You are going to enable comments to": "댓글을 활성화하려고 합니다",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "MEDIA VERWIJDEREN", "DELETE MEDIA": "MEDIA VERWIJDEREN",
"DOWNLOAD": "DOWNLOADEN", "DOWNLOAD": "DOWNLOADEN",
"DURATION": "DUUR", "DURATION": "DUUR",
"Delete Comments": "",
"Delete Media": "Media verwijderen", "Delete Media": "Media verwijderen",
"Delete media": "Media verwijderen", "Delete media": "Media verwijderen",
"Disable Comments": "Reacties uitschakelen", "Disable Comments": "Reacties uitschakelen",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Eigenaar wijzigen mislukt. Probeer het opnieuw.", "Failed to change owner. Please try again.": "Eigenaar wijzigen mislukt. Probeer het opnieuw.",
"Failed to copy media.": "Media kopiëren mislukt.", "Failed to copy media.": "Media kopiëren mislukt.",
"Failed to create playlist": "Afspeellijst maken mislukt", "Failed to create playlist": "Afspeellijst maken mislukt",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Media verwijderen mislukt. Probeer het opnieuw.", "Failed to delete media. Please try again.": "Media verwijderen mislukt. Probeer het opnieuw.",
"Failed to disable comments.": "Reacties uitschakelen mislukt.", "Failed to disable comments.": "Reacties uitschakelen mislukt.",
"Failed to disable download.": "Download uitschakelen mislukt.", "Failed to disable download.": "Download uitschakelen mislukt.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Alle media selecteren", "Select all media": "Alle media selecteren",
"Select publish state:": "Selecteer publicatiestatus:", "Select publish state:": "Selecteer publicatiestatus:",
"Selected": "Geselecteerd", "Selected": "Geselecteerd",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Gedeeld door mij", "Shared by me": "Gedeeld door mij",
"Shared with me": "Gedeeld met mij", "Shared with me": "Gedeeld met mij",
"Sign in": "Inloggen", "Sign in": "Inloggen",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Reacties succesvol ingeschakeld", "Successfully Enabled comments": "Reacties succesvol ingeschakeld",
"Successfully changed owner": "Eigenaar succesvol gewijzigd", "Successfully changed owner": "Eigenaar succesvol gewijzigd",
"Successfully deleted": "Succesvol verwijderd", "Successfully deleted": "Succesvol verwijderd",
"Successfully deleted comments": "",
"Successfully updated": "Succesvol bijgewerkt", "Successfully updated": "Succesvol bijgewerkt",
"Successfully updated categories": "Categorieën succesvol bijgewerkt", "Successfully updated categories": "Categorieën succesvol bijgewerkt",
"Successfully updated playlist membership": "Afspeellijstlidmaatschap succesvol bijgewerkt", "Successfully updated playlist membership": "Afspeellijstlidmaatschap succesvol bijgewerkt",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Welkom", "Welcome": "Welkom",
"You are going to copy": "Je gaat kopiëren", "You are going to copy": "Je gaat kopiëren",
"You are going to delete": "Je gaat verwijderen", "You are going to delete": "Je gaat verwijderen",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Je gaat reacties uitschakelen voor", "You are going to disable comments to": "Je gaat reacties uitschakelen voor",
"You are going to disable download for": "Je gaat download uitschakelen voor", "You are going to disable download for": "Je gaat download uitschakelen voor",
"You are going to enable comments to": "Je gaat reacties inschakelen voor", "You are going to enable comments to": "Je gaat reacties inschakelen voor",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "EXCLUIR MÍDIA", "DELETE MEDIA": "EXCLUIR MÍDIA",
"DOWNLOAD": "BAIXAR", "DOWNLOAD": "BAIXAR",
"DURATION": "DURAÇÃO", "DURATION": "DURAÇÃO",
"Delete Comments": "",
"Delete Media": "Excluir mídia", "Delete Media": "Excluir mídia",
"Delete media": "Excluir mídia", "Delete media": "Excluir mídia",
"Disable Comments": "Desativar comentários", "Disable Comments": "Desativar comentários",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Falha ao mudar proprietário. Por favor, tente novamente.", "Failed to change owner. Please try again.": "Falha ao mudar proprietário. Por favor, tente novamente.",
"Failed to copy media.": "Falha ao copiar mídia.", "Failed to copy media.": "Falha ao copiar mídia.",
"Failed to create playlist": "Falha ao criar playlist", "Failed to create playlist": "Falha ao criar playlist",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Falha ao excluir mídia. Por favor, tente novamente.", "Failed to delete media. Please try again.": "Falha ao excluir mídia. Por favor, tente novamente.",
"Failed to disable comments.": "Falha ao desativar comentários.", "Failed to disable comments.": "Falha ao desativar comentários.",
"Failed to disable download.": "Falha ao desativar download.", "Failed to disable download.": "Falha ao desativar download.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Selecionar todas as mídias", "Select all media": "Selecionar todas as mídias",
"Select publish state:": "Selecionar estado de publicação:", "Select publish state:": "Selecionar estado de publicação:",
"Selected": "Selecionado", "Selected": "Selecionado",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Compartilhado por mim", "Shared by me": "Compartilhado por mim",
"Shared with me": "Compartilhado comigo", "Shared with me": "Compartilhado comigo",
"Sign in": "Entrar", "Sign in": "Entrar",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Comentários ativados com sucesso", "Successfully Enabled comments": "Comentários ativados com sucesso",
"Successfully changed owner": "Proprietário alterado com sucesso", "Successfully changed owner": "Proprietário alterado com sucesso",
"Successfully deleted": "Excluído com sucesso", "Successfully deleted": "Excluído com sucesso",
"Successfully deleted comments": "",
"Successfully updated": "Atualizado com sucesso", "Successfully updated": "Atualizado com sucesso",
"Successfully updated categories": "Categorias atualizadas com sucesso", "Successfully updated categories": "Categorias atualizadas com sucesso",
"Successfully updated playlist membership": "Associação da playlist atualizada com sucesso", "Successfully updated playlist membership": "Associação da playlist atualizada com sucesso",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Bem-vindo", "Welcome": "Bem-vindo",
"You are going to copy": "Você vai copiar", "You are going to copy": "Você vai copiar",
"You are going to delete": "Você vai excluir", "You are going to delete": "Você vai excluir",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Você vai desativar comentários de", "You are going to disable comments to": "Você vai desativar comentários de",
"You are going to disable download for": "Você vai desativar download de", "You are going to disable download for": "Você vai desativar download de",
"You are going to enable comments to": "Você vai ativar comentários de", "You are going to enable comments to": "Você vai ativar comentários de",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "УДАЛИТЬ МЕДИА", "DELETE MEDIA": "УДАЛИТЬ МЕДИА",
"DOWNLOAD": "СКАЧАТЬ", "DOWNLOAD": "СКАЧАТЬ",
"DURATION": "ДЛИТЕЛЬНОСТЬ", "DURATION": "ДЛИТЕЛЬНОСТЬ",
"Delete Comments": "",
"Delete Media": "Удалить медиа", "Delete Media": "Удалить медиа",
"Delete media": "Удалить медиа", "Delete media": "Удалить медиа",
"Disable Comments": "Отключить комментарии", "Disable Comments": "Отключить комментарии",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Не удалось изменить владельца. Пожалуйста, попробуйте снова.", "Failed to change owner. Please try again.": "Не удалось изменить владельца. Пожалуйста, попробуйте снова.",
"Failed to copy media.": "Не удалось скопировать медиа.", "Failed to copy media.": "Не удалось скопировать медиа.",
"Failed to create playlist": "Не удалось создать плейлист", "Failed to create playlist": "Не удалось создать плейлист",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Не удалось удалить медиа. Пожалуйста, попробуйте снова.", "Failed to delete media. Please try again.": "Не удалось удалить медиа. Пожалуйста, попробуйте снова.",
"Failed to disable comments.": "Не удалось отключить комментарии.", "Failed to disable comments.": "Не удалось отключить комментарии.",
"Failed to disable download.": "Не удалось отключить загрузку.", "Failed to disable download.": "Не удалось отключить загрузку.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Выбрать все медиа", "Select all media": "Выбрать все медиа",
"Select publish state:": "Выберите состояние публикации:", "Select publish state:": "Выберите состояние публикации:",
"Selected": "Выбрано", "Selected": "Выбрано",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Мной поделено", "Shared by me": "Мной поделено",
"Shared with me": "Поделено со мной", "Shared with me": "Поделено со мной",
"Sign in": "Войти", "Sign in": "Войти",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Комментарии успешно включены", "Successfully Enabled comments": "Комментарии успешно включены",
"Successfully changed owner": "Владелец успешно изменен", "Successfully changed owner": "Владелец успешно изменен",
"Successfully deleted": "Успешно удалено", "Successfully deleted": "Успешно удалено",
"Successfully deleted comments": "",
"Successfully updated": "Успешно обновлено", "Successfully updated": "Успешно обновлено",
"Successfully updated categories": "Категории успешно обновлены", "Successfully updated categories": "Категории успешно обновлены",
"Successfully updated playlist membership": "Членство в плейлисте успешно обновлено", "Successfully updated playlist membership": "Членство в плейлисте успешно обновлено",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Добро пожаловать", "Welcome": "Добро пожаловать",
"You are going to copy": "Вы собираетесь скопировать", "You are going to copy": "Вы собираетесь скопировать",
"You are going to delete": "Вы собираетесь удалить", "You are going to delete": "Вы собираетесь удалить",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Вы собираетесь отключить комментарии для", "You are going to disable comments to": "Вы собираетесь отключить комментарии для",
"You are going to disable download for": "Вы собираетесь отключить загрузку для", "You are going to disable download for": "Вы собираетесь отключить загрузку для",
"You are going to enable comments to": "Вы собираетесь включить комментарии для", "You are going to enable comments to": "Вы собираетесь включить комментарии для",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "IZBRIŠI MEDIJ", "DELETE MEDIA": "IZBRIŠI MEDIJ",
"DOWNLOAD": "PRENESI", "DOWNLOAD": "PRENESI",
"DURATION": "TRAJANJE", "DURATION": "TRAJANJE",
"Delete Comments": "",
"Delete Media": "Izbriši Medij", "Delete Media": "Izbriši Medij",
"Delete media": "Izbriši medij", "Delete media": "Izbriši medij",
"Disable Comments": "Onemogoči Komentarje", "Disable Comments": "Onemogoči Komentarje",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Spreminjanje lastnika ni uspelo. Prosim poskusite ponovno.", "Failed to change owner. Please try again.": "Spreminjanje lastnika ni uspelo. Prosim poskusite ponovno.",
"Failed to copy media.": "Kopiranje medija ni uspelo.", "Failed to copy media.": "Kopiranje medija ni uspelo.",
"Failed to create playlist": "Ustvarjanje seznama predvajanja ni uspelo", "Failed to create playlist": "Ustvarjanje seznama predvajanja ni uspelo",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Brisanje medija ni uspelo. Prosim poskusite ponovno.", "Failed to delete media. Please try again.": "Brisanje medija ni uspelo. Prosim poskusite ponovno.",
"Failed to disable comments.": "Onemogočanje komentarjev ni uspelo.", "Failed to disable comments.": "Onemogočanje komentarjev ni uspelo.",
"Failed to disable download.": "Onemogočanje prenosa ni uspelo.", "Failed to disable download.": "Onemogočanje prenosa ni uspelo.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Izberi vse medije", "Select all media": "Izberi vse medije",
"Select publish state:": "Izberi stanje objave:", "Select publish state:": "Izberi stanje objave:",
"Selected": "Izbrano", "Selected": "Izbrano",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Deljeno z moje strani", "Shared by me": "Deljeno z moje strani",
"Shared with me": "Deljeno z mano", "Shared with me": "Deljeno z mano",
"Sign in": "Prijava", "Sign in": "Prijava",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Komentarji uspešno omogočeni", "Successfully Enabled comments": "Komentarji uspešno omogočeni",
"Successfully changed owner": "Lastnik uspešno spremenjen", "Successfully changed owner": "Lastnik uspešno spremenjen",
"Successfully deleted": "Uspešno izbrisano", "Successfully deleted": "Uspešno izbrisano",
"Successfully deleted comments": "",
"Successfully updated": "Uspešno posodobljeno", "Successfully updated": "Uspešno posodobljeno",
"Successfully updated categories": "Kategorije uspešno posodobljene", "Successfully updated categories": "Kategorije uspešno posodobljene",
"Successfully updated playlist membership": "Članstvo seznama predvajanja uspešno posodobljeno", "Successfully updated playlist membership": "Članstvo seznama predvajanja uspešno posodobljeno",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Dobrodošli", "Welcome": "Dobrodošli",
"You are going to copy": "Kopirate", "You are going to copy": "Kopirate",
"You are going to delete": "Brišete", "You are going to delete": "Brišete",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Onemogočate komentarje za", "You are going to disable comments to": "Onemogočate komentarje za",
"You are going to disable download for": "Onemogočate prenos za", "You are going to disable download for": "Onemogočate prenos za",
"You are going to enable comments to": "Omogočate komentarje za", "You are going to enable comments to": "Omogočate komentarje za",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "MEDYAYI SİL", "DELETE MEDIA": "MEDYAYI SİL",
"DOWNLOAD": "İNDİR", "DOWNLOAD": "İNDİR",
"DURATION": "SÜRE", "DURATION": "SÜRE",
"Delete Comments": "",
"Delete Media": "Medyayı Sil", "Delete Media": "Medyayı Sil",
"Delete media": "Medyayı sil", "Delete media": "Medyayı sil",
"Disable Comments": "Yorumları Devre Dışı Bırak", "Disable Comments": "Yorumları Devre Dışı Bırak",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "Sahip değiştirilemedi. Lütfen tekrar deneyin.", "Failed to change owner. Please try again.": "Sahip değiştirilemedi. Lütfen tekrar deneyin.",
"Failed to copy media.": "Medya kopyalanamadı.", "Failed to copy media.": "Medya kopyalanamadı.",
"Failed to create playlist": "Çalma listesi oluşturulamadı", "Failed to create playlist": "Çalma listesi oluşturulamadı",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "Medya silinemedi. Lütfen tekrar deneyin.", "Failed to delete media. Please try again.": "Medya silinemedi. Lütfen tekrar deneyin.",
"Failed to disable comments.": "Yorumlar devre dışı bırakılamadı.", "Failed to disable comments.": "Yorumlar devre dışı bırakılamadı.",
"Failed to disable download.": "İndirme devre dışı bırakılamadı.", "Failed to disable download.": "İndirme devre dışı bırakılamadı.",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "Tüm medyayı seç", "Select all media": "Tüm medyayı seç",
"Select publish state:": "Yayınlanma durumunu seç:", "Select publish state:": "Yayınlanma durumunu seç:",
"Selected": "Seçildi", "Selected": "Seçildi",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "Paylaştıklarım", "Shared by me": "Paylaştıklarım",
"Shared with me": "Benimle paylaşılanlar", "Shared with me": "Benimle paylaşılanlar",
"Sign in": "Giriş Yap", "Sign in": "Giriş Yap",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "Yorumlar başarıyla etkinleştirildi", "Successfully Enabled comments": "Yorumlar başarıyla etkinleştirildi",
"Successfully changed owner": "Sahip başarıyla değiştirildi", "Successfully changed owner": "Sahip başarıyla değiştirildi",
"Successfully deleted": "Başarıyla silindi", "Successfully deleted": "Başarıyla silindi",
"Successfully deleted comments": "",
"Successfully updated": "Başarıyla güncellendi", "Successfully updated": "Başarıyla güncellendi",
"Successfully updated categories": "Kategoriler başarıyla güncellendi", "Successfully updated categories": "Kategoriler başarıyla güncellendi",
"Successfully updated playlist membership": "Çalma listesi üyeliği başarıyla güncellendi", "Successfully updated playlist membership": "Çalma listesi üyeliği başarıyla güncellendi",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "Hoş geldiniz", "Welcome": "Hoş geldiniz",
"You are going to copy": "Kopyalayacaksınız", "You are going to copy": "Kopyalayacaksınız",
"You are going to delete": "Sileceksiniz", "You are going to delete": "Sileceksiniz",
"You are going to delete all comments from": "",
"You are going to disable comments to": "Yorumları devre dışı bırakacaksınız", "You are going to disable comments to": "Yorumları devre dışı bırakacaksınız",
"You are going to disable download for": "İndirmeyi devre dışı bırakacaksınız", "You are going to disable download for": "İndirmeyi devre dışı bırakacaksınız",
"You are going to enable comments to": "Yorumları etkinleştireceksiniz", "You are going to enable comments to": "Yorumları etkinleştireceksiniz",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "میڈیا حذف کریں", "DELETE MEDIA": "میڈیا حذف کریں",
"DOWNLOAD": "ڈاؤن لوڈ", "DOWNLOAD": "ڈاؤن لوڈ",
"DURATION": "دورانیہ", "DURATION": "دورانیہ",
"Delete Comments": "",
"Delete Media": "میڈیا حذف کریں", "Delete Media": "میڈیا حذف کریں",
"Delete media": "میڈیا حذف کریں", "Delete media": "میڈیا حذف کریں",
"Disable Comments": "تبصرے غیر فعال کریں", "Disable Comments": "تبصرے غیر فعال کریں",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "مالک تبدیل کرنے میں ناکام۔ براہ کرم دوبارہ کوشش کریں۔", "Failed to change owner. Please try again.": "مالک تبدیل کرنے میں ناکام۔ براہ کرم دوبارہ کوشش کریں۔",
"Failed to copy media.": "میڈیا کاپی کرنے میں ناکام۔", "Failed to copy media.": "میڈیا کاپی کرنے میں ناکام۔",
"Failed to create playlist": "پلے لسٹ بنانے میں ناکام", "Failed to create playlist": "پلے لسٹ بنانے میں ناکام",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "میڈیا حذف کرنے میں ناکام۔ براہ کرم دوبارہ کوشش کریں۔", "Failed to delete media. Please try again.": "میڈیا حذف کرنے میں ناکام۔ براہ کرم دوبارہ کوشش کریں۔",
"Failed to disable comments.": "تبصرے غیر فعال کرنے میں ناکام۔", "Failed to disable comments.": "تبصرے غیر فعال کرنے میں ناکام۔",
"Failed to disable download.": "ڈاؤن لوڈ غیر فعال کرنے میں ناکام۔", "Failed to disable download.": "ڈاؤن لوڈ غیر فعال کرنے میں ناکام۔",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "تمام میڈیا منتخب کریں", "Select all media": "تمام میڈیا منتخب کریں",
"Select publish state:": "اشاعت کی حالت منتخب کریں:", "Select publish state:": "اشاعت کی حالت منتخب کریں:",
"Selected": "منتخب شدہ", "Selected": "منتخب شدہ",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "میری طرف سے شیئر کیا گیا", "Shared by me": "میری طرف سے شیئر کیا گیا",
"Shared with me": "میرے ساتھ شیئر کیا گیا", "Shared with me": "میرے ساتھ شیئر کیا گیا",
"Sign in": "سائن ان کریں", "Sign in": "سائن ان کریں",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "تبصرے کامیابی سے فعال ہو گئے", "Successfully Enabled comments": "تبصرے کامیابی سے فعال ہو گئے",
"Successfully changed owner": "مالک کامیابی سے تبدیل ہو گیا", "Successfully changed owner": "مالک کامیابی سے تبدیل ہو گیا",
"Successfully deleted": "کامیابی سے حذف ہو گیا", "Successfully deleted": "کامیابی سے حذف ہو گیا",
"Successfully deleted comments": "",
"Successfully updated": "کامیابی سے اپ ڈیٹ ہو گیا", "Successfully updated": "کامیابی سے اپ ڈیٹ ہو گیا",
"Successfully updated categories": "اقسام کامیابی سے اپ ڈیٹ ہو گئیں", "Successfully updated categories": "اقسام کامیابی سے اپ ڈیٹ ہو گئیں",
"Successfully updated playlist membership": "پلے لسٹ ممبرشپ کامیابی سے اپ ڈیٹ ہو گئی", "Successfully updated playlist membership": "پلے لسٹ ممبرشپ کامیابی سے اپ ڈیٹ ہو گئی",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "خوش آمدید", "Welcome": "خوش آمدید",
"You are going to copy": "آپ کاپی کرنے جا رہے ہیں", "You are going to copy": "آپ کاپی کرنے جا رہے ہیں",
"You are going to delete": "آپ حذف کرنے جا رہے ہیں", "You are going to delete": "آپ حذف کرنے جا رہے ہیں",
"You are going to delete all comments from": "",
"You are going to disable comments to": "آپ تبصرے غیر فعال کرنے جا رہے ہیں", "You are going to disable comments to": "آپ تبصرے غیر فعال کرنے جا رہے ہیں",
"You are going to disable download for": "آپ ڈاؤن لوڈ غیر فعال کرنے جا رہے ہیں", "You are going to disable download for": "آپ ڈاؤن لوڈ غیر فعال کرنے جا رہے ہیں",
"You are going to enable comments to": "آپ تبصرے فعال کرنے جا رہے ہیں", "You are going to enable comments to": "آپ تبصرے فعال کرنے جا رہے ہیں",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "删除媒体", "DELETE MEDIA": "删除媒体",
"DOWNLOAD": "下载", "DOWNLOAD": "下载",
"DURATION": "时长", "DURATION": "时长",
"Delete Comments": "",
"Delete Media": "", "Delete Media": "",
"Delete media": "删除媒体", "Delete media": "删除媒体",
"Disable Comments": "", "Disable Comments": "",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "", "Failed to change owner. Please try again.": "",
"Failed to copy media.": "复制媒体失败。", "Failed to copy media.": "复制媒体失败。",
"Failed to create playlist": "", "Failed to create playlist": "",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "删除媒体失败。请重试。", "Failed to delete media. Please try again.": "删除媒体失败。请重试。",
"Failed to disable comments.": "禁用评论失败。", "Failed to disable comments.": "禁用评论失败。",
"Failed to disable download.": "禁用下载失败。", "Failed to disable download.": "禁用下载失败。",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "", "Select all media": "",
"Select publish state:": "", "Select publish state:": "",
"Selected": "", "Selected": "",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "我分享的", "Shared by me": "我分享的",
"Shared with me": "分享给我的", "Shared with me": "分享给我的",
"Sign in": "登录", "Sign in": "登录",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "评论已成功启用", "Successfully Enabled comments": "评论已成功启用",
"Successfully changed owner": "", "Successfully changed owner": "",
"Successfully deleted": "删除成功", "Successfully deleted": "删除成功",
"Successfully deleted comments": "",
"Successfully updated": "", "Successfully updated": "",
"Successfully updated categories": "", "Successfully updated categories": "",
"Successfully updated playlist membership": "", "Successfully updated playlist membership": "",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "欢迎", "Welcome": "欢迎",
"You are going to copy": "您将复制", "You are going to copy": "您将复制",
"You are going to delete": "您将删除", "You are going to delete": "您将删除",
"You are going to delete all comments from": "",
"You are going to disable comments to": "您将禁用评论", "You are going to disable comments to": "您将禁用评论",
"You are going to disable download for": "您将禁用下载", "You are going to disable download for": "您将禁用下载",
"You are going to enable comments to": "您将启用评论", "You are going to enable comments to": "您将启用评论",

View File

@@ -48,6 +48,7 @@ translation_strings = {
"DELETE MEDIA": "刪除影片", "DELETE MEDIA": "刪除影片",
"DOWNLOAD": "下載", "DOWNLOAD": "下載",
"DURATION": "時長", "DURATION": "時長",
"Delete Comments": "",
"Delete Media": "", "Delete Media": "",
"Delete media": "刪除媒體", "Delete media": "刪除媒體",
"Disable Comments": "", "Disable Comments": "",
@@ -70,6 +71,7 @@ translation_strings = {
"Failed to change owner. Please try again.": "", "Failed to change owner. Please try again.": "",
"Failed to copy media.": "複製媒體失敗。", "Failed to copy media.": "複製媒體失敗。",
"Failed to create playlist": "", "Failed to create playlist": "",
"Failed to delete comments.": "",
"Failed to delete media. Please try again.": "刪除媒體失敗。請再試一次。", "Failed to delete media. Please try again.": "刪除媒體失敗。請再試一次。",
"Failed to disable comments.": "停用留言失敗。", "Failed to disable comments.": "停用留言失敗。",
"Failed to disable download.": "停用下載失敗。", "Failed to disable download.": "停用下載失敗。",
@@ -178,6 +180,10 @@ translation_strings = {
"Select all media": "", "Select all media": "",
"Select publish state:": "", "Select publish state:": "",
"Selected": "", "Selected": "",
"Share with Co-Editors": "",
"Share with Co-Owners": "",
"Share with Co-Viewers": "",
"Share with Course Members": "",
"Shared by me": "我分享的", "Shared by me": "我分享的",
"Shared with me": "與我分享", "Shared with me": "與我分享",
"Sign in": "登入", "Sign in": "登入",
@@ -196,6 +202,7 @@ translation_strings = {
"Successfully Enabled comments": "成功啟用留言", "Successfully Enabled comments": "成功啟用留言",
"Successfully changed owner": "", "Successfully changed owner": "",
"Successfully deleted": "成功刪除", "Successfully deleted": "成功刪除",
"Successfully deleted comments": "",
"Successfully updated": "", "Successfully updated": "",
"Successfully updated categories": "", "Successfully updated categories": "",
"Successfully updated playlist membership": "", "Successfully updated playlist membership": "",
@@ -240,6 +247,7 @@ translation_strings = {
"Welcome": "歡迎", "Welcome": "歡迎",
"You are going to copy": "您即將複製", "You are going to copy": "您即將複製",
"You are going to delete": "您即將刪除", "You are going to delete": "您即將刪除",
"You are going to delete all comments from": "",
"You are going to disable comments to": "您即將停用留言", "You are going to disable comments to": "您即將停用留言",
"You are going to disable download for": "您即將停用下載", "You are going to disable download for": "您即將停用下載",
"You are going to enable comments to": "您即將啟用留言", "You are going to enable comments to": "您即將啟用留言",

View File

@@ -35,6 +35,7 @@ from ..methods import (
) )
from ..models import ( from ..models import (
Category, Category,
Comment,
EncodeProfile, EncodeProfile,
Media, Media,
MediaPermission, MediaPermission,
@@ -164,7 +165,14 @@ class MediaList(APIView):
if not self.request.user.is_authenticated: if not self.request.user.is_authenticated:
media = Media.objects.none() media = Media.objects.none()
else: else:
media = Media.objects.filter(permissions__owner_user=self.request.user).prefetch_related("user", "tags").distinct() base_queryset = Media.objects.prefetch_related("user", "tags")
conditions = Q(permissions__owner_user=self.request.user)
if getattr(settings, 'USE_RBAC', False):
rbac_categories = request.user.get_rbac_categories_as_contributor()
conditions |= Q(category__in=rbac_categories, user=self.request.user)
media = base_queryset.filter(conditions).distinct()
elif show_param == "shared_with_me": elif show_param == "shared_with_me":
if not self.request.user.is_authenticated: if not self.request.user.is_authenticated:
media = Media.objects.none() media = Media.objects.none()
@@ -295,6 +303,7 @@ class MediaBulkUserActions(APIView):
enum=[ enum=[
"enable_comments", "enable_comments",
"disable_comments", "disable_comments",
"delete_comments",
"delete_media", "delete_media",
"enable_download", "enable_download",
"disable_download", "disable_download",
@@ -379,6 +388,10 @@ class MediaBulkUserActions(APIView):
media.update(enable_comments=False) media.update(enable_comments=False)
return Response({"detail": f"Comments disabled for {media.count()} media items"}) return Response({"detail": f"Comments disabled for {media.count()} media items"})
elif action == "delete_comments":
deleted_count, _ = Comment.objects.filter(media__in=media).delete()
return Response({"detail": f"{deleted_count} comments deleted"})
elif action == "delete_media": elif action == "delete_media":
count = media.count() count = media.count()
media.delete() media.delete()
@@ -492,8 +505,9 @@ class MediaBulkUserActions(APIView):
users = ( users = (
MediaPermission.objects.filter(media__in=media, permission=ownership_type) MediaPermission.objects.filter(media__in=media, permission=ownership_type)
.exclude(user=request.user)
.values('user__name', 'user__username') .values('user__name', 'user__username')
.annotate(media_count=Count('media', distinct=True)) .annotate(media_count=Count('media'))
.filter(media_count=media_count) .filter(media_count=media_count)
) )

View File

@@ -47,7 +47,7 @@ export const BulkActionChangeOwnerModal: React.FC<BulkActionChangeOwnerModalProp
} }
try { try {
const response = await fetch(`/api/v1/users?name=${encodeURIComponent(name)}`); const response = await fetch(`/api/v1/users?name=${encodeURIComponent(name)}&exclude_self=True`);
if (!response.ok) { if (!response.ok) {
throw new Error(translateString('Failed to search users')); throw new Error(translateString('Failed to search users'));
} }

View File

@@ -9,14 +9,15 @@ interface BulkActionsDropdownProps {
} }
const BULK_ACTIONS = [ const BULK_ACTIONS = [
{ value: 'add-remove-coviewers', label: translateString('Add / Remove Co-Viewers'), enabled: true }, { value: 'add-remove-coviewers', label: inEmbeddedApp() ? translateString('Share with Co-Viewers') : translateString('Add / Remove Co-Viewers'), enabled: true },
{ value: 'add-remove-coeditors', label: translateString('Add / Remove Co-Editors'), enabled: true }, { value: 'add-remove-coeditors', label: inEmbeddedApp() ? translateString('Share with Co-Editors') : translateString('Add / Remove Co-Editors'), enabled: true },
{ value: 'add-remove-coowners', label: translateString('Add / Remove Co-Owners'), enabled: true }, { value: 'add-remove-coowners', label: inEmbeddedApp() ? translateString('Share with Co-Owners') : translateString('Add / Remove Co-Owners'), enabled: true },
{ value: 'add-remove-playlist', label: translateString('Add to / Remove from Playlist'), enabled: true }, { value: 'add-remove-playlist', label: translateString('Add to / Remove from Playlist'), enabled: true },
{ value: 'add-remove-category', label: inEmbeddedApp() ? translateString('Share with Course') : translateString('Add to / Remove from Category'), enabled: true }, { value: 'add-remove-category', label: inEmbeddedApp() ? translateString('Share with Course Members') : translateString('Add to / Remove from Category'), enabled: true },
{ value: 'add-remove-tags', label: translateString('Add / Remove Tags'), enabled: true }, { value: 'add-remove-tags', label: translateString('Add / Remove Tags'), enabled: true },
{ value: 'enable-comments', label: translateString('Enable Comments'), enabled: true }, { value: 'enable-comments', label: translateString('Enable Comments'), enabled: true },
{ value: 'disable-comments', label: translateString('Disable Comments'), enabled: true }, { value: 'disable-comments', label: translateString('Disable Comments'), enabled: true },
{ value: 'delete-comments', label: translateString('Delete Comments'), enabled: true },
{ value: 'enable-download', label: translateString('Enable Download'), enabled: true }, { value: 'enable-download', label: translateString('Enable Download'), enabled: true },
{ value: 'disable-download', label: translateString('Disable Download'), enabled: true }, { value: 'disable-download', label: translateString('Disable Download'), enabled: true },
{ value: 'publish-state', label: translateString('Publish State'), enabled: true }, { value: 'publish-state', label: translateString('Publish State'), enabled: true },

View File

@@ -8,7 +8,7 @@ import { PageStore, ProfilePageStore } from '../utils/stores/';
import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader'; import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader';
import ProfilePagesContent from '../components/profile-page/ProfilePagesContent'; import ProfilePagesContent from '../components/profile-page/ProfilePagesContent';
import { MediaListRow } from '../components/MediaListRow'; import { MediaListRow } from '../components/MediaListRow';
import { ProfileMediaPage } from './ProfileMediaPage'; import { ProfileMediaPageBase } from './ProfileMediaPage';
class ChannelContactForm extends React.PureComponent { class ChannelContactForm extends React.PureComponent {
constructor(props) { constructor(props) {
@@ -149,7 +149,7 @@ class ChannelContactForm extends React.PureComponent {
} }
} }
export class ProfileAboutPage extends ProfileMediaPage { export class ProfileAboutPage extends ProfileMediaPageBase {
constructor(props) { constructor(props) {
super(props, 'author-about'); super(props, 'author-about');

View File

@@ -7,9 +7,9 @@ import { MediaListWrapper } from '../components/MediaListWrapper';
import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader'; import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader';
import ProfilePagesContent from '../components/profile-page/ProfilePagesContent'; import ProfilePagesContent from '../components/profile-page/ProfilePagesContent';
import { LazyLoadItemListAsync } from '../components/item-list/LazyLoadItemListAsync.jsx'; import { LazyLoadItemListAsync } from '../components/item-list/LazyLoadItemListAsync.jsx';
import { ProfileMediaPage } from './ProfileMediaPage'; import { ProfileMediaPageBase } from './ProfileMediaPage';
export class ProfileHistoryPage extends ProfileMediaPage { export class ProfileHistoryPage extends ProfileMediaPageBase {
constructor(props) { constructor(props) {
super(props, 'author-history'); super(props, 'author-history');

View File

@@ -7,9 +7,9 @@ import { MediaListWrapper } from '../components/MediaListWrapper';
import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader'; import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader';
import ProfilePagesContent from '../components/profile-page/ProfilePagesContent'; import ProfilePagesContent from '../components/profile-page/ProfilePagesContent';
import { LazyLoadItemListAsync } from '../components/item-list/LazyLoadItemListAsync'; import { LazyLoadItemListAsync } from '../components/item-list/LazyLoadItemListAsync';
import { ProfileMediaPage } from './ProfileMediaPage'; import { ProfileMediaPageBase } from './ProfileMediaPage';
export class ProfileLikedPage extends ProfileMediaPage { export class ProfileLikedPage extends ProfileMediaPageBase {
constructor(props) { constructor(props) {
super(props, 'author-liked'); super(props, 'author-liked');

View File

@@ -8,22 +8,17 @@ import { MediaListWrapper } from '../components/MediaListWrapper';
import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader'; import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader';
import ProfilePagesContent from '../components/profile-page/ProfilePagesContent'; import ProfilePagesContent from '../components/profile-page/ProfilePagesContent';
import { LazyLoadItemListAsync } from '../components/item-list/LazyLoadItemListAsync'; import { LazyLoadItemListAsync } from '../components/item-list/LazyLoadItemListAsync';
import { BulkActionConfirmModal } from '../components/BulkActionConfirmModal'; import { BulkActionsModals } from '../components/BulkActionsModals';
import { BulkActionPermissionModal } from '../components/BulkActionPermissionModal';
import { BulkActionPlaylistModal } from '../components/BulkActionPlaylistModal';
import { BulkActionChangeOwnerModal } from '../components/BulkActionChangeOwnerModal';
import { BulkActionPublishStateModal } from '../components/BulkActionPublishStateModal';
import { BulkActionCategoryModal } from '../components/BulkActionCategoryModal';
import { BulkActionTagModal } from '../components/BulkActionTagModal';
import { ProfileMediaFilters } from '../components/search-filters/ProfileMediaFilters'; import { ProfileMediaFilters } from '../components/search-filters/ProfileMediaFilters';
import { ProfileMediaTags } from '../components/search-filters/ProfileMediaTags'; import { ProfileMediaTags } from '../components/search-filters/ProfileMediaTags';
import { ProfileMediaSorting } from '../components/search-filters/ProfileMediaSorting'; import { ProfileMediaSorting } from '../components/search-filters/ProfileMediaSorting';
import { withBulkActions } from '../utils/hoc/withBulkActions';
import { Page } from './_Page'; import { Page } from './_Page';
import '../components/profile-page/ProfilePage.scss'; import '../components/profile-page/ProfilePage.scss';
export class ProfileMediaPage extends Page { class ProfileMediaPage extends Page {
constructor(props, pageSlug) { constructor(props, pageSlug) {
super(props, 'string' === typeof pageSlug ? pageSlug : 'author-home'); super(props, 'string' === typeof pageSlug ? pageSlug : 'author-home');
@@ -36,15 +31,7 @@ export class ProfileMediaPage extends Page {
title: this.props.title, title: this.props.title,
query: ProfilePageStore.get('author-query'), query: ProfilePageStore.get('author-query'),
requestUrl: null, requestUrl: null,
selectedMedia: new Set(), selectedMedia: new Set(), // For select media embed mode only
availableMediaIds: [],
showConfirmModal: false,
pendingAction: null,
confirmMessage: '',
listKey: 0,
notificationMessage: '',
showNotification: false,
notificationType: 'success',
hiddenFilters: true, hiddenFilters: true,
hiddenTags: true, hiddenTags: true,
hiddenSorting: true, hiddenSorting: true,
@@ -52,13 +39,6 @@ export class ProfileMediaPage extends Page {
availableTags: [], availableTags: [],
selectedTag: 'all', selectedTag: 'all',
selectedSort: 'date_added_desc', selectedSort: 'date_added_desc',
showPermissionModal: false,
permissionType: null,
showPlaylistModal: false,
showChangeOwnerModal: false,
showPublishStateModal: false,
showCategoryModal: false,
showTagModal: false,
}; };
this.authorDataLoad = this.authorDataLoad.bind(this); this.authorDataLoad = this.authorDataLoad.bind(this);
@@ -66,20 +46,6 @@ export class ProfileMediaPage extends Page {
this.getCountFunc = this.getCountFunc.bind(this); this.getCountFunc = this.getCountFunc.bind(this);
this.changeRequestQuery = this.changeRequestQuery.bind(this); this.changeRequestQuery = this.changeRequestQuery.bind(this);
this.handleMediaSelection = this.handleMediaSelection.bind(this); this.handleMediaSelection = this.handleMediaSelection.bind(this);
this.handleBulkAction = this.handleBulkAction.bind(this);
this.handleConfirmCancel = this.handleConfirmCancel.bind(this);
this.handleConfirmProceed = this.handleConfirmProceed.bind(this);
this.clearSelectionAndRefresh = this.clearSelectionAndRefresh.bind(this);
this.clearSelection = this.clearSelection.bind(this);
this.executeEnableComments = this.executeEnableComments.bind(this);
this.executeDisableComments = this.executeDisableComments.bind(this);
this.executeEnableDownload = this.executeEnableDownload.bind(this);
this.executeDisableDownload = this.executeDisableDownload.bind(this);
this.executeCopyMedia = this.executeCopyMedia.bind(this);
this.showNotification = this.showNotification.bind(this);
this.handleSelectAll = this.handleSelectAll.bind(this);
this.handleDeselectAll = this.handleDeselectAll.bind(this);
this.handleItemsUpdate = this.handleItemsUpdate.bind(this);
this.onToggleFiltersClick = this.onToggleFiltersClick.bind(this); this.onToggleFiltersClick = this.onToggleFiltersClick.bind(this);
this.onToggleTagsClick = this.onToggleTagsClick.bind(this); this.onToggleTagsClick = this.onToggleTagsClick.bind(this);
this.onToggleSortingClick = this.onToggleSortingClick.bind(this); this.onToggleSortingClick = this.onToggleSortingClick.bind(this);
@@ -87,24 +53,6 @@ export class ProfileMediaPage extends Page {
this.onTagSelect = this.onTagSelect.bind(this); this.onTagSelect = this.onTagSelect.bind(this);
this.onSortSelect = this.onSortSelect.bind(this); this.onSortSelect = this.onSortSelect.bind(this);
this.onResponseDataLoaded = this.onResponseDataLoaded.bind(this); this.onResponseDataLoaded = this.onResponseDataLoaded.bind(this);
this.handlePermissionModalCancel = this.handlePermissionModalCancel.bind(this);
this.handlePermissionModalSuccess = this.handlePermissionModalSuccess.bind(this);
this.handlePermissionModalError = this.handlePermissionModalError.bind(this);
this.handlePlaylistModalCancel = this.handlePlaylistModalCancel.bind(this);
this.handlePlaylistModalSuccess = this.handlePlaylistModalSuccess.bind(this);
this.handlePlaylistModalError = this.handlePlaylistModalError.bind(this);
this.handleChangeOwnerModalCancel = this.handleChangeOwnerModalCancel.bind(this);
this.handleChangeOwnerModalSuccess = this.handleChangeOwnerModalSuccess.bind(this);
this.handleChangeOwnerModalError = this.handleChangeOwnerModalError.bind(this);
this.handlePublishStateModalCancel = this.handlePublishStateModalCancel.bind(this);
this.handlePublishStateModalSuccess = this.handlePublishStateModalSuccess.bind(this);
this.handlePublishStateModalError = this.handlePublishStateModalError.bind(this);
this.handleCategoryModalCancel = this.handleCategoryModalCancel.bind(this);
this.handleCategoryModalSuccess = this.handleCategoryModalSuccess.bind(this);
this.handleCategoryModalError = this.handleCategoryModalError.bind(this);
this.handleTagModalCancel = this.handleTagModalCancel.bind(this);
this.handleTagModalSuccess = this.handleTagModalSuccess.bind(this);
this.handleTagModalError = this.handleTagModalError.bind(this);
ProfilePageStore.on('load-author-data', this.authorDataLoad); ProfilePageStore.on('load-author-data', this.authorDataLoad);
} }
@@ -202,42 +150,22 @@ export class ProfileMediaPage extends Page {
} }
handleMediaSelection(mediaId, isSelected) { handleMediaSelection(mediaId, isSelected) {
const isSelectMediaMode = inSelectMediaEmbedMode(); // Only used in select media embed mode; normal mode is handled by bulkActions
this.setState((prevState) => { this.setState((prevState) => {
const newSelectedMedia = new Set(); const newSelectedMedia = new Set();
// In select media mode, only allow single selection if (isSelected) {
if (isSelectMediaMode) { newSelectedMedia.add(mediaId);
if (isSelected) {
newSelectedMedia.add(mediaId);
console.log('Selected media item:', mediaId);
// Send postMessage to parent window (Moodle TinyMCE plugin) if (window.parent !== window) {
if (window.parent !== window) { const baseUrl = window.location.origin;
// Construct the embed URL const embedUrl = `${baseUrl}/embed?m=${mediaId}`;
const baseUrl = window.location.origin;
const embedUrl = `${baseUrl}/embed?m=${mediaId}`;
// Send message in the format expected by the Moodle plugin window.parent.postMessage({
window.parent.postMessage({ type: 'videoSelected',
type: 'videoSelected', embedUrl: embedUrl,
embedUrl: embedUrl, videoId: mediaId
videoId: mediaId }, '*');
}, '*');
console.log('Sent postMessage to parent:', { embedUrl, videoId: mediaId });
}
}
} else {
// Normal mode: allow multiple selection
newSelectedMedia.clear();
prevState.selectedMedia.forEach((id) => newSelectedMedia.add(id));
if (isSelected) {
newSelectedMedia.add(mediaId);
} else {
newSelectedMedia.delete(mediaId);
} }
} }
@@ -245,386 +173,6 @@ export class ProfileMediaPage extends Page {
}); });
} }
handleBulkAction(action) {
const selectedCount = this.state.selectedMedia.size;
if (selectedCount === 0) {
return;
}
if (action === 'delete-media') {
this.setState({
showConfirmModal: true,
pendingAction: action,
confirmMessage:
translateString('You are going to delete') +
` ${selectedCount} ` +
translateString('media, are you sure?'),
});
} else if (action === 'enable-comments') {
this.setState({
showConfirmModal: true,
pendingAction: action,
confirmMessage:
translateString('You are going to enable comments to') +
` ${selectedCount} ` +
translateString('media, are you sure?'),
});
} else if (action === 'disable-comments') {
this.setState({
showConfirmModal: true,
pendingAction: action,
confirmMessage:
translateString('You are going to disable comments to') +
` ${selectedCount} ` +
translateString('media, are you sure?'),
});
} else if (action === 'enable-download') {
this.setState({
showConfirmModal: true,
pendingAction: action,
confirmMessage:
translateString('You are going to enable download for') +
` ${selectedCount} ` +
translateString('media, are you sure?'),
});
} else if (action === 'disable-download') {
this.setState({
showConfirmModal: true,
pendingAction: action,
confirmMessage:
translateString('You are going to disable download for') +
` ${selectedCount} ` +
translateString('media, are you sure?'),
});
} else if (action === 'copy-media') {
this.setState({
showConfirmModal: true,
pendingAction: action,
confirmMessage:
translateString('You are going to copy') +
` ${selectedCount} ` +
translateString('media, are you sure?'),
});
} else if (action === 'add-remove-coviewers') {
this.setState({
showPermissionModal: true,
permissionType: 'viewer',
});
} else if (action === 'add-remove-coeditors') {
this.setState({
showPermissionModal: true,
permissionType: 'editor',
});
} else if (action === 'add-remove-coowners') {
this.setState({
showPermissionModal: true,
permissionType: 'owner',
});
} else if (action === 'add-remove-playlist') {
this.setState({
showPlaylistModal: true,
});
} else if (action === 'change-owner') {
this.setState({
showChangeOwnerModal: true,
});
} else if (action === 'publish-state') {
this.setState({
showPublishStateModal: true,
});
} else if (action === 'add-remove-category') {
this.setState({
showCategoryModal: true,
});
} else if (action === 'add-remove-tags') {
this.setState({
showTagModal: true,
});
} else {
// Other actions can be implemented later
}
}
handleConfirmCancel() {
this.setState({
showConfirmModal: false,
pendingAction: null,
confirmMessage: '',
});
}
handleConfirmProceed() {
const action = this.state.pendingAction;
this.setState({
showConfirmModal: false,
pendingAction: null,
confirmMessage: '',
});
if (action === 'delete-media') {
this.executeDeleteMedia();
} else if (action === 'enable-comments') {
this.executeEnableComments();
} else if (action === 'disable-comments') {
this.executeDisableComments();
} else if (action === 'enable-download') {
this.executeEnableDownload();
} else if (action === 'disable-download') {
this.executeDisableDownload();
} else if (action === 'copy-media') {
this.executeCopyMedia();
}
}
executeDeleteMedia() {
const selectedIds = Array.from(this.state.selectedMedia);
const selectedCount = selectedIds.length;
fetch('/api/v1/media/user/bulk_actions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': this.getCsrfToken(),
},
body: JSON.stringify({
action: 'delete_media',
media_ids: selectedIds,
}),
})
.then((response) => {
if (!response.ok) {
throw new Error('Failed to delete media');
}
return response.json();
})
.then((data) => {
const message =
selectedCount === 1
? translateString('The media was deleted successfully.')
: translateString('Successfully deleted') + ` ${selectedCount} ` + translateString('media.');
this.showNotification(message);
this.clearSelectionAndRefresh();
})
.catch((error) => {
this.showNotification(translateString('Failed to delete media. Please try again.'), 'error');
this.clearSelectionAndRefresh();
});
}
getCsrfToken() {
const name = 'csrftoken';
let cookieValue = null;
if (document.cookie && document.cookie !== '') {
const cookies = document.cookie.split(';');
for (let i = 0; i < cookies.length; i++) {
const cookie = cookies[i].trim();
if (cookie.substring(0, name.length + 1) === name + '=') {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
clearSelectionAndRefresh() {
// Clear selected media and increment listKey to force re-render
this.setState((prevState) => ({
selectedMedia: new Set(),
listKey: prevState.listKey + 1,
}));
}
clearSelection() {
// Clear selected media without refreshing
this.setState({
selectedMedia: new Set(),
});
}
executeEnableComments() {
const selectedIds = Array.from(this.state.selectedMedia);
fetch('/api/v1/media/user/bulk_actions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': this.getCsrfToken(),
},
body: JSON.stringify({
action: 'enable_comments',
media_ids: selectedIds,
}),
})
.then((response) => {
if (!response.ok) {
throw new Error('Failed to enable comments');
}
return response.json();
})
.then((data) => {
this.showNotification(translateString('Successfully Enabled comments'));
this.clearSelection();
})
.catch((error) => {
this.showNotification(translateString('Failed to enable comments.'), 'error');
this.clearSelection();
});
}
executeDisableComments() {
const selectedIds = Array.from(this.state.selectedMedia);
fetch('/api/v1/media/user/bulk_actions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': this.getCsrfToken(),
},
body: JSON.stringify({
action: 'disable_comments',
media_ids: selectedIds,
}),
})
.then((response) => {
if (!response.ok) {
throw new Error('Failed to disable comments');
}
return response.json();
})
.then((data) => {
this.showNotification(translateString('Successfully Disabled comments'));
this.clearSelection();
})
.catch((error) => {
this.showNotification(translateString('Failed to disable comments.'), 'error');
this.clearSelection();
});
}
executeEnableDownload() {
const selectedIds = Array.from(this.state.selectedMedia);
fetch('/api/v1/media/user/bulk_actions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': this.getCsrfToken(),
},
body: JSON.stringify({
action: 'enable_download',
media_ids: selectedIds,
}),
})
.then((response) => {
if (!response.ok) {
throw new Error('Failed to enable download');
}
return response.json();
})
.then((data) => {
this.showNotification(translateString('Successfully Enabled Download'));
this.clearSelection();
})
.catch((error) => {
this.showNotification(translateString('Failed to enable download.'), 'error');
this.clearSelection();
});
}
executeDisableDownload() {
const selectedIds = Array.from(this.state.selectedMedia);
fetch('/api/v1/media/user/bulk_actions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': this.getCsrfToken(),
},
body: JSON.stringify({
action: 'disable_download',
media_ids: selectedIds,
}),
})
.then((response) => {
if (!response.ok) {
throw new Error('Failed to disable download');
}
return response.json();
})
.then((data) => {
this.showNotification(translateString('Successfully Disabled Download'));
this.clearSelection();
})
.catch((error) => {
this.showNotification(translateString('Failed to disable download.'), 'error');
this.clearSelection();
});
}
executeCopyMedia() {
const selectedIds = Array.from(this.state.selectedMedia);
fetch('/api/v1/media/user/bulk_actions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': this.getCsrfToken(),
},
body: JSON.stringify({
action: 'copy_media',
media_ids: selectedIds,
}),
})
.then((response) => {
if (!response.ok) {
throw new Error('Failed to copy media');
}
return response.json();
})
.then((data) => {
this.showNotification(translateString('Successfully Copied'));
this.clearSelectionAndRefresh();
})
.catch((error) => {
this.showNotification(translateString('Failed to copy media.'), 'error');
this.clearSelection();
});
}
showNotification(message, type = 'success') {
this.setState({
notificationMessage: message,
showNotification: true,
notificationType: type,
});
setTimeout(() => {
this.setState({ showNotification: false });
}, 5000);
}
handleItemsUpdate(items) {
// Extract media IDs from loaded items
const mediaIds = items.map((item) => item.friendly_token || item.uid || item.id);
this.setState({ availableMediaIds: mediaIds });
}
handleSelectAll() {
// Select all available media
this.setState({
selectedMedia: new Set(this.state.availableMediaIds),
});
}
handleDeselectAll() {
// Clear all selections
this.setState({
selectedMedia: new Set(),
});
}
onToggleFiltersClick() { onToggleFiltersClick() {
this.setState({ this.setState({
hiddenFilters: !this.state.hiddenFilters, hiddenFilters: !this.state.hiddenFilters,
@@ -651,7 +199,6 @@ export class ProfileMediaPage extends Page {
onTagSelect(tag) { onTagSelect(tag) {
this.setState({ selectedTag: tag }, () => { this.setState({ selectedTag: tag }, () => {
// Apply tag filter
this.onFiltersUpdate({ this.onFiltersUpdate({
media_type: this.state.filterArgs.includes('media_type') media_type: this.state.filterArgs.includes('media_type')
? this.state.filterArgs.match(/media_type=([^&]*)/)?.[1] ? this.state.filterArgs.match(/media_type=([^&]*)/)?.[1]
@@ -673,7 +220,6 @@ export class ProfileMediaPage extends Page {
onSortSelect(sortOption) { onSortSelect(sortOption) {
this.setState({ selectedSort: sortOption }, () => { this.setState({ selectedSort: sortOption }, () => {
// Apply sort filter
this.onFiltersUpdate({ this.onFiltersUpdate({
media_type: this.state.filterArgs.includes('media_type') media_type: this.state.filterArgs.includes('media_type')
? this.state.filterArgs.match(/media_type=([^&]*)/)?.[1] ? this.state.filterArgs.match(/media_type=([^&]*)/)?.[1]
@@ -722,19 +268,16 @@ export class ProfileMediaPage extends Page {
break; break;
} }
// Handle duration filter
if (updatedArgs.duration && updatedArgs.duration !== 'all') { if (updatedArgs.duration && updatedArgs.duration !== 'all') {
args.duration = updatedArgs.duration; args.duration = updatedArgs.duration;
} }
// Handle publish state filter
if (updatedArgs.publish_state && updatedArgs.publish_state !== 'all') { if (updatedArgs.publish_state && updatedArgs.publish_state !== 'all') {
args.publish_state = updatedArgs.publish_state; args.publish_state = updatedArgs.publish_state;
} }
switch (updatedArgs.sort_by) { switch (updatedArgs.sort_by) {
case 'date_added_desc': case 'date_added_desc':
// Default sorting, no need to add parameters
break; break;
case 'date_added_asc': case 'date_added_asc':
args.ordering = 'asc'; args.ordering = 'asc';
@@ -759,7 +302,6 @@ export class ProfileMediaPage extends Page {
break; break;
} }
// Handle tag filter
if (updatedArgs.tag && updatedArgs.tag !== 'all') { if (updatedArgs.tag && updatedArgs.tag !== 'all') {
args.t = updatedArgs.tag; args.t = updatedArgs.tag;
} }
@@ -775,10 +317,8 @@ export class ProfileMediaPage extends Page {
this.setState( this.setState(
{ {
filterArgs: newArgs.length ? '&' + newArgs.join('&') : '', filterArgs: newArgs.length ? '&' + newArgs.join('&') : '',
selectedMedia: new Set(), // Clear selected items when filter changes
}, },
function () { function () {
// Update the request URL with new filter args
if (!this.state.author) { if (!this.state.author) {
return; return;
} }
@@ -805,137 +345,7 @@ export class ProfileMediaPage extends Page {
); );
} }
handlePermissionModalCancel() {
this.setState({
showPermissionModal: false,
permissionType: null,
});
}
handlePermissionModalSuccess(message) {
this.showNotification(message);
this.clearSelection();
this.setState({
showPermissionModal: false,
permissionType: null,
});
}
handlePermissionModalError(message) {
this.showNotification(message, 'error');
this.setState({
showPermissionModal: false,
permissionType: null,
});
}
handlePlaylistModalCancel() {
this.setState({
showPlaylistModal: false,
});
}
handlePlaylistModalSuccess(message) {
this.showNotification(message);
this.clearSelection();
this.setState({
showPlaylistModal: false,
});
}
handlePlaylistModalError(message) {
this.showNotification(message, 'error');
this.setState({
showPlaylistModal: false,
});
}
handleChangeOwnerModalCancel() {
this.setState({
showChangeOwnerModal: false,
});
}
handleChangeOwnerModalSuccess(message) {
this.showNotification(message);
this.clearSelectionAndRefresh();
this.setState({
showChangeOwnerModal: false,
});
}
handleChangeOwnerModalError(message) {
this.showNotification(message, 'error');
this.setState({
showChangeOwnerModal: false,
});
}
handlePublishStateModalCancel() {
this.setState({
showPublishStateModal: false,
});
}
handlePublishStateModalSuccess(message) {
this.showNotification(message);
this.clearSelectionAndRefresh();
this.setState({
showPublishStateModal: false,
});
}
handlePublishStateModalError(message) {
this.showNotification(message, 'error');
this.setState({
showPublishStateModal: false,
});
}
handleCategoryModalCancel() {
this.setState({
showCategoryModal: false,
});
}
handleCategoryModalSuccess(message) {
this.showNotification(message);
this.clearSelection();
this.setState({
showCategoryModal: false,
});
}
handleCategoryModalError(message) {
this.showNotification(message, 'error');
this.setState({
showCategoryModal: false,
});
}
handleTagModalCancel() {
this.setState({
showTagModal: false,
});
}
handleTagModalSuccess(message) {
this.showNotification(message);
this.clearSelection();
this.setState({
showTagModal: false,
});
}
handleTagModalError(message) {
this.showNotification(message, 'error');
this.setState({
showTagModal: false,
});
}
onResponseDataLoaded(responseData) { onResponseDataLoaded(responseData) {
// Extract tags from response
if (responseData && responseData.tags) { if (responseData && responseData.tags) {
const tags = responseData.tags const tags = responseData.tags
.split(',') .split(',')
@@ -951,7 +361,6 @@ export class ProfileMediaPage extends Page {
const isMediaAuthor = authorData && authorData.username === MemberContext._currentValue.username; const isMediaAuthor = authorData && authorData.username === MemberContext._currentValue.username;
const isSelectMediaMode = inSelectMediaEmbedMode(); const isSelectMediaMode = inSelectMediaEmbedMode();
// Check if any filters are active (excluding default sort and tags)
const hasActiveFilters = const hasActiveFilters =
this.state.filterArgs && this.state.filterArgs &&
(this.state.filterArgs.includes('media_type=') || (this.state.filterArgs.includes('media_type=') ||
@@ -985,11 +394,11 @@ export class ProfileMediaPage extends Page {
className="items-list-ver" className="items-list-ver"
style={inEmbeddedApp() ? { marginTop: '24px' } : undefined} style={inEmbeddedApp() ? { marginTop: '24px' } : undefined}
showBulkActions={!isSelectMediaMode && isMediaAuthor} showBulkActions={!isSelectMediaMode && isMediaAuthor}
selectedCount={this.state.selectedMedia.size} selectedCount={isSelectMediaMode ? this.state.selectedMedia.size : this.props.bulkActions.selectedMedia.size}
totalCount={this.state.availableMediaIds.length} totalCount={isSelectMediaMode ? 0 : this.props.bulkActions.availableMediaIds.length}
onBulkAction={this.handleBulkAction} onBulkAction={this.props.bulkActions.handleBulkAction}
onSelectAll={this.handleSelectAll} onSelectAll={this.props.bulkActions.handleSelectAll}
onDeselectAll={this.handleDeselectAll} onDeselectAll={this.props.bulkActions.handleDeselectAll}
showAddMediaButton={!isSelectMediaMode && isMediaAuthor} showAddMediaButton={!isSelectMediaMode && isMediaAuthor}
> >
<ProfileMediaFilters <ProfileMediaFilters
@@ -1006,7 +415,7 @@ export class ProfileMediaPage extends Page {
/> />
<ProfileMediaSorting hidden={this.state.hiddenSorting} onSortSelect={this.onSortSelect} /> <ProfileMediaSorting hidden={this.state.hiddenSorting} onSortSelect={this.onSortSelect} />
<LazyLoadItemListAsync <LazyLoadItemListAsync
key={`${this.state.requestUrl}-${this.state.listKey}`} key={`${this.state.requestUrl}-${this.props.bulkActions.listKey}`}
requestUrl={this.state.requestUrl} requestUrl={this.state.requestUrl}
hideAuthor={true} hideAuthor={true}
itemsCountCallback={this.state.requestUrl ? this.getCountFunc : null} itemsCountCallback={this.state.requestUrl ? this.getCountFunc : null}
@@ -1014,97 +423,43 @@ export class ProfileMediaPage extends Page {
hideDate={!PageStore.get('config-media-item').displayPublishDate} hideDate={!PageStore.get('config-media-item').displayPublishDate}
canEdit={isMediaAuthor} canEdit={isMediaAuthor}
showSelection={isMediaAuthor || isSelectMediaMode} showSelection={isMediaAuthor || isSelectMediaMode}
hasAnySelection={this.state.selectedMedia.size > 0} hasAnySelection={isSelectMediaMode ? this.state.selectedMedia.size > 0 : this.props.bulkActions.selectedMedia.size > 0}
selectedMedia={this.state.selectedMedia} selectedMedia={isSelectMediaMode ? this.state.selectedMedia : this.props.bulkActions.selectedMedia}
onMediaSelection={this.handleMediaSelection} onMediaSelection={isSelectMediaMode ? this.handleMediaSelection : this.props.bulkActions.handleMediaSelection}
onItemsUpdate={this.handleItemsUpdate} onItemsUpdate={!isSelectMediaMode ? this.props.bulkActions.handleItemsUpdate : undefined}
onResponseDataLoaded={this.onResponseDataLoaded} onResponseDataLoaded={this.onResponseDataLoaded}
/> />
</MediaListWrapper> </MediaListWrapper>
</ProfilePagesContent> </ProfilePagesContent>
) : null, ) : null,
<BulkActionConfirmModal this.state.author && isMediaAuthor && !isSelectMediaMode ? (
key="BulkActionConfirmModal" <BulkActionsModals
isOpen={this.state.showConfirmModal} key="BulkActionsModals"
message={this.state.confirmMessage} {...this.props.bulkActions}
onCancel={this.handleConfirmCancel} selectedMediaIds={Array.from(this.props.bulkActions.selectedMedia)}
onProceed={this.handleConfirmProceed} csrfToken={this.props.bulkActions.getCsrfToken()}
/>, username={this.state.author.username}
<BulkActionPermissionModal onConfirmCancel={this.props.bulkActions.handleConfirmCancel}
key="BulkActionPermissionModal" onConfirmProceed={this.props.bulkActions.handleConfirmProceed}
isOpen={this.state.showPermissionModal} onPermissionModalCancel={this.props.bulkActions.handlePermissionModalCancel}
permissionType={this.state.permissionType} onPermissionModalSuccess={this.props.bulkActions.handlePermissionModalSuccess}
selectedMediaIds={Array.from(this.state.selectedMedia)} onPermissionModalError={this.props.bulkActions.handlePermissionModalError}
onCancel={this.handlePermissionModalCancel} onPlaylistModalCancel={this.props.bulkActions.handlePlaylistModalCancel}
onSuccess={this.handlePermissionModalSuccess} onPlaylistModalSuccess={this.props.bulkActions.handlePlaylistModalSuccess}
onError={this.handlePermissionModalError} onPlaylistModalError={this.props.bulkActions.handlePlaylistModalError}
csrfToken={this.getCsrfToken()} onChangeOwnerModalCancel={this.props.bulkActions.handleChangeOwnerModalCancel}
/>, onChangeOwnerModalSuccess={this.props.bulkActions.handleChangeOwnerModalSuccess}
<BulkActionPlaylistModal onChangeOwnerModalError={this.props.bulkActions.handleChangeOwnerModalError}
key="BulkActionPlaylistModal" onPublishStateModalCancel={this.props.bulkActions.handlePublishStateModalCancel}
isOpen={this.state.showPlaylistModal} onPublishStateModalSuccess={this.props.bulkActions.handlePublishStateModalSuccess}
selectedMediaIds={Array.from(this.state.selectedMedia)} onPublishStateModalError={this.props.bulkActions.handlePublishStateModalError}
onCancel={this.handlePlaylistModalCancel} onCategoryModalCancel={this.props.bulkActions.handleCategoryModalCancel}
onSuccess={this.handlePlaylistModalSuccess} onCategoryModalSuccess={this.props.bulkActions.handleCategoryModalSuccess}
onError={this.handlePlaylistModalError} onCategoryModalError={this.props.bulkActions.handleCategoryModalError}
csrfToken={this.getCsrfToken()} onTagModalCancel={this.props.bulkActions.handleTagModalCancel}
username={this.state.author ? this.state.author.username : ''} onTagModalSuccess={this.props.bulkActions.handleTagModalSuccess}
/>, onTagModalError={this.props.bulkActions.handleTagModalError}
<BulkActionChangeOwnerModal />
key="BulkActionChangeOwnerModal"
isOpen={this.state.showChangeOwnerModal}
selectedMediaIds={Array.from(this.state.selectedMedia)}
onCancel={this.handleChangeOwnerModalCancel}
onSuccess={this.handleChangeOwnerModalSuccess}
onError={this.handleChangeOwnerModalError}
csrfToken={this.getCsrfToken()}
/>,
<BulkActionPublishStateModal
key="BulkActionPublishStateModal"
isOpen={this.state.showPublishStateModal}
selectedMediaIds={Array.from(this.state.selectedMedia)}
onCancel={this.handlePublishStateModalCancel}
onSuccess={this.handlePublishStateModalSuccess}
onError={this.handlePublishStateModalError}
csrfToken={this.getCsrfToken()}
/>,
<BulkActionCategoryModal
key="BulkActionCategoryModal"
isOpen={this.state.showCategoryModal}
selectedMediaIds={Array.from(this.state.selectedMedia)}
onCancel={this.handleCategoryModalCancel}
onSuccess={this.handleCategoryModalSuccess}
onError={this.handleCategoryModalError}
csrfToken={this.getCsrfToken()}
/>,
<BulkActionTagModal
key="BulkActionTagModal"
isOpen={this.state.showTagModal}
selectedMediaIds={Array.from(this.state.selectedMedia)}
onCancel={this.handleTagModalCancel}
onSuccess={this.handleTagModalSuccess}
onError={this.handleTagModalError}
csrfToken={this.getCsrfToken()}
/>,
this.state.showNotification ? (
<div
key="SimpleNotification"
style={{
position: 'fixed',
bottom: '20px',
left: '260px',
backgroundColor: this.state.notificationType === 'error' ? '#f44336' : '#4CAF50',
color: 'white',
padding: '16px 24px',
borderRadius: '4px',
boxShadow: '0 4px 6px rgba(0, 0, 0, 0.1)',
zIndex: 1000,
fontSize: '14px',
fontWeight: '500',
}}
>
{this.state.notificationMessage}
</div>
) : null, ) : null,
]; ];
} }
@@ -1112,8 +467,17 @@ export class ProfileMediaPage extends Page {
ProfileMediaPage.propTypes = { ProfileMediaPage.propTypes = {
title: PropTypes.string.isRequired, title: PropTypes.string.isRequired,
bulkActions: PropTypes.object.isRequired,
}; };
ProfileMediaPage.defaultProps = { ProfileMediaPage.defaultProps = {
title: 'Uploads', title: 'Uploads',
}; };
// Export the raw class for subclasses to extend
export { ProfileMediaPage as ProfileMediaPageBase };
// Export the HOC-wrapped version as the renderable component
const WrappedProfileMediaPage = withBulkActions(ProfileMediaPage);
export { WrappedProfileMediaPage as ProfileMediaPage };
export default WrappedProfileMediaPage;

View File

@@ -6,9 +6,9 @@ import { MediaListWrapper } from '../components/MediaListWrapper';
import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader'; import ProfilePagesHeader from '../components/profile-page/ProfilePagesHeader';
import ProfilePagesContent from '../components/profile-page/ProfilePagesContent'; import ProfilePagesContent from '../components/profile-page/ProfilePagesContent';
import { LazyLoadItemListAsync } from '../components/item-list/LazyLoadItemListAsync.jsx'; import { LazyLoadItemListAsync } from '../components/item-list/LazyLoadItemListAsync.jsx';
import { ProfileMediaPage } from './ProfileMediaPage'; import { ProfileMediaPageBase } from './ProfileMediaPage';
export class ProfilePlaylistsPage extends ProfileMediaPage { export class ProfilePlaylistsPage extends ProfileMediaPageBase {
constructor(props) { constructor(props) {
super(props, 'author-playlists'); super(props, 'author-playlists');

View File

@@ -45,12 +45,14 @@ export const LayoutProvider = ({ children }) => {
const site = useContext(SiteContext); const site = useContext(SiteContext);
const cache = new BrowserCache('MediaCMS[' + site.id + '][layout]', 86400); const cache = new BrowserCache('MediaCMS[' + site.id + '][layout]', 86400);
const isMediaPage = useMemo(() => PageStore.get('current-page') === 'media', []); const isMediaPage = useMemo(() => PageStore.get('current-page') === 'media' || window.MediaCMS?.mediaId !== undefined, []);
const isEmbeddedApp = useMemo(() => inEmbeddedApp(), []); const isEmbeddedApp = useMemo(() => inEmbeddedApp(), []);
const enabledSidebar = Boolean(document.getElementById('app-sidebar') || document.querySelector('.page-sidebar')); const enabledSidebar = Boolean(document.getElementById('app-sidebar') || document.querySelector('.page-sidebar'));
const [visibleSidebar, setVisibleSidebar] = useState(cache.get('visible-sidebar')); const [visibleSidebar, setVisibleSidebar] = useState(
isMediaPage || isEmbeddedApp ? false : cache.get('visible-sidebar')
);
const [visibleMobileSearch, setVisibleMobileSearch] = useState(false); const [visibleMobileSearch, setVisibleMobileSearch] = useState(false);
const toggleMobileSearch = () => { const toggleMobileSearch = () => {

View File

@@ -111,6 +111,10 @@ export function useBulkActions() {
setShowConfirmModal(true); setShowConfirmModal(true);
setPendingAction(action); setPendingAction(action);
setConfirmMessage(translateString('You are going to disable comments to') + ` ${selectedCount} ` + translateString('media, are you sure?')); setConfirmMessage(translateString('You are going to disable comments to') + ` ${selectedCount} ` + translateString('media, are you sure?'));
} else if (action === 'delete-comments') {
setShowConfirmModal(true);
setPendingAction(action);
setConfirmMessage(translateString('You are going to delete all comments from') + ` ${selectedCount} ` + translateString('media, are you sure?'));
} else if (action === 'enable-download') { } else if (action === 'enable-download') {
setShowConfirmModal(true); setShowConfirmModal(true);
setPendingAction(action); setPendingAction(action);
@@ -165,6 +169,8 @@ export function useBulkActions() {
executeEnableComments(); executeEnableComments();
} else if (action === 'disable-comments') { } else if (action === 'disable-comments') {
executeDisableComments(); executeDisableComments();
} else if (action === 'delete-comments') {
executeDeleteComments();
} else if (action === 'enable-download') { } else if (action === 'enable-download') {
executeEnableDownload(); executeEnableDownload();
} else if (action === 'disable-download') { } else if (action === 'disable-download') {
@@ -271,6 +277,37 @@ export function useBulkActions() {
}); });
}; };
// Execute delete comments
const executeDeleteComments = () => {
const selectedIds = Array.from(selectedMedia);
fetch('/api/v1/media/user/bulk_actions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': getCsrfToken(),
},
body: JSON.stringify({
action: 'delete_comments',
media_ids: selectedIds,
}),
})
.then((response) => {
if (!response.ok) {
throw new Error('Failed to delete comments');
}
return response.json();
})
.then((data) => {
showNotificationMessage(translateString('Successfully deleted comments'));
clearSelection();
})
.catch((error) => {
showNotificationMessage(translateString('Failed to delete comments.'), 'error');
clearSelection();
});
};
// Execute enable download // Execute enable download
const executeEnableDownload = () => { const executeEnableDownload = () => {
const selectedIds = Array.from(selectedMedia); const selectedIds = Array.from(selectedMedia);

View File

@@ -1,49 +0,0 @@
<?php
/**
* Hook listener for filter_mediacms navigation hooks (Moodle 4.3+)
*
* @package filter_mediacms
* @copyright 2026 MediaCMS
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace filter_mediacms;
/**
* Extends the primary (top) navigation bar with a My Media link.
*/
class hook_listener {
/**
* Called by the \core\hook\navigation\primary_extend hook.
* Adds the My Media link to the primary nav bar when placement = 'top'.
*/
public static function extend_primary_navigation(
\core\hook\navigation\primary_extend $hook
): void {
$placement = get_config('filter_mediacms', 'mymedia_placement');
if ($placement !== 'top') {
return;
}
if (!isloggedin() || isguestuser()) {
return;
}
$url = new \moodle_url('/filter/mediacms/my_media.php');
$node = \navigation_node::create(
get_string('mymedia', 'filter_mediacms'),
$url,
\navigation_node::TYPE_CUSTOM,
null,
'mediacms_mymedia',
new \pix_icon('i/media', '')
);
$primarynav = $hook->get_primarynav();
if ($primarynav === null) {
return;
}
$primarynav->add_node($node);
}
}

View File

@@ -185,7 +185,7 @@ class text_filter extends \core_filters\text_filter {
* @return string Transformed HTML (or original if token cannot be extracted) * @return string Transformed HTML (or original if token cannot be extracted)
*/ */
private function transform_textlink($anchor_html) { private function transform_textlink($anchor_html) {
global $COURSE, $PAGE; global $COURSE;
// Extract href. // Extract href.
if (!preg_match('/href=["\']([^"\']+)["\']/', $anchor_html, $href_matches)) { if (!preg_match('/href=["\']([^"\']+)["\']/', $anchor_html, $href_matches)) {
@@ -205,36 +205,15 @@ class text_filter extends \core_filters\text_filter {
return $anchor_html; return $anchor_html;
} }
$launch_url = new moodle_url('/filter/mediacms/launch.php', [ $view_url = new moodle_url('/filter/mediacms/my_media.php', [
'token' => $token, 'token' => $token,
'courseid' => isset($COURSE->id) ? (int)$COURSE->id : 0, 'courseid' => isset($COURSE->id) ? (int)$COURSE->id : 0,
'show_media_page' => 'true',
]); ]);
if (!self::$textlink_js_added) {
self::$textlink_js_added = true;
$PAGE->requires->js_init_code(
'document.addEventListener("click",function(e){'
. 'var a=e.target.closest("a.mediacms-textlink-launch");if(!a)return;'
. 'e.preventDefault();'
. 'var f=document.createElement("iframe");'
. 'f.src=a.dataset.launchUrl;'
. 'f.style.cssText="width:100%;height:480px;border:none;display:block;";'
. 'f.allowFullscreen=true;'
. 'f.setAttribute("allow","autoplay *; fullscreen *; encrypted-media *;");'
. 'a.parentNode.replaceChild(f,a);'
. '});',
false
);
}
return html_writer::tag('a', $text_matches[1], [ return html_writer::tag('a', $text_matches[1], [
'href' => '#', 'href' => $view_url->out(false),
'class' => 'mediacms-textlink-launch', 'target' => '_blank',
'data-launch-url' => $launch_url->out(false), 'rel' => 'noopener noreferrer',
]); ]);
} }
/** @var bool Whether the inline-iframe JS has already been added to the page. */
private static $textlink_js_added = false;
} }

View File

@@ -18,12 +18,7 @@ $string['enableautoconvert'] = 'Auto-convert URLs';
$string['enableautoconvert_desc'] = 'Automatically convert MediaCMS URLs (e.g., /view?m=xyz) in text to embedded players.'; $string['enableautoconvert_desc'] = 'Automatically convert MediaCMS URLs (e.g., /view?m=xyz) in text to embedded players.';
$string['privacy:metadata'] = 'The MediaCMS filter does not store any personal data.'; $string['privacy:metadata'] = 'The MediaCMS filter does not store any personal data.';
// My Media page.
$string['mymedia'] = 'My Media'; $string['mymedia'] = 'My Media';
$string['mymedia_placement'] = 'My Media link placement';
$string['mymedia_placement_desc'] = 'Where to display the My Media link in the Moodle interface.';
$string['mymedia_placement_top'] = 'Top navigation';
$string['mymedia_placement_user'] = 'User navigation';
$string['notconfigured'] = 'MediaCMS is not fully configured. Please set the MediaCMS URL and LTI Tool in Site Administration → Plugins → Filters → MediaCMS.'; $string['notconfigured'] = 'MediaCMS is not fully configured. Please set the MediaCMS URL and LTI Tool in Site Administration → Plugins → Filters → MediaCMS.';
$string['ltitoolnotfound'] = 'The configured LTI tool could not be found. Please check the MediaCMS filter settings.'; $string['ltitoolnotfound'] = 'The configured LTI tool could not be found. Please check the MediaCMS filter settings.';
$string['cannotcreatedummyactivity'] = 'Could not create the MediaCMS launcher activity. Please check course permissions.'; $string['cannotcreatedummyactivity'] = 'Could not create the MediaCMS launcher activity. Please check course permissions.';

View File

@@ -10,10 +10,8 @@
require_once(__DIR__ . '/../../config.php'); require_once(__DIR__ . '/../../config.php');
require_once($CFG->dirroot . '/mod/lti/lib.php'); require_once($CFG->dirroot . '/mod/lti/lib.php');
require_once($CFG->dirroot . '/mod/lti/locallib.php'); require_once($CFG->dirroot . '/mod/lti/locallib.php');
require_once($CFG->dirroot . '/course/modlib.php');
require_once(__DIR__ . '/locallib.php');
global $SITE, $DB, $PAGE, $OUTPUT, $CFG; global $SITE, $DB, $PAGE, $OUTPUT, $CFG, $SESSION;
require_login(); require_login();
@@ -34,18 +32,14 @@ $show_media_page = optional_param('show_media_page', '', PARAM_TEXT);
$mediacmsurl = get_config('filter_mediacms', 'mediacmsurl'); $mediacmsurl = get_config('filter_mediacms', 'mediacmsurl');
$ltitoolid = get_config('filter_mediacms', 'ltitoolid'); $ltitoolid = get_config('filter_mediacms', 'ltitoolid');
// No default dimensions - use what's provided or nothing
if (empty($mediacmsurl)) { if (empty($mediacmsurl)) {
die('MediaCMS URL not configured'); die('MediaCMS URL not configured');
} }
// Tool Selection Logic
$type = false; $type = false;
if (!empty($ltitoolid)) { if (!empty($ltitoolid)) {
$type = $DB->get_record('lti_types', ['id' => $ltitoolid]); $type = $DB->get_record('lti_types', ['id' => $ltitoolid]);
} }
if (!$type) { if (!$type) {
die('LTI tool not found or not configured.'); die('LTI tool not found or not configured.');
} }
@@ -59,22 +53,9 @@ if ($courseid && $courseid != SITEID) {
$course = $SITE; $course = $SITE;
} }
// Get or create the dummy activity (visible, non-stealth). // Build custom params for this video embed.
try {
$dummy_cmid = filter_mediacms_get_dummy_activity($courseid, $type->id);
} catch (Exception $e) {
if (!has_capability('moodle/course:manageactivities', $context)) {
die('No MediaCMS activity found. Please ask a teacher to add one first.');
}
throw $e;
}
$cm = get_coursemodule_from_id('lti', $dummy_cmid, 0, false, MUST_EXIST);
$instance = $DB->get_record('lti', ['id' => $cm->instance], '*', MUST_EXIST);
$custom_params = ["media_friendly_token=" . $mediatoken]; $custom_params = ["media_friendly_token=" . $mediatoken];
// Add embed parameters if provided (check !== '' instead of !empty() because '0' is a valid value)
if ($showTitle !== '') { if ($showTitle !== '') {
$custom_params[] = "embed_show_title=" . $showTitle; $custom_params[] = "embed_show_title=" . $showTitle;
} }
@@ -94,9 +75,6 @@ if ($show_media_page === 'true') {
$custom_params[] = "show_media_page=true"; $custom_params[] = "show_media_page=true";
} }
$instance->instructorcustomparameters = implode("\n", $custom_params);
$instance->name = 'MediaCMS Video: ' . $mediatoken;
// Set up page // Set up page
$page_params = [ $page_params = [
'token' => $mediatoken, 'token' => $mediatoken,
@@ -105,7 +83,6 @@ $page_params = [
'height' => $height 'height' => $height
]; ];
// Add embed parameters to page URL if provided (check !== '' because '0' is valid)
if ($showTitle !== '') { if ($showTitle !== '') {
$page_params['showTitle'] = $showTitle; $page_params['showTitle'] = $showTitle;
} }
@@ -130,17 +107,20 @@ $PAGE->set_context($context);
$PAGE->set_pagelayout('embedded'); $PAGE->set_pagelayout('embedded');
$PAGE->set_title('MediaCMS'); $PAGE->set_title('MediaCMS');
// Get type config
$typeconfig = lti_get_type_type_config($type->id); $typeconfig = lti_get_type_type_config($type->id);
// Initiate LTI Login with proper cmid (for permissions) and custom token // Build the OIDC login request params directly so we can capture the launchid.
$content = lti_initiate_login($course->id, $dummy_cmid, $instance, $typeconfig, null, $instance->name); // This avoids a shared SESSION key, which would cause a race condition when
// multiple videos are embedded on the same page and load simultaneously.
$oidc_params = lti_build_login_request($course->id, 0, null, $typeconfig, null, 0, 'MediaCMS Video');
// CRITICAL: Inject media_token and embed parameters as hidden fields in OIDC form // Key the custom params by launchid — lti_auth.php retrieves them the same way.
// MediaCMS will encode them in state and inject into custom claims (fallback mechanism) $hint = json_decode($oidc_params['lti_message_hint']);
$SESSION->{'mediacms_cp_' . $hint->launchid} = implode("\n", $custom_params);
// Build the fallback hidden fields (MediaCMS encodes them in state as a secondary mechanism).
$hidden_fields = '<input type="hidden" name="media_token" value="' . htmlspecialchars($mediatoken, ENT_QUOTES) . '" />'; $hidden_fields = '<input type="hidden" name="media_token" value="' . htmlspecialchars($mediatoken, ENT_QUOTES) . '" />';
// Add embed parameters as hidden fields
if ($showTitle !== '') { if ($showTitle !== '') {
$hidden_fields .= '<input type="hidden" name="embed_show_title" value="' . htmlspecialchars($showTitle, ENT_QUOTES) . '" />'; $hidden_fields .= '<input type="hidden" name="embed_show_title" value="' . htmlspecialchars($showTitle, ENT_QUOTES) . '" />';
} }
@@ -166,7 +146,22 @@ if ($height) {
$hidden_fields .= '<input type="hidden" name="embed_height" value="' . htmlspecialchars($height, ENT_QUOTES) . '" />'; $hidden_fields .= '<input type="hidden" name="embed_height" value="' . htmlspecialchars($height, ENT_QUOTES) . '" />';
} }
$content = str_replace('</form>', $hidden_fields . '</form>', $content); // Produce the OIDC login form (mirrors lti_initiate_login output).
$content = '<form action="' . htmlspecialchars($typeconfig->lti_initiatelogin, ENT_COMPAT)
. '" name="ltiInitiateLoginForm" id="ltiInitiateLoginForm"'
. ' method="post" encType="application/x-www-form-urlencoded">' . "\n";
foreach ($oidc_params as $key => $value) {
$key = htmlspecialchars($key, ENT_COMPAT);
$value = htmlspecialchars($value, ENT_COMPAT);
$content .= " <input type=\"hidden\" name=\"{$key}\" value=\"{$value}\"/>\n";
}
$content .= $hidden_fields . "\n";
$content .= "</form>\n";
$content .= "<script type=\"text/javascript\">\n"
. "//<![CDATA[\n"
. "document.ltiInitiateLoginForm.submit();\n"
. "//]]>\n"
. "</script>\n";
echo $OUTPUT->header(); echo $OUTPUT->header();
echo $content; echo $content;

View File

@@ -1,72 +1,8 @@
<?php <?php
/** /**
* Navigation callbacks for filter_mediacms
*
* @package filter_mediacms * @package filter_mediacms
* @copyright 2026 MediaCMS * @copyright 2026 MediaCMS
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
/**
* Add My Media to the global / flat navigation (nav drawer).
* Fires on every page when placement is set to 'top'.
* In Moodle 4.x Boost the nav drawer is opened via the hamburger icon
* and the node appears as a top-level item alongside Home / My courses.
*/
function filter_mediacms_extend_navigation(global_navigation $navigation): void {
$placement = get_config('filter_mediacms', 'mymedia_placement');
if ($placement !== 'top') {
return;
}
if (!isloggedin() || isguestuser()) {
return;
}
$url = new moodle_url('/filter/mediacms/my_media.php');
$node = navigation_node::create(
get_string('mymedia', 'filter_mediacms'),
$url,
navigation_node::TYPE_CUSTOM,
null,
'mediacms_mymedia',
new pix_icon('i/media', '')
);
// showinflatnavigation = true makes it visible in the Boost nav drawer.
$node->showinflatnavigation = true;
$navigation->add_node($node);
}
/**
* Add My Media to the user account / settings navigation.
* Fires when placement is set to 'user'.
* In Moodle 4.x Boost this section is reachable via avatar → Preferences.
*/
function filter_mediacms_extend_navigation_user_settings(
navigation_node $navigation,
stdClass $user,
context_user $usercontext,
stdClass $course,
context_course $coursecontext
): void {
$placement = get_config('filter_mediacms', 'mymedia_placement');
if ($placement !== 'user') {
return;
}
if (!isloggedin() || isguestuser()) {
return;
}
$url = new moodle_url('/filter/mediacms/my_media.php');
$navigation->add(
get_string('mymedia', 'filter_mediacms'),
$url,
navigation_node::TYPE_SETTING,
null,
'mediacms_mymedia',
new pix_icon('i/media', '')
);
}

View File

@@ -8,57 +8,3 @@
*/ */
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
/**
* Find the first LTI activity for the MediaCMS tool in a course, or create a
* visible dummy one if none exists. Repairs any existing stealth/hidden activity.
*
* @param int $courseid
* @param int $typeid LTI tool type ID
* @return int course-module ID
*/
function filter_mediacms_get_dummy_activity($courseid, $typeid) {
global $DB;
$sql = "SELECT cm.id
FROM {course_modules} cm
JOIN {modules} m ON m.id = cm.module
JOIN {lti} lti ON lti.id = cm.instance
WHERE cm.course = :courseid
AND m.name = 'lti'
AND lti.typeid = :typeid
AND cm.deletioninprogress = 0
ORDER BY cm.visible DESC, cm.visibleoncoursepage DESC
LIMIT 1";
$existing = $DB->get_record_sql($sql, ['courseid' => $courseid, 'typeid' => $typeid]);
if ($existing) {
return $existing->id;
}
// Create the dummy activity then immediately force visibleoncoursepage=0,
// because add_moduleinfo() always defaults it to 1.
$moduleinfo = new stdClass();
$moduleinfo->course = $courseid;
$moduleinfo->module = $DB->get_field('modules', 'id', ['name' => 'lti']);
$moduleinfo->modulename = 'lti';
$moduleinfo->section = 0;
$moduleinfo->visible = 1;
$moduleinfo->visibleoncoursepage = 1;
$moduleinfo->availability = null;
$moduleinfo->showdescription = 0;
$moduleinfo->name = 'My Media';
$moduleinfo->intro = '';
$moduleinfo->introformat = FORMAT_HTML;
$moduleinfo->typeid = $typeid;
$moduleinfo->instructorchoiceacceptgrades = 0;
$moduleinfo->grade = 0;
$moduleinfo->instructorchoicesendname = 1;
$moduleinfo->instructorchoicesendemailaddr = 1;
$moduleinfo->launchcontainer = LTI_LAUNCH_CONTAINER_EMBED_NO_BLOCKS;
$moduleinfo->instructorcustomparameters = '';
$result = add_moduleinfo($moduleinfo, get_course($courseid));
return $result->coursemodule;
}

View File

@@ -0,0 +1,196 @@
<?php
/**
* MediaCMS custom LTI 1.3 auth endpoint.
*
* Functionally identical to /mod/lti/auth.php except the no-activity (id=0)
* branch only requires the user to be logged in — not moodle/course:manageactivities.
*
* Custom params (publishdata, redirect_path) are read from the PHP session
* where lti_launch.php / select_media_picker.php store them before starting
* the OIDC flow.
*
* Setup required:
* 1. MediaCMS admin → LTI Platforms → edit Moodle record:
* set "Auth login url" to https://YOUR_MOODLE/filter/mediacms/lti_auth.php
* 2. Moodle admin → Site admin → Plugins → Activity modules → External tool
* → Manage tools → MediaCMS tool → edit → add to "Redirection URIs":
* https://YOUR_MOODLE/filter/mediacms/lti_auth.php
*
* @package filter_mediacms
* @copyright 2026 MediaCMS
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(__DIR__ . '/../../config.php');
require_once($CFG->dirroot . '/mod/lti/locallib.php');
global $_POST, $_SERVER, $SESSION;
if (!isloggedin() && empty($_POST['repost'])) {
header_remove("Set-Cookie");
$PAGE->set_pagelayout('popup');
$PAGE->set_context(context_system::instance());
$output = $PAGE->get_renderer('mod_lti');
$page = new \mod_lti\output\repost_crosssite_page($_SERVER['REQUEST_URI'], $_POST);
echo $output->header();
echo $output->render($page);
echo $output->footer();
return;
}
$scope = optional_param('scope', '', PARAM_TEXT);
$responsetype = optional_param('response_type', '', PARAM_TEXT);
$clientid = optional_param('client_id', '', PARAM_TEXT);
$redirecturi = optional_param('redirect_uri', '', PARAM_URL);
$loginhint = optional_param('login_hint', '', PARAM_TEXT);
$ltimessagehintenc = optional_param('lti_message_hint', '', PARAM_TEXT);
$state = optional_param('state', '', PARAM_TEXT);
$responsemode = optional_param('response_mode', '', PARAM_TEXT);
$nonce = optional_param('nonce', '', PARAM_TEXT);
$prompt = optional_param('prompt', '', PARAM_TEXT);
$ok = !empty($scope) && !empty($responsetype) && !empty($clientid) &&
!empty($redirecturi) && !empty($loginhint) && !empty($nonce);
if (!$ok) {
$error = 'invalid_request';
}
$ltimessagehint = json_decode($ltimessagehintenc);
$ok = $ok && isset($ltimessagehint->launchid);
if (!$ok) {
$error = 'invalid_request';
$desc = 'No launch id in LTI hint';
}
if ($ok && ($scope !== 'openid')) {
$ok = false;
$error = 'invalid_scope';
}
if ($ok && ($responsetype !== 'id_token')) {
$ok = false;
$error = 'unsupported_response_type';
}
if ($ok) {
$launchid = $ltimessagehint->launchid;
list($courseid, $typeid, $id, $messagetype, $foruserid, $titleb64, $textb64) =
explode(',', $SESSION->$launchid, 7);
unset($SESSION->$launchid);
$config = lti_get_type_type_config($typeid);
$ok = ($clientid === $config->lti_clientid);
if (!$ok) {
$error = 'unauthorized_client';
}
}
if ($ok && ($loginhint !== $USER->id)) {
$ok = false;
$error = 'access_denied';
}
if (empty($config)) {
throw new moodle_exception('invalidrequest', 'error');
} else {
$uris = array_map('trim', explode("\n", $config->lti_redirectionuris));
if (!in_array($redirecturi, $uris)) {
throw new moodle_exception('invalidrequest', 'error');
}
}
if ($ok) {
if (isset($responsemode)) {
$ok = ($responsemode === 'form_post');
if (!$ok) {
$error = 'invalid_request';
$desc = 'Invalid response_mode';
}
} else {
$ok = false;
$error = 'invalid_request';
$desc = 'Missing response_mode';
}
}
if ($ok && !empty($prompt) && ($prompt !== 'none')) {
$ok = false;
$error = 'invalid_request';
$desc = 'Invalid prompt';
}
if ($ok) {
$course = $DB->get_record('course', ['id' => $courseid], '*', MUST_EXIST);
if ($id) {
// Activity-based launch — identical to auth.php's if ($id) branch.
$cm = get_coursemodule_from_id('lti', $id, 0, false, MUST_EXIST);
$context = context_module::instance($cm->id);
require_login($course, true, $cm);
require_capability('mod/lti:view', $context);
$lti = $DB->get_record('lti', ['id' => $cm->instance], '*', MUST_EXIST);
$lti->cmid = $cm->id;
list($endpoint, $params) = lti_get_launch_data($lti, $nonce, $messagetype, $foruserid);
} else {
// No-activity launch — student-accessible.
// Custom params (publishdata / redirect_path) were stored in the session
// by lti_launch.php or select_media_picker.php before initiating the OIDC flow.
require_login($course);
// launch.php keys params by launchid (safe for concurrent embeds on one page).
// lti_launch.php and select_media_picker.php use the fixed key (single-use pages).
$customparams = '';
$cpkey = 'mediacms_cp_' . $launchid;
if (!empty($SESSION->$cpkey)) {
$customparams = $SESSION->$cpkey;
unset($SESSION->$cpkey);
} elseif (!empty($SESSION->mediacms_launch_customparams)) {
$customparams = $SESSION->mediacms_launch_customparams;
unset($SESSION->mediacms_launch_customparams);
}
// Minimal LTI instance object — enough for lti_get_launch_data to sign the JWT.
$lti = new stdClass();
$lti->id = 0;
$lti->typeid = (int) $typeid;
$lti->course = (int) $courseid;
$lti->cmid = 0;
$lti->name = 'MediaCMS';
$lti->toolurl = '';
$lti->securetoolurl = '';
$lti->instructorcustomparameters = $customparams;
$lti->instructorchoicesendname = LTI_SETTING_ALWAYS;
$lti->instructorchoicesendemailaddr = LTI_SETTING_ALWAYS;
$lti->instructorchoiceacceptgrades = LTI_SETTING_NEVER;
$lti->instructorchoiceallowroster = null;
$lti->launchcontainer = LTI_LAUNCH_CONTAINER_EMBED_NO_BLOCKS;
$lti->resourcekey = '';
$lti->password = '';
$lti->servicesalt = '';
$lti->resource_link_id = 'mediacms_' . $typeid;
list($endpoint, $params) = lti_get_launch_data(
$lti,
$nonce,
$messagetype ?: 'basic-lti-launch-request',
$foruserid
);
}
} else {
$params['error'] = $error;
if (!empty($desc)) {
$params['error_description'] = $desc;
}
}
if (isset($state)) {
$params['state'] = $state;
}
unset($SESSION->lti_message_hint);
$r = '<form action="' . $redirecturi . "\" name=\"ltiAuthForm\" id=\"ltiAuthForm\" " .
"method=\"post\" enctype=\"application/x-www-form-urlencoded\">\n";
foreach ($params as $key => $value) {
$key = htmlspecialchars($key, ENT_COMPAT);
$value = htmlspecialchars($value, ENT_COMPAT);
$r .= " <input type=\"hidden\" name=\"{$key}\" value=\"{$value}\"/>\n";
}
$r .= "</form>\n";
$r .= "<script type=\"text/javascript\">\n" .
"//<![CDATA[\n" .
"document.ltiAuthForm.submit();\n" .
"//]]>\n" .
"</script>\n";
echo $r;

View File

@@ -5,6 +5,13 @@
* Builds custom_publishdata (enrolled courses + roles) and initiates * Builds custom_publishdata (enrolled courses + roles) and initiates
* the LTI 1.3 OIDC login flow, outputting the auto-submit form directly. * the LTI 1.3 OIDC login flow, outputting the auto-submit form directly.
* *
* No dummy LTI activity is created. The publishdata is stored in the PHP
* session and picked up by lti_auth.php during the OIDC callback.
*
* Edge case: if the user is not enrolled in any course the launch still
* proceeds using the site course (SITEID). MediaCMS will receive an empty
* publishdata array and can decide how to handle it (e.g. show a message).
*
* @package filter_mediacms * @package filter_mediacms
* @copyright 2026 MediaCMS * @copyright 2026 MediaCMS
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
@@ -13,10 +20,8 @@
require_once(__DIR__ . '/../../config.php'); require_once(__DIR__ . '/../../config.php');
require_once($CFG->dirroot . '/mod/lti/lib.php'); require_once($CFG->dirroot . '/mod/lti/lib.php');
require_once($CFG->dirroot . '/mod/lti/locallib.php'); require_once($CFG->dirroot . '/mod/lti/locallib.php');
require_once($CFG->dirroot . '/course/modlib.php');
require_once(__DIR__ . '/locallib.php');
global $SITE, $DB, $CFG, $USER; global $SITE, $DB, $CFG, $USER, $SESSION;
require_login(); require_login();
@@ -32,7 +37,7 @@ if (!$type) {
throw new moodle_exception('ltitoolnotfound', 'filter_mediacms'); throw new moodle_exception('ltitoolnotfound', 'filter_mediacms');
} }
// Build custom_publishdata: all courses the user is enrolled in + role. // Build publishdata: all courses the user is enrolled in + role.
$enrolled_courses = enrol_get_users_courses($USER->id, true, ['id', 'shortname', 'fullname']); $enrolled_courses = enrol_get_users_courses($USER->id, true, ['id', 'shortname', 'fullname']);
$publish_data = []; $publish_data = [];
@@ -60,8 +65,8 @@ foreach ($enrolled_courses as $enrolled_course) {
$publishdata_b64 = base64_encode(json_encode($publish_data)); $publishdata_b64 = base64_encode(json_encode($publish_data));
// Use a course the user is actually enrolled in so they have mod/lti:view during // Use a course the user is actually enrolled in so they pass require_login
// the OIDC flow. Fall back to SITEID only for admins with no course enrolments. // in lti_auth.php. Fall back to SITEID for admins with no course enrolments.
$launch_courseid = SITEID; $launch_courseid = SITEID;
$launch_course = $SITE; $launch_course = $SITE;
foreach ($enrolled_courses as $ec) { foreach ($enrolled_courses as $ec) {
@@ -72,26 +77,10 @@ foreach ($enrolled_courses as $ec) {
} }
} }
// Get or create the dummy activity (visible, non-stealth). // Store publishdata in session — lti_auth.php picks it up after the OIDC roundtrip.
try { $SESSION->mediacms_launch_customparams = 'publishdata=' . $publishdata_b64;
$dummy_cmid = filter_mediacms_get_dummy_activity($launch_courseid, $type->id);
} catch (Exception $e) {
throw new moodle_exception('cannotcreatedummyactivity', 'filter_mediacms');
}
$cm = get_coursemodule_from_id('lti', $dummy_cmid, 0, false, MUST_EXIST);
$instance = $DB->get_record('lti', ['id' => $cm->instance], '*', MUST_EXIST);
// DEBUG: log enrolled courses retrieved.
error_log('MediaCMS My Media publishdata courses (' . count($publish_data) . '): ' . json_encode($publish_data));
// Write publishdata to DB — Moodle's auth.php re-reads the instance from DB
// when building the LTI launch JWT, so in-memory changes are ignored.
$DB->set_field('lti', 'instructorcustomparameters', 'publishdata=' . $publishdata_b64, ['id' => $cm->instance]);
$instance->instructorcustomparameters = 'publishdata=' . $publishdata_b64;
$instance->name = 'MediaCMS My Media';
$typeconfig = lti_get_type_type_config($type->id); $typeconfig = lti_get_type_type_config($type->id);
$content = lti_initiate_login($launch_course->id, $dummy_cmid, $instance, $typeconfig, null, $instance->name); $content = lti_initiate_login($launch_courseid, 0, null, $typeconfig, null, 'MediaCMS My Media');
echo $content; echo $content;

View File

@@ -9,28 +9,45 @@
require_once(__DIR__ . '/../../config.php'); require_once(__DIR__ . '/../../config.php');
global $SITE, $PAGE, $OUTPUT, $USER; global $SITE, $PAGE, $OUTPUT, $USER, $COURSE;
require_login(); require_login();
$context = context_system::instance(); $token = optional_param('token', '', PARAM_ALPHANUMEXT);
$courseid = optional_param('courseid', 0, PARAM_INT);
$context = context_system::instance();
$PAGE->set_context($context); $PAGE->set_context($context);
$PAGE->set_url(new moodle_url('/filter/mediacms/my_media.php'));
$PAGE->set_course($SITE); $PAGE->set_course($SITE);
$PAGE->set_pagelayout('mydashboard'); $PAGE->set_pagelayout('mydashboard');
$PAGE->set_title(get_string('mymedia', 'filter_mediacms'));
$PAGE->set_heading(get_string('mymedia', 'filter_mediacms')); if ($token) {
$PAGE->set_url(new moodle_url('/filter/mediacms/my_media.php', ['token' => $token]));
$PAGE->set_title('MediaCMS');
$PAGE->set_heading('MediaCMS');
$launch_params = [
'token' => $token,
'courseid' => $courseid ?: ($COURSE->id ?? 0),
'show_media_page' => 'true',
];
$src = (new moodle_url('/filter/mediacms/launch.php', $launch_params))->out(false);
} else {
$PAGE->set_url(new moodle_url('/filter/mediacms/my_media.php'));
$PAGE->set_title(get_string('mymedia', 'filter_mediacms'));
$PAGE->set_heading(get_string('mymedia', 'filter_mediacms'));
$src = (new moodle_url('/filter/mediacms/lti_launch.php'))->out(false);
}
echo $OUTPUT->header(); echo $OUTPUT->header();
$attr = [ echo html_writer::tag('iframe', '', [
'id' => 'contentframe', 'id' => 'contentframe',
'src' => (new moodle_url('/filter/mediacms/lti_launch.php'))->out(false), 'src' => $src,
'allowfullscreen' => 'true', 'allowfullscreen' => 'true',
'allow' => 'autoplay *; fullscreen *; encrypted-media *; camera *; microphone *;', 'allow' => 'autoplay *; fullscreen *; encrypted-media *; camera *; microphone *;',
'style' => 'border:none;display:block;width:100%;height:calc(100vh - 120px);', 'style' => 'border:none;display:block;width:100%;height:calc(100vh - 120px);',
]; ]);
echo html_writer::tag('iframe', '', $attr);
echo $OUTPUT->footer(); echo $OUTPUT->footer();

View File

@@ -0,0 +1,77 @@
<?php
/**
* Student-accessible MediaCMS media picker launcher.
*
* Initiates a no-activity LTI 1.3 OIDC login that routes to MediaCMS's
* /lti/select-media/ UI. No LTI activity is created in the course.
*
* The redirect_path custom param is stored in the PHP session and injected
* by lti_auth.php during the OIDC callback, so MediaCMS routes to the
* media-picker rather than the default My Media page.
*
* Flow:
* 1. TinyMCE plugin opens this URL in an iframe (contentItemUrl).
* 2. We store redirect_path in session and start the OIDC flow.
* 3. lti_auth.php processes the OIDC callback (no manageactivities check).
* 4. MediaCMS receives redirect_path=/lti/select-media/?mode=lms_embed_mode.
* 5. User picks a video; MediaCMS sends postMessage({type:'videoSelected',...})
* which iframeembed.js already handles.
*
* @package filter_mediacms
* @copyright 2026 MediaCMS
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(__DIR__ . '/../../config.php');
require_once($CFG->dirroot . '/mod/lti/lib.php');
require_once($CFG->dirroot . '/mod/lti/locallib.php');
global $DB, $PAGE, $OUTPUT, $SITE, $USER, $SESSION;
require_login();
$courseid = required_param('courseid', PARAM_INT);
$ltitoolid = get_config('filter_mediacms', 'ltitoolid');
if (empty($ltitoolid)) {
die('MediaCMS LTI tool not configured.');
}
$type = $DB->get_record('lti_types', ['id' => $ltitoolid]);
if (!$type) {
die('LTI tool not found.');
}
// Resolve course — fall back to the user's first enrolled course if needed.
if ($courseid && $courseid != SITEID) {
$course = get_course($courseid);
$context = context_course::instance($courseid);
} else {
$course = $SITE;
$context = context_system::instance();
foreach (enrol_get_users_courses($USER->id, true, ['id']) as $ec) {
if ((int)$ec->id !== SITEID) {
$course = get_course($ec->id);
$context = context_course::instance($ec->id);
break;
}
}
}
require_login($course);
$PAGE->set_url(new moodle_url('/filter/mediacms/select_media_picker.php', ['courseid' => $course->id]));
$PAGE->set_context($context);
$PAGE->set_pagelayout('embedded');
$PAGE->set_title('MediaCMS Select Media');
$typeconfig = lti_get_type_type_config($type->id);
// Store redirect_path in session — lti_auth.php picks it up after the OIDC roundtrip.
$SESSION->mediacms_launch_customparams = 'redirect_path=/lti/select-media/?mode=lms_embed_mode';
$content = lti_initiate_login($course->id, 0, null, $typeconfig, null, 'MediaCMS Select Media');
echo $OUTPUT->header();
echo $content;
echo $OUTPUT->footer();

View File

@@ -39,16 +39,4 @@ if ($ADMIN->fulltree) {
0, 0,
$ltioptions $ltioptions
)); ));
// My Media link placement.
$settings->add(new admin_setting_configselect(
'filter_mediacms/mymedia_placement',
get_string('mymedia_placement', 'filter_mediacms'),
get_string('mymedia_placement_desc', 'filter_mediacms'),
'top',
[
'top' => get_string('mymedia_placement_top', 'filter_mediacms'),
'user' => get_string('mymedia_placement_user', 'filter_mediacms'),
]
));
} }

View File

@@ -161,16 +161,14 @@ class plugininfo extends plugin implements plugin_with_buttons, plugin_with_menu
$courseid = $COURSE->id; $courseid = $COURSE->id;
} }
// Build the content item URL for LTI Deep Linking. // Build the URL for the student-accessible media picker.
// This URL initiates the LTI Deep Linking flow which allows users // Uses /filter/mediacms/select_media_picker.php instead of the standard
// to select content (like videos) from the tool provider. // /mod/lti/contentitem.php, which requires moodle/course:manageactivities
// and therefore fails for students.
$contentitemurl = ''; $contentitemurl = '';
if (!empty($ltitoolid) && $courseid > 0) { if (!empty($ltitoolid) && $courseid > 0) {
$contentitemurl = (new moodle_url('/mod/lti/contentitem.php', [ $contentitemurl = (new moodle_url('/filter/mediacms/select_media_picker.php', [
'id' => $ltitoolid, 'courseid' => $courseid,
'course' => $courseid,
'title' => 'MediaCMS Library',
'return_types' => 1 // LTI_DEEPLINKING_RETURN_TYPE_LTI_LINK
]))->out(false); ]))->out(false);
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -13,7 +13,7 @@
<div style="margin-bottom: 20px; padding: 15px; background-color: #fff3cd; border: 1px solid #ffc107; border-radius: 4px;"> <div style="margin-bottom: 20px; padding: 15px; background-color: #fff3cd; border: 1px solid #ffc107; border-radius: 4px;">
<h4 style="margin-top: 0; color: #856404;">⚠️ Important Information</h4> <h4 style="margin-top: 0; color: #856404;">⚠️ Important Information</h4>
<p style="margin-bottom: 0; color: #856404;">The new file will be processed but all metadata is preserved</p> <p style="margin-bottom: 0; color: #856404;">The new file will be processed but metadata, such as: title, tags, date produced, description, poster image, captions, comments and chapters, will be preserved. Adjust metadata individually, if needed.</p>
</div> </div>
{% csrf_token %} {% csrf_token %}