-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DONE] Ptitloup/feature add video token (#1052)
* add video token models, add it in admin, add view to manage token, call it from edit and views template * add access to video with token, improve token list display and add translation * fix indent * add uniq constraints for video access token, add unit test for video access token model, fix translate * add unit test for view, complete unit test for model, improve access token view * add copy to clipboard icon, add video access test view * add js to copy link and embed value * change col size and align middle * improve indent, add translation and pydoc * add info to delete token
- Loading branch information
Showing
15 changed files
with
734 additions
and
209 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Pod\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-02-09 09:42+0000\n" | ||
"POT-Creation-Date: 2024-02-15 10:00+0000\n" | ||
"PO-Revision-Date: \n" | ||
"Last-Translator: obado <bado@unice.fr>\n" | ||
"Last-Translator: ptitloup <[email protected].fr>\n" | ||
"Language-Team: Pod Team [email protected]\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
|
@@ -720,6 +720,10 @@ msgstr "" | |
msgid "There are no BigBlueButton sessions in progress." | ||
msgstr "Aucune session BigBlueButton n’est en cours." | ||
|
||
#: pod/bbb/templates/bbb/live_publish_meeting.html | ||
msgid "Confirmation of performing a BigBlueButton live" | ||
msgstr "Confirmation de la réalisation d’un direct BigBlueButton" | ||
|
||
#: pod/bbb/templates/bbb/live_publish_meeting.html | ||
msgid "Are you sure you want to perform a BigBlueButton live?" | ||
msgstr "Êtes-vous sûr de vouloir réaliser un direct BigBlueButton ?" | ||
|
@@ -821,10 +825,6 @@ msgstr "La session BigBlueButton a été publiée." | |
msgid "The BigBlueButton live has been performed." | ||
msgstr "Le direct BigBlueButton a été publié et va bientôt démarrer." | ||
|
||
#: pod/bbb/views.py | ||
msgid "Confirmation of performing a BigBlueButton live" | ||
msgstr "Confirmation de la réalisation d’un direct BigBlueButton" | ||
|
||
#: pod/chapter/apps.py pod/chapter/models.py | ||
#: pod/chapter/templates/video_chapter.html | ||
#: pod/video/templates/videos/video-element.html | ||
|
@@ -1010,6 +1010,7 @@ msgstr "Supprimer le chapitre « %(chapter_title)s »" | |
#: pod/video/templates/channel/list_theme.html | ||
#: pod/video/templates/videos/category_modal.html | ||
#: pod/video/templates/videos/dashboard.html | ||
#: pod/video/templates/videos/video_access_tokens.html | ||
#: pod/video/templates/videos/video_delete.html | ||
msgid "Delete" | ||
msgstr "Supprimer" | ||
|
@@ -1024,6 +1025,7 @@ msgstr "Chapitre vidéo" | |
#: pod/cut/templates/video_cut.html pod/dressing/templates/video_dressing.html | ||
#: pod/enrichment/templates/enrichment/group_enrichment.html | ||
#: pod/main/templates/navbar.html pod/video/templates/videos/add_video.html | ||
#: pod/video/templates/videos/video_access_tokens.html | ||
#: pod/video/templates/videos/video_collaborate.html | ||
#: pod/video/templates/videos/video_delete.html | ||
#: pod/video/templates/videos/video_edit.html pod/video/views.py | ||
|
@@ -2576,8 +2578,8 @@ msgid "" | |
"a>." | ||
msgstr "" | ||
"L’accès à l’ajout d’enregistrements externes a été limité. Si vous souhaitez " | ||
"ajouter des enregistrements externes sur la plateforme, veuillez <a " | ||
"href=\"%(url)s\">nous contacter</a>." | ||
"ajouter des enregistrements externes sur la plateforme, veuillez <a href=" | ||
"\"%(url)s\">nous contacter</a>." | ||
|
||
#: pod/import_video/templates/import_video/add_or_edit.html | ||
msgid "" | ||
|
@@ -2954,8 +2956,8 @@ msgid "" | |
"This video was uploaded to Pod; its origin is %(type)s: <a href=\"%(url)s\" " | ||
"target=\"_blank\">%(url)s</a>" | ||
msgstr "" | ||
"Cette vidéo a été téléversée sur Pod ; son origine est %(type)s : <a " | ||
"href=\"%(url)s\" target=\"_blank\">%(url)s</a>" | ||
"Cette vidéo a été téléversée sur Pod ; son origine est %(type)s : <a href=" | ||
"\"%(url)s\" target=\"_blank\">%(url)s</a>" | ||
|
||
#: pod/import_video/views.py pod/meeting/views.py | ||
msgid "Try changing the record type or address for this recording." | ||
|
@@ -2966,17 +2968,17 @@ msgstr "" | |
#: pod/import_video/views.py | ||
#, python-format | ||
msgid "" | ||
"This video “%(name)s” was uploaded to Pod; its origin is %(type)s: <a " | ||
"href=\"%(url)s\" target=\"_blank\">%(url)s</a><br><br>%(desc)s" | ||
"This video “%(name)s” was uploaded to Pod; its origin is %(type)s: <a href=" | ||
"\"%(url)s\" target=\"_blank\">%(url)s</a><br><br>%(desc)s" | ||
msgstr "" | ||
"Cette vidéo « %(name)s » a été téléversée sur Pod ; son origine est " | ||
"%(type)s : <a href=\"%(url)s\" target=\"_blank\">%(url)s</a><br><br>%(desc)s" | ||
|
||
#: pod/import_video/views.py | ||
#, python-format | ||
msgid "" | ||
"This video “%(name)s” was uploaded to Pod; its origin is Youtube: <a " | ||
"href=\"%(url)s\" target=\"_blank\">%(url)s</a>" | ||
"This video “%(name)s” was uploaded to Pod; its origin is Youtube: <a href=" | ||
"\"%(url)s\" target=\"_blank\">%(url)s</a>" | ||
msgstr "" | ||
"Cette vidéo « %(name)s » a été téléversée sur Pod ; son origine est " | ||
"Youtube : <a href=\"%(url)s\" target=\"_blank\">%(url)s</a>" | ||
|
@@ -3658,11 +3660,13 @@ msgstr "" | |
|
||
#: pod/live/templates/live/event-info.html | ||
#: pod/video/templates/videos/video-info.html | ||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "Embed in a web page" | ||
msgstr "Intégrer dans une page web" | ||
|
||
#: pod/live/templates/live/event-info.html | ||
#: pod/video/templates/videos/video-info.html | ||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "Copy the content of this text box and paste it in the page:" | ||
msgstr "" | ||
"Copiez le contenu de cette boîte de texte et collez-le sur votre page :" | ||
|
@@ -3694,6 +3698,7 @@ msgstr "Partager sur LinkedIn" | |
|
||
#: pod/live/templates/live/event-info.html | ||
#: pod/video/templates/videos/video-info.html | ||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "Share the link" | ||
msgstr "Partager le lien" | ||
|
||
|
@@ -5941,16 +5946,16 @@ msgid "" | |
msgstr "" | ||
"\n" | ||
" <p>Bonjour,\n" | ||
" <p>%(owner)s vous invite à une réunion récurrente " | ||
"<b>%(meeting_title)s</b>.</p>\n" | ||
" <p>%(owner)s vous invite à une réunion récurrente <b>" | ||
"%(meeting_title)s</b>.</p>\n" | ||
" <p>Date de début : %(start_date_time)s </p>\n" | ||
" <p>Récurrent jusqu’à la date : %(end_date)s </p>\n" | ||
" <p>La réunion se tiendra tou(te)s les %(frequency)s %(recurrence)s </" | ||
"p>\n" | ||
" <p>Voici le lien pour rejoindre la réunion :\n" | ||
" <a href=\"%(join_link)s\">%(join_link)s</a></p>\n" | ||
" <p>Vous avez besoin de ce mot de passe pour entrer : " | ||
"<b>%(password)s</b> </p>\n" | ||
" <p>Vous avez besoin de ce mot de passe pour entrer : <b>" | ||
"%(password)s</b> </p>\n" | ||
" <p>Cordialement</p>\n" | ||
" " | ||
|
||
|
@@ -5976,8 +5981,8 @@ msgstr "" | |
" <p>Date de fin : %(end_date)s </p>\n" | ||
" <p>Voici le lien pour rejoindre la réunion :\n" | ||
" <a href=\"%(join_link)s\">%(join_link)s</a></p>\n" | ||
" <p>Vous avez besoin de ce mot de passe pour entrer : " | ||
"<b>%(password)s</b> </p>\n" | ||
" <p>Vous avez besoin de ce mot de passe pour entrer : <b>" | ||
"%(password)s</b> </p>\n" | ||
" <p>Cordialement</p>\n" | ||
" " | ||
|
||
|
@@ -7030,8 +7035,8 @@ msgstr "Prévisualisation d’enregistrement" | |
#: pod/video/templates/videos/video-element.html | ||
msgid "" | ||
"To view this video please enable JavaScript, and consider upgrading to a web " | ||
"browser that <a href=\"https://videojs.com/html5-video-support/\" " | ||
"target=\"_blank\">supports HTML5 video</a>" | ||
"browser that <a href=\"https://videojs.com/html5-video-support/\" target=" | ||
"\"_blank\">supports HTML5 video</a>" | ||
msgstr "" | ||
"Pour visionner cette vidéo, veuillez activer JavaScript et envisager de " | ||
"passer à un navigateur Web qui <a href=\"https://videojs.com/html5-video-" | ||
|
@@ -7108,10 +7113,9 @@ msgid "" | |
msgstr "" | ||
"<p>Bonjour,<br> un nouvel enregistrement a été ajouté sur la plateforme " | ||
"%(title_site)s à partir de l’enregistreur « %(recorder)s ».<br>Pour " | ||
"l’ajouter, cliquez sur le lien ci-dessous.</p><p><a " | ||
"href=\"%(link_url)s\">%(link_url)s</a><br><em>Si le lien n’est pas actif, il " | ||
"faut le copier-coller dans la barre d’adresse de votre navigateur.</em></" | ||
"p><p>Cordialement.</p>" | ||
"l’ajouter, cliquez sur le lien ci-dessous.</p><p><a href=\"%(link_url)s\">" | ||
"%(link_url)s</a><br><em>Si le lien n’est pas actif, il faut le copier-coller " | ||
"dans la barre d’adresse de votre navigateur.</em></p><p>Cordialement.</p>" | ||
|
||
#: pod/recorder/views.py | ||
msgid "New recording added." | ||
|
@@ -7456,8 +7460,8 @@ msgid "" | |
"%(url)s</a></p>\n" | ||
msgstr "" | ||
"vous pouvez changer la date de suppression en éditant votre vidéo :</p>\n" | ||
"<p><a href=\"%(scheme)s:%(url)s\" rel=\"noopener\" " | ||
"target=\"_blank\">%(scheme)s:%(url)s</a></p>\n" | ||
"<p><a href=\"%(scheme)s:%(url)s\" rel=\"noopener\" target=\"_blank\">" | ||
"%(scheme)s:%(url)s</a></p>\n" | ||
"\n" | ||
|
||
#: pod/video/management/commands/check_obsolete_videos.py | ||
|
@@ -7830,6 +7834,14 @@ msgstr "Catégorie" | |
msgid "Categories" | ||
msgstr "Catégories" | ||
|
||
#: pod/video/models.py | ||
msgid "Video access token" | ||
msgstr "Jeton d'accès à la vidéo" | ||
|
||
#: pod/video/models.py | ||
msgid "Video access tokens" | ||
msgstr "Jetons d'accès à la vidéo" | ||
|
||
#: pod/video/templates/channel/channel.html | ||
msgid "Show view statistics for all videos in this theme" | ||
msgstr "Afficher les statistiques de vue pour toutes les vidéos de ce thème" | ||
|
@@ -8299,8 +8311,8 @@ msgid "" | |
"This video is chaptered. Click the chapter button <span class=\"vjs-icon-" | ||
"chapters\"></span> on the video player to view them." | ||
msgstr "" | ||
"Cette vidéo est chapitrée. Cliquez sur le bouton de chapitre <span " | ||
"class=\"vjs-icon-chapters\"></span> sur le lecteur vidéo pour les voir." | ||
"Cette vidéo est chapitrée. Cliquez sur le bouton de chapitre <span class=" | ||
"\"vjs-icon-chapters\"></span> sur le lecteur vidéo pour les voir." | ||
|
||
#: pod/video/templates/videos/video-all-info.html | ||
msgid "Other versions" | ||
|
@@ -8486,6 +8498,11 @@ msgstr "Démarrer à" | |
msgid "Check the box to indicate the beginning of playing desired." | ||
msgstr "Cocher la case pour indiquer le début de lecture souhaité." | ||
|
||
#: pod/video/templates/videos/video-info.html | ||
#: pod/video/templates/videos/video_edit.html | ||
msgid "Manage access tokens" | ||
msgstr "Gestion des jetons d'accès" | ||
|
||
#: pod/video/templates/videos/video-info.html | ||
msgid "BigBlueButton/H5P Integration" | ||
msgstr "Intégration BigBlueButton/H5P" | ||
|
@@ -8499,9 +8516,34 @@ msgstr "" | |
"interactive H5P :" | ||
|
||
#: pod/video/templates/videos/video-info.html | ||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "Use this link to share the video:" | ||
msgstr "Utiliser ce lien pour partager la vidéo :" | ||
|
||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "Add a token" | ||
msgstr "Ajouter un jeton" | ||
|
||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "List of active tokens" | ||
msgstr "Liste des jetons actif" | ||
|
||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "Token" | ||
msgstr "Jeton" | ||
|
||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "Copy to clipboard" | ||
msgstr "Copier dans le presse-papiers" | ||
|
||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "Please confirm you want to delete the token" | ||
msgstr "Veuillez confirmer que vous souhaitez supprimer le jeton" | ||
|
||
#: pod/video/templates/videos/video_access_tokens.html | ||
msgid "Delete the token" | ||
msgstr "Supprimer le jeton" | ||
|
||
#: pod/video/templates/videos/video_collaborate.html | ||
msgid "Collaborate" | ||
msgstr "Collaborer" | ||
|
@@ -8597,10 +8639,6 @@ msgstr "" | |
msgid "Edit the %(app)s" | ||
msgstr "Éditer le %(app)s" | ||
|
||
#: pod/video/templates/videos/video_edit.html | ||
msgid "Use this link to share the video in draft mode" | ||
msgstr "Utiliser ce lien pour partager la vidéo en mode brouillon" | ||
|
||
#: pod/video/templates/videos/video_licencebox.html | ||
msgid "Creative Commons license:" | ||
msgstr "Licence Creative Commons :" | ||
|
@@ -8771,6 +8809,22 @@ msgstr "" | |
msgid "-- sorry, no translation provided --" | ||
msgstr "-- désolé, aucune traduction fournie --" | ||
|
||
#: pod/video/tests/test_views.py pod/video/views.py | ||
msgid "An action must be specified." | ||
msgstr "Une action doit être précisée." | ||
|
||
#: pod/video/tests/test_views.py pod/video/views.py | ||
msgid "A token has been created." | ||
msgstr "Un jeton a été créé." | ||
|
||
#: pod/video/tests/test_views.py pod/video/views.py | ||
msgid "Token not found." | ||
msgstr "Jeton non trouvé." | ||
|
||
#: pod/video/tests/test_views.py pod/video/views.py | ||
msgid "The token has been deleted." | ||
msgstr "Le jeton a été supprimé." | ||
|
||
#: pod/video/views.py | ||
msgid "You cannot edit this channel." | ||
msgstr "Vous ne pouvez éditer cette chaîne." | ||
|
@@ -8833,6 +8887,11 @@ msgstr "Vous ne pouvez pas supprimer cette vidéo." | |
msgid "You cannot delete a video that is being encoded." | ||
msgstr "Vous ne pouvez pas supprimer une vidéo en cours d’encodage." | ||
|
||
#: pod/video/views.py | ||
#, python-format | ||
msgid "Manage access tokens for the video \"%(vtitle)s\"" | ||
msgstr "Gestion des jetons d’accès à la vidéo « %(vtitle)s »" | ||
|
||
#: pod/video/views.py | ||
msgid "Transcription not enabled on this platform." | ||
msgstr "Transcription non activée sur cette plateforme." | ||
|
@@ -9192,6 +9251,9 @@ msgstr "Résultats de la recherche" | |
msgid "Esup-Pod xAPI" | ||
msgstr "xAPI Esup-Pod" | ||
|
||
#~ msgid "Use this link to share the video in draft mode" | ||
#~ msgstr "Utiliser ce lien pour partager la vidéo en mode brouillon" | ||
|
||
#~ msgid "YouTube content is inaccessible" | ||
#~ msgstr "Le contenu YouTube n’est pas disponible" | ||
|
||
|
@@ -9219,7 +9281,6 @@ msgstr "xAPI Esup-Pod" | |
#~ msgid "Live" | ||
#~ msgstr "Directs" | ||
|
||
#, python-format | ||
#~ msgid "Deleting the event \"%(vtitle)s\"" | ||
#~ msgstr "Supprimer l’évènement « %(vtitle)s »" | ||
|
||
|
Binary file not shown.
Oops, something went wrong.