From 1ccba2d9a0c87ecab730fa50c84c516e05f69733 Mon Sep 17 00:00:00 2001 From: Aina Sitraka <35221835+aynsix@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:15:30 +0300 Subject: [PATCH] PHRAS-3668 subtitle notification (#4416) * subtitle notification * fix notif --- .../Controller/Prod/ToolsController.php | 3 +- .../Event/Record/RecordAutoSubtitleEvent.php | 11 +-- .../Subscriber/SubtitleSubscriber.php | 2 +- .../WorkerManager/Worker/SubtitleWorker.php | 23 +++++++ lib/classes/eventsmanager/broker.php | 1 + lib/classes/eventsmanager/notify/subtitle.php | 69 +++++++++++++++++++ resources/locales/messages.de.xlf | 52 +++++++++----- resources/locales/messages.en.xlf | 52 +++++++++----- resources/locales/messages.fr.xlf | 52 +++++++++----- resources/locales/messages.nl.xlf | 38 +++++++--- resources/locales/validators.de.xlf | 2 +- resources/locales/validators.en.xlf | 2 +- resources/locales/validators.fr.xlf | 2 +- resources/locales/validators.nl.xlf | 2 +- .../prod/actions/Tools/videoEditor.html.twig | 11 ++- 15 files changed, 251 insertions(+), 71 deletions(-) create mode 100644 lib/classes/eventsmanager/notify/subtitle.php diff --git a/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php b/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php index d6eb522fb7..cd1597b213 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/ToolsController.php @@ -558,7 +558,8 @@ public function autoSubtitleAction(Request $request) new RecordAutoSubtitleEvent( $record, $request->request->get("subtitle_language_source"), - json_decode($request->request->get("subtitle_destination"), true) + json_decode($request->request->get("subtitle_destination"), true), + $this->getAuthenticatedUser()->getId() ) ); diff --git a/lib/Alchemy/Phrasea/Core/Event/Record/RecordAutoSubtitleEvent.php b/lib/Alchemy/Phrasea/Core/Event/Record/RecordAutoSubtitleEvent.php index 37b12fb4e0..bf59747947 100644 --- a/lib/Alchemy/Phrasea/Core/Event/Record/RecordAutoSubtitleEvent.php +++ b/lib/Alchemy/Phrasea/Core/Event/Record/RecordAutoSubtitleEvent.php @@ -7,20 +7,21 @@ class RecordAutoSubtitleEvent extends RecordEvent { private $languageSource; - private $metaStructureIdSource; private $languageDestination; - private $metaStructureIdDestination; + private $authenticatedUserId; public function __construct( RecordInterface $record, $languageSource, - $languageDestination + $languageDestination, + $authenticatedUserId ) { parent::__construct($record); $this->languageSource = $languageSource; $this->languageDestination = $languageDestination; + $this->authenticatedUserId = $authenticatedUserId; } public function getLanguageSource() @@ -33,8 +34,8 @@ public function getLanguageDestination() return $this->languageDestination; } - public function getMetaStructureIdDestination() + public function getAuthenticatedUserId() { - return $this->metaStructureIdDestination; + return $this->authenticatedUserId; } } diff --git a/lib/Alchemy/Phrasea/WorkerManager/Subscriber/SubtitleSubscriber.php b/lib/Alchemy/Phrasea/WorkerManager/Subscriber/SubtitleSubscriber.php index b6ab7c4b28..70c8230628 100644 --- a/lib/Alchemy/Phrasea/WorkerManager/Subscriber/SubtitleSubscriber.php +++ b/lib/Alchemy/Phrasea/WorkerManager/Subscriber/SubtitleSubscriber.php @@ -4,7 +4,6 @@ use Alchemy\Phrasea\Core\Event\Record\RecordAutoSubtitleEvent; use Alchemy\Phrasea\Core\PhraseaEvents; -use Alchemy\Phrasea\Model\Entities\WorkerJob; use Alchemy\Phrasea\Model\Repositories\WorkerJobRepository; use Alchemy\Phrasea\WorkerManager\Queue\MessagePublisher; use Symfony\Component\EventDispatcher\EventSubscriberInterface; @@ -33,6 +32,7 @@ public function onRecordAutoSubtitle(RecordAutoSubtitleEvent $event) "recordId" => $event->getRecord()->getRecordId(), "languageSource" => $event->getLanguageSource(), "languageDestination" => $event->getLanguageDestination(), + "authenticatedUserId" => $event->getAuthenticatedUserId(), "type" => MessagePublisher::SUBTITLE_TYPE // used to specify the final Q to publish message ]; diff --git a/lib/Alchemy/Phrasea/WorkerManager/Worker/SubtitleWorker.php b/lib/Alchemy/Phrasea/WorkerManager/Worker/SubtitleWorker.php index d170e6d694..1fe2ad9f8d 100644 --- a/lib/Alchemy/Phrasea/WorkerManager/Worker/SubtitleWorker.php +++ b/lib/Alchemy/Phrasea/WorkerManager/Worker/SubtitleWorker.php @@ -239,6 +239,18 @@ public function process(array $payload) // order to write meta in file $this->dispatcher->dispatch(WorkerEvents::RECORDS_WRITE_META, new RecordsWriteMetaEvent([$record->getRecordId()], $record->getDataboxId())); + + $this->getEventsManager()->notify( + $payload['authenticatedUserId'], + 'eventsmanager_notify_subtitle', + json_encode([ + 'translateMessage' => 'notification:: subtitle "%langues%" generated for "%title%" !', + 'langues' => implode(', ', array_keys($payload['languageDestination'])), + 'title' => htmlentities($record->get_title()) + ]), + false + ); + } catch (\Exception $e) { $this->logger->error($e->getMessage()); $this->jobFinished(); @@ -476,4 +488,15 @@ private function getTargetLanguageByCode($code) return $t[0]; } + + /** + * @return \eventsmanager_broker + */ + private function getEventsManager() + { + $app = $this->getApplicationBox()->getPhraseApplication(); + + return $app['events-manager']; + } + } diff --git a/lib/classes/eventsmanager/broker.php b/lib/classes/eventsmanager/broker.php index f61ec75303..5e82c9036b 100644 --- a/lib/classes/eventsmanager/broker.php +++ b/lib/classes/eventsmanager/broker.php @@ -47,6 +47,7 @@ public function start() 'eventsmanager_notify_push', 'eventsmanager_notify_basketwip', 'eventsmanager_notify_register', + 'eventsmanager_notify_subtitle', 'eventsmanager_notify_uploadquarantine', 'eventsmanager_notify_validate', 'eventsmanager_notify_validationdone', diff --git a/lib/classes/eventsmanager/notify/subtitle.php b/lib/classes/eventsmanager/notify/subtitle.php new file mode 100644 index 0000000000..8fd9e1a3df --- /dev/null +++ b/lib/classes/eventsmanager/notify/subtitle.php @@ -0,0 +1,69 @@ +app->trans($data['translateMessage'], ['%title%' => $data['title'], '%langues%' => $data['langues']]); + + return [ + 'text' => $text, + 'class' => ($unread == 1 ? 'reload_baskets' : '') + ]; + } + + /** + * + * @return string + */ + public function get_name() + { + return $this->app->trans('notification:: subtitle'); + } + + /** + * + * @return string + */ + public function get_description() + { + return $this->app->trans('notification:: Receive notification when subtitle generated'); + } + + /** + * @param integer $usr_id The id of the user to check + * + * @return boolean + */ + public function is_available(User $user) + { + return true; + } + +} diff --git a/resources/locales/messages.de.xlf b/resources/locales/messages.de.xlf index 958b48ead0..c51aa07685 100644 --- a/resources/locales/messages.de.xlf +++ b/resources/locales/messages.de.xlf @@ -1,14 +1,14 @@ - + - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.
- - + + WorkerManager/Worker/DownloadAsyncWorker.php Form/Configuration/EmailFormType.php Form/Login/PhraseaAuthenticationForm.php @@ -196,7 +196,7 @@ Bridge/Dailymotion/element_informations.html.twig - %number% documents<br/>selectionnes + selectionnes]]> ausgewählt]]> Controller/Prod/QueryController.php @@ -2558,7 +2558,7 @@ Form/Configuration/ActionsFormType.php - Display & action settings + Anzeige und Handlung-Einstellungen admin/fields/templates.html.twig @@ -4754,7 +4754,7 @@ Notifications globales Allgemeine Benachrichtigungen - classes/eventsmanager/broker.php + classes/eventsmanager/broker.php Notify third party application when an event occurs in Phraseanet @@ -6511,7 +6511,7 @@ Controller/Admin/CollectionController.php Controller/Admin/CollectionController.php Controller/Admin/CollectionController.php - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig admin/collection/suggested_value.html.twig admin/collection/collection.html.twig web/admin/databases.html.twig @@ -10015,7 +10015,7 @@ alert Vorsicht actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig all @@ -11779,7 +11779,7 @@ no image selected Kein Bild wurde ausgewählt actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig non @@ -11810,11 +11810,26 @@ Eine Benachrichtigung über geteilte Sammelkörbe erhalten eventsmanager/notify/basketwip.php + + notification:: Receive notification when subtitle generated + notification:: Receive notification when subtitle generated + eventsmanager/notify/subtitle.php + notification:: mark all notification as read Alle Benachrichtigungen als "Gelesen" markieren web/prod/notifications_dialog.html.twig + + notification:: subtitle + notification:: subtitle + eventsmanager/notify/subtitle.php + + + notification:: subtitle generation finished + notification:: subtitle generation finished + eventsmanager/notify/subtitle.php + notification::read:tooltip Benachrichtigung gelesen @@ -12434,7 +12449,7 @@ Controller/Root/AccountController.php - phraseanet::account: << your account can be deleted via admin interface >> + >]]> Ihr Benutzerkonto kann nur durch die Administration Anwendung gelöscht werden. web/account/account.html.twig @@ -13021,7 +13036,7 @@ processing verarbeitend actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod::Les enregistrements ne provienent pas tous de la meme base et ne peuvent donc etre traites ensemble @@ -14216,6 +14231,11 @@ Vorsicht: die aktuelle Werte werden durch die neue Werte überschrieben Die ausgewählten Datensätze gehören zu verschiedenen Databoxen, das Hinzufügen dieser Auswahl zur Berichte ist nicht möglich. prod/Story/Create.html.twig + + prod:videoeditor field filled + prod:videoeditor field filled + actions/Tools/videoEditor.html.twig + prod:videoeditor:subtitleRequestTab:: Autosubtitling Automatisierte Untertitelung @@ -14224,12 +14244,12 @@ Vorsicht: die aktuelle Werte werden durch die neue Werte überschrieben prod:videoeditor:subtitleRequestTab:: Request in process Anfrage in Bearbeitung - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod:videoeditor:subtitleRequestTab:: submit Anfrage einreichen - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod:videoeditor:subtitleRequestTab:: title @@ -15589,7 +15609,7 @@ Vorsicht: die aktuelle Werte werden durch die neue Werte überschrieben web/thesaurus/thesaurus.html.twig - thesaurus:: Supprimer cette branche ?&#10;(les termes concernes remonteront en candidats a la prochaine indexation) + web/thesaurus/thesaurus.html.twig @@ -16106,7 +16126,7 @@ Vorsicht: die aktuelle Werte werden durch die neue Werte überschrieben thumbnail validation Miniaturansicht Validierung actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig tout le monde diff --git a/resources/locales/messages.en.xlf b/resources/locales/messages.en.xlf index 49229c4fe8..b04f6e9421 100644 --- a/resources/locales/messages.en.xlf +++ b/resources/locales/messages.en.xlf @@ -1,14 +1,14 @@ - + - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.
- - + + WorkerManager/Worker/DownloadAsyncWorker.php Form/Configuration/EmailFormType.php Form/Login/PhraseaAuthenticationForm.php @@ -196,7 +196,7 @@ Bridge/Dailymotion/element_informations.html.twig - %number% documents<br/>selectionnes + selectionnes]]> selected]]> Controller/Prod/QueryController.php @@ -2560,7 +2560,7 @@ Form/Configuration/ActionsFormType.php
- Display & action settings + Display and action settings admin/fields/templates.html.twig @@ -4756,7 +4756,7 @@ Notifications globales Global notifications - classes/eventsmanager/broker.php + classes/eventsmanager/broker.php Notify third party application when an event occurs in Phraseanet @@ -6513,7 +6513,7 @@ Controller/Admin/CollectionController.php Controller/Admin/CollectionController.php Controller/Admin/CollectionController.php - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig admin/collection/suggested_value.html.twig admin/collection/collection.html.twig web/admin/databases.html.twig @@ -10017,7 +10017,7 @@ alert Warning actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig all @@ -11781,7 +11781,7 @@ no image selected No Document selected actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig non @@ -11812,11 +11812,26 @@ Receive notifications for shared baskets eventsmanager/notify/basketwip.php + + notification:: Receive notification when subtitle generated + notification:: Receive notification when subtitle generated + eventsmanager/notify/subtitle.php + notification:: mark all notification as read Mark all notifications as "Read" web/prod/notifications_dialog.html.twig + + notification:: subtitle + notification:: subtitle + eventsmanager/notify/subtitle.php + + + notification:: subtitle generation finished + notification:: subtitle generation finished + eventsmanager/notify/subtitle.php + notification::read:tooltip Notification read @@ -12436,7 +12451,7 @@ Controller/Root/AccountController.php - phraseanet::account: << your account can be deleted via admin interface >> + >]]> Your rights do not allow to perform this action. Your account can only be deleted via the Administration interface. web/account/account.html.twig @@ -13023,7 +13038,7 @@ processing Processing... actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod::Les enregistrements ne provienent pas tous de la meme base et ne peuvent donc etre traites ensemble @@ -14221,6 +14236,11 @@ It is possible to place several search areas Selected records belong to different databox and cannot be added to the story prod/Story/Create.html.twig + + prod:videoeditor field filled + prod:videoeditor field filled + actions/Tools/videoEditor.html.twig + prod:videoeditor:subtitleRequestTab:: Autosubtitling Auto Subtitling @@ -14229,12 +14249,12 @@ It is possible to place several search areas prod:videoeditor:subtitleRequestTab:: Request in process Auto subtitling request in process - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod:videoeditor:subtitleRequestTab:: submit Submit Subtitling Request - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod:videoeditor:subtitleRequestTab:: title @@ -15594,7 +15614,7 @@ It is possible to place several search areas web/thesaurus/thesaurus.html.twig - thesaurus:: Supprimer cette branche ?&#10;(les termes concernes remonteront en candidats a la prochaine indexation) + web/thesaurus/thesaurus.html.twig @@ -16111,7 +16131,7 @@ It is possible to place several search areas thumbnail validation Confirm thumbnail actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig tout le monde diff --git a/resources/locales/messages.fr.xlf b/resources/locales/messages.fr.xlf index 309639daf1..609a6ed8e7 100644 --- a/resources/locales/messages.fr.xlf +++ b/resources/locales/messages.fr.xlf @@ -1,14 +1,14 @@ - + - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.
- - + + WorkerManager/Worker/DownloadAsyncWorker.php Form/Configuration/EmailFormType.php Form/Login/PhraseaAuthenticationForm.php @@ -196,7 +196,7 @@ Bridge/Dailymotion/element_informations.html.twig - %number% documents<br/>selectionnes + selectionnes]]> sélectionnés]]> Controller/Prod/QueryController.php @@ -2558,7 +2558,7 @@ Form/Configuration/ActionsFormType.php
- Display & action settings + Paramétrage d'affichage et d'action admin/fields/templates.html.twig @@ -4754,7 +4754,7 @@ Notifications globales Notifications globales - classes/eventsmanager/broker.php + classes/eventsmanager/broker.php Notify third party application when an event occurs in Phraseanet @@ -6511,7 +6511,7 @@ Controller/Admin/CollectionController.php Controller/Admin/CollectionController.php Controller/Admin/CollectionController.php - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig admin/collection/suggested_value.html.twig admin/collection/collection.html.twig web/admin/databases.html.twig @@ -10016,7 +10016,7 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le alert Alerte actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig all @@ -11780,7 +11780,7 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le no image selected Aucune image sélectionnée actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig non @@ -11811,11 +11811,26 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le Recevoir une notification pour un panier partagé eventsmanager/notify/basketwip.php + + notification:: Receive notification when subtitle generated + notification:: Receive notification when subtitle generated + eventsmanager/notify/subtitle.php + notification:: mark all notification as read Marquer toutes les notifications comme "LU" web/prod/notifications_dialog.html.twig + + notification:: subtitle + notification:: subtitle + eventsmanager/notify/subtitle.php + + + notification:: subtitle generation finished + notification:: subtitle generation finished + eventsmanager/notify/subtitle.php + notification::read:tooltip Notification lue @@ -12435,7 +12450,7 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le Controller/Root/AccountController.php - phraseanet::account: << your account can be deleted via admin interface >> + >]]> Vos droits ne vous permettent pas de réaliser cette action, votre compte ne peut être supprimé que via l'interface d'Administration. web/account/account.html.twig @@ -13022,7 +13037,7 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le processing En cours... actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod::Les enregistrements ne provienent pas tous de la meme base et ne peuvent donc etre traites ensemble @@ -14225,6 +14240,11 @@ Attention: les valeurs actuellement en place seront écrasées par ces nouvelles Les enregistrements sélectionnés appartiennent à des Databox différentes , l'ajout de cette sélection au reportage n'est pas possible prod/Story/Create.html.twig + + prod:videoeditor field filled + prod:videoeditor field filled + actions/Tools/videoEditor.html.twig + prod:videoeditor:subtitleRequestTab:: Autosubtitling Sous-titrage automatique @@ -14233,12 +14253,12 @@ Attention: les valeurs actuellement en place seront écrasées par ces nouvelles prod:videoeditor:subtitleRequestTab:: Request in process Demande de sous-titrage automatique soumise - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod:videoeditor:subtitleRequestTab:: submit Soumettre la demande - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod:videoeditor:subtitleRequestTab:: title @@ -15598,7 +15618,7 @@ Attention: les valeurs actuellement en place seront écrasées par ces nouvelles web/thesaurus/thesaurus.html.twig - thesaurus:: Supprimer cette branche ?&#10;(les termes concernes remonteront en candidats a la prochaine indexation) + web/thesaurus/thesaurus.html.twig @@ -16115,7 +16135,7 @@ Attention: les valeurs actuellement en place seront écrasées par ces nouvelles thumbnail validation Validation de la vignette actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig tout le monde diff --git a/resources/locales/messages.nl.xlf b/resources/locales/messages.nl.xlf index 9bc725af3a..9102e65bb4 100644 --- a/resources/locales/messages.nl.xlf +++ b/resources/locales/messages.nl.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. @@ -4760,7 +4760,7 @@ Notifications globales Algemene meldingen - classes/eventsmanager/broker.php + classes/eventsmanager/broker.php Notify third party application when an event occurs in Phraseanet @@ -6517,7 +6517,7 @@ Controller/Admin/CollectionController.php Controller/Admin/CollectionController.php Controller/Admin/CollectionController.php - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig admin/collection/suggested_value.html.twig admin/collection/collection.html.twig web/admin/databases.html.twig @@ -10021,7 +10021,7 @@ alert alert actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig all @@ -11785,7 +11785,7 @@ no image selected geen beeld geselecteerd actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig non @@ -11816,11 +11816,26 @@ notification:: Receive notification when a basket is WIP eventsmanager/notify/basketwip.php + + notification:: Receive notification when subtitle generated + notification:: Receive notification when subtitle generated + eventsmanager/notify/subtitle.php + notification:: mark all notification as read notification:: mark all notification as read web/prod/notifications_dialog.html.twig + + notification:: subtitle + notification:: subtitle + eventsmanager/notify/subtitle.php + + + notification:: subtitle generation finished + notification:: subtitle generation finished + eventsmanager/notify/subtitle.php + notification::read:tooltip notification::read:tooltip @@ -13027,7 +13042,7 @@ processing verwerken actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod::Les enregistrements ne provienent pas tous de la meme base et ne peuvent donc etre traites ensemble @@ -14221,6 +14236,11 @@ prod:story:selected elements are from different databox and cannot be added to the story prod/Story/Create.html.twig + + prod:videoeditor field filled + prod:videoeditor field filled + actions/Tools/videoEditor.html.twig + prod:videoeditor:subtitleRequestTab:: Autosubtitling prod:videoeditor:subtitleRequestTab:: Autosubtitling @@ -14229,12 +14249,12 @@ prod:videoeditor:subtitleRequestTab:: Request in process prod:videoeditor:subtitleRequestTab:: Request in process - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod:videoeditor:subtitleRequestTab:: submit prod:videoeditor:subtitleRequestTab:: submit - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig prod:videoeditor:subtitleRequestTab:: title @@ -16111,7 +16131,7 @@ thumbnail validation thumbnail goedkeuring actions/Tools/index.html.twig - actions/Tools/videoEditor.html.twig + actions/Tools/videoEditor.html.twig tout le monde diff --git a/resources/locales/validators.de.xlf b/resources/locales/validators.de.xlf index dfe7e2dbd4..9c7f0fe9a3 100644 --- a/resources/locales/validators.de.xlf +++ b/resources/locales/validators.de.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. diff --git a/resources/locales/validators.en.xlf b/resources/locales/validators.en.xlf index 8225571e97..b1d2240332 100644 --- a/resources/locales/validators.en.xlf +++ b/resources/locales/validators.en.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. diff --git a/resources/locales/validators.fr.xlf b/resources/locales/validators.fr.xlf index df7372f566..6732175d59 100644 --- a/resources/locales/validators.fr.xlf +++ b/resources/locales/validators.fr.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. diff --git a/resources/locales/validators.nl.xlf b/resources/locales/validators.nl.xlf index 9ff948c492..e4033d8a24 100644 --- a/resources/locales/validators.nl.xlf +++ b/resources/locales/validators.nl.xlf @@ -1,6 +1,6 @@ - +
The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message. diff --git a/templates/web/prod/actions/Tools/videoEditor.html.twig b/templates/web/prod/actions/Tools/videoEditor.html.twig index f3fc5ee52c..7144a8b1f5 100644 --- a/templates/web/prod/actions/Tools/videoEditor.html.twig +++ b/templates/web/prod/actions/Tools/videoEditor.html.twig @@ -249,7 +249,12 @@

{% for videoTextTrackField in videoTextTrackFields %} - + +
{% endfor %}


@@ -356,7 +361,6 @@ $('#submit-subtitle-request').on('click', function (e) { e.preventDefault(); - console.log("auto-subtitle process"); var destination = {}; $.each($('input[name=subtitle_language_destination]'), function(k, input){ @@ -377,8 +381,9 @@ subtitle_destination: JSON.stringify(destination), }, success: function success(data) { - console.log(data); $('#request-status').removeClass('hide'); + + $('#submit-subtitle-request').hide(); } }); });