From 418e585737c7d9a2aaaded29df35177b47149118 Mon Sep 17 00:00:00 2001 From: Subodh Rajpopat Date: Mon, 9 Nov 2026 18:07:33 +0530 Subject: [PATCH 1/3] 2.8.0: Nov 10 date, transcription fixes, caption test ids, JSX runtime build (#2347) * Move the 2.8.0 date to November 10, 2026 * Transcription: say it usually takes a few minutes, not 10-15 The message shown while an AI transcription runs said it usually takes 10-15 minutes. It usually finishes in a few minutes, so say that, and that long videos take longer. * Update the POT for the transcription time message * Transcription: say it usually takes a few seconds A preprod test on 9 Nov transcribed 140 seconds of audio in about 3 seconds, so 'a few minutes' was still too long. * Caption manager: add test ids to the file inputs, row actions and add form The add and replace file inputs had no id, name or test id, so E2E tests could only reach them by position. Row actions were only reachable through a row test id keyed by the caption's id, which a test cannot know ahead. Rows also carry data-caption-language and data-caption-label, so a test can find the row for a language or label. * Regenerate the POT after the caption manager test ids * Build: resolve react/jsx-runtime to WordPress's React in the admin pages Packages bundled from node_modules (such as @wordpress/dataviews) import react/jsx-runtime. The pages build bundled that package, inlining React 18's element factory into 11 bundles. Elements were then created by a different copy of React from the one rendering them, and Plugin Check 2.2.0 fails the build (inlined_react_jsx_runtime), which blocks merges to main. Resolve the import to pages/jsx-runtime.js, which creates elements with createElement from the externalized React global. WordPress registers a shared react-jsx-runtime script only from 6.6, and GoDAM supports 6.5. * Transcription: keep the cached transcript while the default has no file Opening the Transcription tab asks Central for the caption list. When the default caption had no file yet (an AI transcript still pending, or one that failed), WordPress deleted its cached transcript, so the tab went empty and the player lost it. Now the cached transcript stays while Central still lists it; one Central no longer has is still cleared. * Regenerate the POT after resolving react/jsx-runtime * Regenerate the POT for the shifted transcription REST lines * Transcription: say it usually takes a few minutes "A few seconds" rested on one preprod run, and the panel polls every 8 seconds, so the note stays up longer than the job anyway. Addresses review: https://github.com/rtCamp/godam/pull/2347#discussion_r4511635812 * Caption manager: one helper for a caption's display label The label-or-language-name fallback was written in five places. It now lives in captionDisplayLabel(), so data-caption-label and the visible text can't drift apart. No behaviour change. Addresses review: https://github.com/rtCamp/godam/pull/2347#discussion_r4511635823 * Regenerate the POT for the new transcription message * Transcription: stop waiting and say why when GoDAM refuses to start When Central refused a transcription, for example "Transcription limit exceeded" on an account with no quota left, it gave the reason in message and left error empty. The editor only read error, so it showed nothing and kept the spinner running, polling every 8 seconds with no end. getGenerateRefusal() now treats any success: false answer with no job running as final and returns error or message. The editor stops waiting and shows it, or a generic message when Central gave none. * Regenerate the POT for the transcription refusal fix * POT: restore the plugin slug in the bug-report header The last two POT regenerations ran from worktree folders whose names became the slug in Report-Msgid-Bugs-To. Regenerated with --slug=godam. * Transcription: compare caption files, not signed URLs; keep an in-flight status Central signs caption URLs with a fresh token on every request, so the cached URL never equalled the listed one and the cache was still deleted on accounts with signed delivery. Compare the file part, before the query string. Also keep an in-flight status such as Transcribing when nothing is cached, so the tab opens on the progress state. Addresses review: https://github.com/rtCamp/godam/pull/2347#discussion_r4512331766 Addresses review: https://github.com/rtCamp/godam/pull/2347#discussion_r4512331774 * Regenerate the POT for the shifted transcription REST lines --- CHANGELOG.md | 2 +- inc/classes/rest-api/class-transcription.php | 25 +- languages/godam.pot | 573 +++++++++--------- pages/jsx-runtime.js | 35 ++ .../transcription/CaptionManager.js | 41 +- .../components/transcription/Transcription.js | 14 +- .../components/transcription/utils.js | 21 + .../components/transcription/utils.test.js | 38 ++ readme.txt | 2 +- tests/php/TranscriptionCaptionRefreshTest.php | 114 ++++ webpack.config.js | 8 + 11 files changed, 571 insertions(+), 302 deletions(-) create mode 100644 pages/jsx-runtime.js create mode 100644 pages/video-editor/components/transcription/utils.test.js diff --git a/CHANGELOG.md b/CHANGELOG.md index c3aa922447..5aa90eb81d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog # -## v2.8.0 (November 9, 2026) ## +## v2.8.0 (November 10, 2026) ## - Feat: Videos can now have captions in several languages. In the video editor's Transcription tab, add, edit, replace or remove a caption file for any language and choose which one shows by default. Visitors pick a language from the player's subtitles menu. Needs a paid GoDAM plan. - Feat: Choose the language for AI transcription, or let GoDAM detect it. diff --git a/inc/classes/rest-api/class-transcription.php b/inc/classes/rest-api/class-transcription.php index 2fc543c7d2..d4f00a81ef 100644 --- a/inc/classes/rest-api/class-transcription.php +++ b/inc/classes/rest-api/class-transcription.php @@ -835,11 +835,20 @@ private function write_caption( $attachment_id, $method, $body ) { * @return void */ public static function sync_cached_transcript( $attachment_id, $captions, $switch_context = true ) { + // Central signs caption URLs with a fresh token on every request, so two + // URLs for the same file differ only in their query string. Compare files. + $file_key = static function ( $url ) { + return (string) strtok( (string) $url, '?' ); + }; $default_path = ''; + $listed_files = array(); foreach ( $captions as $caption ) { - if ( is_array( $caption ) && ! empty( $caption['is_default'] ) && ! empty( $caption['vtt_path'] ) ) { + if ( ! is_array( $caption ) || empty( $caption['vtt_path'] ) ) { + continue; + } + $listed_files[] = $file_key( $caption['vtt_path'] ); + if ( '' === $default_path && ! empty( $caption['is_default'] ) ) { $default_path = esc_url_raw( $caption['vtt_path'] ); - break; } } @@ -850,12 +859,22 @@ public static function sync_cached_transcript( $attachment_id, $captions, $switc delete_post_meta( $attachment_id, self::DELETED_META ); if ( 'upload' !== get_post_meta( $attachment_id, self::SOURCE_META, true ) ) { update_post_meta( $attachment_id, self::CHECKED_META, time() ); + $cached_path = (string) get_post_meta( $attachment_id, 'rtgodam_transcript_path', true ); if ( '' !== $default_path ) { update_post_meta( $attachment_id, 'rtgodam_transcript_path', $default_path ); update_post_meta( $attachment_id, self::STATUS_META, 'Transcribed' ); + } elseif ( '' !== $cached_path && in_array( $file_key( $cached_path ), $listed_files, true ) ) { + // The default has no file yet (an AI transcript still pending, or one + // that failed). Keep the transcript WordPress has while Central still + // lists it, so the Transcription tab and the player don't lose it. + update_post_meta( $attachment_id, self::STATUS_META, 'Transcribed' ); } else { delete_post_meta( $attachment_id, 'rtgodam_transcript_path' ); - delete_post_meta( $attachment_id, self::STATUS_META ); + // Keep an in-flight status (such as "Transcribing") so the tab still + // shows the job in progress; only a finished one goes with the file. + if ( 'Transcribed' === get_post_meta( $attachment_id, self::STATUS_META, true ) ) { + delete_post_meta( $attachment_id, self::STATUS_META ); + } } } if ( $switch_context ) { diff --git a/languages/godam.pot b/languages/godam.pot index 8480ae66fd..09bbc08d5c 100644 --- a/languages/godam.pot +++ b/languages/godam.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-11-06T05:37:51+00:00\n" +"POT-Creation-Date: 2026-11-09T12:09:21+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: godam\n" @@ -121,7 +121,7 @@ msgstr "" #: assets/src/js/godam-player/managers/transcriptPanelManager.js:415 #: assets/src/js/godam-player/managers/transcriptPanelManager.js:422 #: pages/video-editor/components/audio/AudioCardPreview.js:253 -#: pages/video-editor/components/transcription/Transcription.js:188 +#: pages/video-editor/components/transcription/Transcription.js:192 msgid "Transcript" msgstr "" @@ -436,7 +436,7 @@ msgstr "" #: assets/build/pages/video-editor.min.js:2 #: assets/src/blocks/godam-audio/edit.js:571 #: pages/video-editor/components/editor-shell/EditorTabRail.js:20 -#: pages/video-editor/components/transcription/Transcription.js:194 +#: pages/video-editor/components/transcription/Transcription.js:198 msgid "Transcription" msgstr "" @@ -954,7 +954,7 @@ msgstr "" #: assets/build/blocks/godam-gallery-v2/index.js:1 #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: inc/classes/elementor-widgets/class-godam-gallery.php:220 #: inc/classes/wpbakery-elements/class-wpb-godam-video-gallery.php:192 #: assets/src/blocks/godam-gallery-v2/edit.js:1112 @@ -965,7 +965,7 @@ msgstr "" #: assets/build/blocks/godam-gallery-v2/index.js:1 #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: inc/classes/elementor-widgets/class-godam-gallery.php:224 #: inc/classes/wpbakery-elements/class-wpb-godam-video-gallery.php:195 #: assets/src/blocks/godam-gallery-v2/edit.js:1115 @@ -1089,7 +1089,7 @@ msgstr "" #: assets/build/blocks/godam-gallery-v2/index.js:1 #: assets/build/blocks/godam-player/index.js:5 #: assets/build/js/godam-player-frontend.min.js:7 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: inc/classes/elementor-widgets/class-godam-gallery.php:78 #: inc/classes/wpbakery-elements/class-wpb-godam-video-gallery.php:108 #: inc/classes/wpbakery-elements/class-wpb-godam-video.php:510 @@ -1244,7 +1244,7 @@ msgstr "" #: assets/src/blocks/godam-pdf/caption.js:48 #: assets/src/blocks/godam-player/caption.js:50 #: assets/src/blocks/godam-player/caption.js:56 -#: pages/video-editor/components/transcription/CaptionManager.js:513 +#: pages/video-editor/components/transcription/CaptionManager.js:539 msgid "Add caption" msgstr "" @@ -1257,7 +1257,7 @@ msgstr "" #: assets/build/blocks/godam-pdf/index.js:1 #: assets/build/js/wpbakery-document-selector-param.min.js:1 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: inc/classes/wpbakery-elements/class-wpb-godam-document.php:104 #: assets/src/blocks/godam-pdf/edit.js:321 #: assets/src/blocks/godam-pdf/edit.js:485 @@ -1761,7 +1761,7 @@ msgstr "" #: assets/build/js/deactivation-feedback.min.js:2 #: assets/build/js/godam-player-frontend.min.js:1 #: assets/build/pages/godam.min.js:2 -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/build/pages/media-library.min.js:2 #: assets/build/pages/video-editor.min.js:2 #: assets/src/blocks/godam-player/components/VideoSEOModal.js:334 @@ -1777,9 +1777,9 @@ msgstr "" #: pages/video-editor/components/chapters/ChapterForm.js:124 #: pages/video-editor/components/layers/LayersHeader.js:105 #: pages/video-editor/components/transcription/CaptionCueEditor.js:134 -#: pages/video-editor/components/transcription/CaptionManager.js:416 -#: pages/video-editor/components/transcription/CaptionManager.js:504 -#: pages/video-editor/components/transcription/Transcription.js:354 +#: pages/video-editor/components/transcription/CaptionManager.js:436 +#: pages/video-editor/components/transcription/CaptionManager.js:529 +#: pages/video-editor/components/transcription/Transcription.js:358 msgid "Cancel" msgstr "" @@ -1860,7 +1860,7 @@ msgid "Auto-generated from video" msgstr "" #: assets/build/blocks/godam-player/index.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/src/blocks/godam-player/components/ThumbnailPanel.js:264 #: pages/tools/components/tabs/RetranscodeTab.jsx:667 msgid "Reset" @@ -2077,7 +2077,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: assets/src/blocks/godam-player/edit.js:1025 #: pages/godam/components/TrialCountdownBanner.jsx:78 @@ -2212,7 +2212,7 @@ msgstr "" #: inc/classes/elementor-widgets/class-godam-video.php:90 #: assets/src/blocks/godam-player/track-uploader.js:77 #: assets/src/blocks/sureforms/blocks/recorder/edit.js:167 -#: pages/video-editor/components/transcription/CaptionManager.js:469 +#: pages/video-editor/components/transcription/CaptionManager.js:491 msgid "Label" msgstr "" @@ -2267,7 +2267,7 @@ msgid "Screencast" msgstr "" #: assets/build/blocks/sureforms/blocks/recorder/index.js:1 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: inc/classes/everest-forms/class-everest-forms-field-godam-video.php:452 #: inc/classes/gravity-forms/class-init.php:202 @@ -2601,9 +2601,9 @@ msgstr "" #: pages/media-library/components/context-menu/ContextMenu.jsx:518 #: pages/media-library/components/modal/DeleteModal.jsx:132 #: pages/video-editor/components/SidebarLayers.js:777 -#: pages/video-editor/components/transcription/CaptionManager.js:398 -#: pages/video-editor/components/transcription/CaptionManager.js:424 -#: pages/video-editor/components/transcription/Transcription.js:363 +#: pages/video-editor/components/transcription/CaptionManager.js:417 +#: pages/video-editor/components/transcription/CaptionManager.js:444 +#: pages/video-editor/components/transcription/Transcription.js:367 msgid "Delete" msgstr "" @@ -2704,7 +2704,7 @@ msgid "Mute" msgstr "" #: assets/build/js/godam-player-frontend.min.js:1 -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: assets/src/js/godam-player/managers/layers/formLayerManager.js:320 #: pages/media-library-tour/components/FinishModal.jsx:34 @@ -2722,8 +2722,8 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/media-library-tour.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: assets/src/js/godam-player/managers/layers/formLayerManager.js:325 #: assets/src/js/godam-player/managers/layers/formLayerManager.js:329 @@ -2865,7 +2865,7 @@ msgid "Transcoding…" msgstr "" #: assets/build/js/media-library.min.js:1 -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/build/pages/media-library.min.js:2 #: assets/src/js/media-library/views/filters/media-move-to-folder.js:37 #: pages/media-library-tour/steps.js:282 @@ -2878,9 +2878,9 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 -#: assets/build/pages/whats-new.min.js:2 +#: assets/build/pages/whats-new.min.js:1 #: admin/class-rtgodam-transcoder-admin.php:193 #: admin/class-rtgodam-transcoder-admin.php:277 #: admin/godam-transcoder-functions.php:458 @@ -2893,7 +2893,7 @@ msgid "GoDAM Logo" msgstr "" #: assets/build/js/media-library.min.js:1 -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/build/pages/media-library.min.js:2 #: inc/classes/class-media-library-ajax.php:1024 #: assets/src/js/media-library/views/fields/move-to-folder-field.js:79 @@ -2951,7 +2951,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: assets/src/js/media-library/views/fields/transcoding-refusal-panel.js:123 #: pages/godam/components/GoDAMHeader.jsx:118 @@ -3090,7 +3090,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: assets/src/js/media-library/utility.js:102 #: pages/godam/components/GoDAMHeader.jsx:102 @@ -3232,7 +3232,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/ProUpgradeNotice.jsx:111 msgid "You are now a pro member" @@ -3242,7 +3242,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/ProUpgradeNotice.jsx:113 msgid "With a paid plan, you get fixed storage, bandwidth that resets monthly, and unlimited sites." @@ -3252,7 +3252,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/ProUpgradeNotice.jsx:117 msgid "Got it" @@ -3263,7 +3263,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/TrialCountdownBanner.jsx:68 #, js-format @@ -3274,7 +3274,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:69 msgid "Interactive product hotspots" @@ -3284,7 +3284,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:70 msgid "Tag products directly on your videos so viewers can buy in a click." @@ -3294,7 +3294,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:75 msgid "Shoppable video" @@ -3304,7 +3304,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:76 msgid "Turn any product video into a storefront that drives conversions." @@ -3314,7 +3314,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:81 msgid "Reel Pops" @@ -3324,7 +3324,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:82 msgid "Surface short, shoppable product reels across your store." @@ -3334,7 +3334,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:87 msgid "Enhanced product page" @@ -3344,7 +3344,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:88 msgid "Showcase your videos right on the WooCommerce product page." @@ -3354,7 +3354,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:179 msgid "You have unlocked Woo features" @@ -3364,7 +3364,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:183 msgid "You've Unlocked Woo Features" @@ -3375,7 +3375,7 @@ msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 #: assets/build/pages/onboarding.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:185 #: pages/onboarding/components/screens/EntryScreen.jsx:38 @@ -3386,7 +3386,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:205 #: pages/video-editor/onboarding/WelcomeIntroModal.jsx:66 @@ -3397,7 +3397,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/WooUnlockedNotice.jsx:226 msgid "Feature preview slides" @@ -3408,7 +3408,7 @@ msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 #: assets/build/pages/onboarding.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/GoDAMHeader.jsx:92 #: pages/onboarding/components/screens/WorkspaceScreen.jsx:119 @@ -3419,8 +3419,8 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/media-library-tour.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/GoDAMHeader.jsx:107 #: pages/godam/components/tabs/IntegrationsSettings/HubSpotSettings.jsx:108 @@ -3432,7 +3432,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/GoDAMHeader.jsx:107 msgid "Premium feature" @@ -3442,7 +3442,7 @@ msgstr "" #: assets/build/pages/dashboard.min.js:2 #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/GoDAMHeader.jsx:130 msgid "Get GoDAM" @@ -3468,7 +3468,7 @@ msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:72 #: pages/analytics/components/DateRangePicker/index.js:73 msgid "Last 7 days" @@ -3476,7 +3476,7 @@ msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:78 #: pages/analytics/components/DateRangePicker/index.js:79 msgid "Last 15 days" @@ -3484,7 +3484,7 @@ msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:84 #: pages/analytics/components/DateRangePicker/index.js:85 msgid "Last 1 month" @@ -3493,7 +3493,7 @@ msgstr "" #. translators: 1: range start (e.g. "Nov 7"), 2: range end (e.g. "Nov 13"). #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:131 #, js-format msgid "%1$s - %2$s" @@ -3502,7 +3502,7 @@ msgstr "" #. translators: %s: range start date, e.g. "Nov 7". #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:139 #, js-format msgid "From %s" @@ -3510,63 +3510,63 @@ msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:170 msgid "Su" msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:171 msgid "Mo" msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:172 msgid "Tu" msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:173 msgid "We" msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:174 msgid "Th" msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:175 msgid "Fr" msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:176 msgid "Sa" msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:313 msgid "Previous month" msgstr "" #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:329 msgid "Next month" msgstr "" @@ -3574,7 +3574,7 @@ msgstr "" #. translators: %s: the selected range label. #: assets/build/pages/analytics.min.js:2 #: assets/build/pages/dashboard.min.js:2 -#: assets/build/pages/shared-components.min.js:2 +#: assets/build/pages/shared-components.min.js:1 #: pages/analytics/components/DateRangePicker/index.js:197 #, js-format msgid "Date range: %s" @@ -5537,28 +5537,28 @@ msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:19 msgid "Support" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:23 msgid "Docs" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:27 msgid "Newsletter" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: inc/classes/class-pages.php:270 #: inc/classes/class-pages.php:271 #: pages/dashboard/components/MarketingCarousel.jsx:94 @@ -5568,56 +5568,56 @@ msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:39 msgid "Twitter X" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:44 msgid "Facebook" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:49 msgid "Linkedin" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:54 msgid "Instagram" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:59 msgid "Youtube" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:64 msgid "WordPress.org" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:67 msgid "Rate us on WordPress.org" msgstr "" #: assets/build/pages/godam.min.js:2 #: assets/build/pages/help.min.js:2 -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/godam/components/GoDAMFooter.jsx:77 msgid "Made with ♥ by the GoDAM Team" msgstr "" @@ -5691,7 +5691,7 @@ msgid "Enter your API key here" msgstr "" #: assets/build/pages/godam.min.js:2 -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/godam/components/ConfirmModal.jsx:37 msgid "Confirm" @@ -6491,7 +6491,7 @@ msgstr "" #: inc/classes/elementor-widgets/class-godam-video.php:126 #: pages/godam/components/tabs/VideoPlayer/VideoPlayer.jsx:29 #: pages/video-editor/components/forms/CF7.js:26 -#: pages/video-editor/components/transcription/CaptionManager.js:337 +#: pages/video-editor/components/transcription/CaptionManager.js:352 msgid "Default" msgstr "" @@ -6787,47 +6787,47 @@ msgstr "" msgid "Allows the GoDAM plugin to track events for analytics purposes. This helps us improve the product experience." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/WelcomeModal.jsx:45 msgid "Welcome to the GoDAM Media Library" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/WelcomeModal.jsx:51 msgid "Take a quick, hands-on tour: you’ll create a folder, nest a sub-folder inside it and move media into it. It takes about two minutes." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/WelcomeModal.jsx:18 msgid "Folders & sub-folders" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/WelcomeModal.jsx:19 msgid "Organize every file into a tidy, nested structure." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/WelcomeModal.jsx:22 msgid "Drag & drop" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/WelcomeModal.jsx:23 msgid "Move media into folders, or rearrange the folders themselves." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/WelcomeModal.jsx:26 msgid "Bookmarks & locks" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/WelcomeModal.jsx:27 msgid "Pin the folders you use most and protect the ones that matter." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/media-library-tour/components/WelcomeModal.jsx:69 #: pages/video-editor/onboarding/WelcomeChooserModal.jsx:129 @@ -6835,75 +6835,75 @@ msgstr "" msgid "Skip for now" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/WelcomeModal.jsx:72 msgid "Start the tour" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/FinishModal.jsx:24 msgid "You’re all set!" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/FinishModal.jsx:30 msgid "You now know how to organize your Media Library with GoDAM folders. Replay the tour anytime from the bulb button next to Manage Media." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/BulbButton.jsx:23 msgid "Take a guided tour of GoDAM Media Library features" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:61 msgid "your folder" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/media-library-tour/controller.js:333 #: pages/video-editor/onboarding/productGuide.js:197 msgid "Next" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/src/js/godam-player/engagement.js:1114 #: pages/media-library-tour/controller.js:355 msgid "Back" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:99 msgid "Your folder panel" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:101 msgid "GoDAM adds folders to your Media Library. All Media shows everything, and Uncategorized collects media that isn’t in a folder yet." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:109 msgid "Create a folder" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:111 msgid "Let’s create your first folder. Click “New Folder”." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:123 msgid "Name it" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:124 msgid "Type a name, for example “Marketing”, and click Create." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/build/pages/media-library.min.js:2 #: pages/media-library-tour/steps.js:129 #: pages/media-library/components/folder-tree/FolderMenuToggle.jsx:41 @@ -6911,130 +6911,130 @@ msgid "Folder options" msgstr "" #. translators: %s: folder name. -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:133 #, js-format msgid "“%s” is ready! Click the three-dot menu next to it (or right-click the folder) to see what you can do with it." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:151 msgid "Everything in one menu" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:153 msgid "Rename, lock, bookmark, download as ZIP or delete folders from here. Now click “New Sub-folder” to nest a folder inside this one." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:169 msgid "Name the sub-folder" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:170 msgid "Give the sub-folder a name, for example “Campaign assets”, and click Create." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:178 msgid "Nested folders" msgstr "" #. translators: %s: sub-folder name. -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:195 #, js-format msgid "“%s” now lives inside its parent. Tip: drag and drop any folder to reorder it or move it into another folder." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:209 msgid "Bookmarks & locked folders" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:211 msgid "Bookmark the folders you use most and lock the ones that shouldn’t change. They are collected here for quick access." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:219 msgid "Add media to a folder" msgstr "" #. translators: %s: folder name. -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:223 #, js-format msgid "Drag this item and drop it on “%s” in the sidebar. You can select multiple items to move them together." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:247 msgid "Open your folder" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:249 msgid "Click the folder to open it and see the media inside." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:257 msgid "Move many at once" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:259 msgid "Prefer clicking to dragging? Click “Bulk select” to pick several items at once." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:268 msgid "Pick your media" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:270 msgid "Click one or more items to select them." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:284 msgid "Now click “Move to folder”. You can keep adding items to the selection first." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:297 msgid "Choose a destination" msgstr "" #. translators: %s: folder name. -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:304 #, js-format msgid "Pick a folder, for example “%s”, and click Move." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:307 msgid "Pick a destination folder and click Move." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:329 msgid "Moved!" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:353 msgid "the folder" msgstr "" #. translators: 1: number of items, 2: folder name. -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:369 #, js-format msgid "%1$d item is now in “%2$s” — the count next to the folder went up. That’s all it takes to move media in bulk." @@ -7043,7 +7043,7 @@ msgstr[0] "" msgstr[1] "" #. translators: 1: number of items, 2: folder name. -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:357 #, js-format msgid "%1$d item is now in “%2$s”. Open that folder anytime to see it. That’s all it takes to move media in bulk." @@ -7051,84 +7051,84 @@ msgid_plural "%1$d items are now in “%2$s”. Open that folder anytime to see msgstr[0] "" msgstr[1] "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:390 msgid "Leave Bulk select" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:392 msgid "Click “Cancel” to leave Bulk select mode before we continue." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:401 msgid "Upload straight into a folder" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:403 msgid "Files you upload while a folder is open are saved in that folder automatically." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:410 msgid "Find anything fast" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:412 msgid "Filter by media type or date range, or search across your whole library." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:419 msgid "Folder tools" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:421 msgid "Search folders by name, sort them A–Z or Z–A, or use Bulk Select to act on several folders at once." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:430 msgid "Open GoDAM Central for advanced media management, sharing and analytics." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:438 msgid "Replay anytime" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:440 msgid "That’s the tour! Click the bulb whenever you want to take it again." msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/steps.js:444 msgid "Finish" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/TourApp.jsx:140 msgid "End the tour?" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/TourApp.jsx:141 msgid "End tour" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: pages/media-library-tour/components/TourApp.jsx:142 #: pages/video-editor/onboarding/ProductGuide.jsx:225 msgid "Keep going" msgstr "" -#: assets/build/pages/media-library-tour.min.js:2 +#: assets/build/pages/media-library-tour.min.js:1 #: pages/media-library-tour/components/TourApp.jsx:147 msgid "You can pick it up again anytime from the bulb button next to Manage Media." msgstr "" @@ -7704,7 +7704,7 @@ msgstr "" #: assets/build/pages/video-editor.min.js:2 #: pages/onboarding/components/screens/EntryScreen.jsx:49 #: pages/onboarding/components/screens/SignupScreen.jsx:70 -#: pages/video-editor/components/transcription/Transcription.js:295 +#: pages/video-editor/components/transcription/Transcription.js:299 msgid "OR" msgstr "" @@ -8066,122 +8066,122 @@ msgstr "" msgid "Go to dashboard" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/CoreVideoMigration.jsx:133 msgid "WordPress core video migration failed. Please try again." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/CoreVideoMigration.jsx:130 msgid "WordPress core video migration completed successfully 🎉" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/CoreVideoMigration.jsx:165 msgid "Core video Migration" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/CoreVideoMigration.jsx:167 msgid "This tool replaces WordPress core video blocks with GoDAM video blocks. It does not replace videos added in the WordPress Classic Editor." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/CoreVideoMigration.jsx:186 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:231 msgid "Abort" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/CoreVideoMigration.jsx:36 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:40 msgid "Starting…" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/CoreVideoMigration.jsx:54 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:69 msgid "Something went wrong while starting migration." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/CoreVideoMigration.jsx:195 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:240 msgid "Restart Migration" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/CoreVideoMigration.jsx:195 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:240 msgid "Start Migration" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:144 msgid "Vimeo Video Migration failed. Please try again." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:141 msgid "Vimeo Video Migration has been successfully completed for all posts and pages 🎉" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:179 msgid "Vimeo video Migration" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:181 msgid "This tool replaces WordPress Vimeo Embed blocks with GoDAM Video blocks. It does not replace Vimeo videos added in the WordPress Classic Editor." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:185 msgid "Step 1:" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:186 msgid "Connect your Vimeo account in GoDAM Central." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:187 msgid "Connect Vimeo" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:192 msgid "This migrator will only migrate Vimeo videos that are already fetched on GoDAM Central." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:193 msgid "Open" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:208 msgid "Vimeo video migration in WordPress can only begin after all Vimeo videos have been successfully migrated to GoDAM Central," msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:210 msgid "Check here!" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/Migration/VimeoVideoMigration.jsx:219 msgid "Migration is in progress. Please wait…" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:34 msgid "All media" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: assets/build/pages/video-editor.min.js:2 #: inc/classes/elementor-widgets/class-godam-image.php:61 #: inc/classes/wpbakery-elements/class-wpb-godam-image.php:70 @@ -8191,7 +8191,7 @@ msgstr "" msgid "Image" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: admin/class-rtgodam-retranscodemedia.php:134 #: admin/class-rtgodam-retranscodemedia.php:291 #: admin/class-rtgodam-retranscodemedia.php:312 @@ -8202,24 +8202,24 @@ msgid "Retranscode Media" msgstr "" #. translators: %s is a comma-separated list of file extensions, e.g. "PDF, DOCX". -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:91 #, js-format msgid "Fetches %s files. GoDAM converts each one to a preview PDF." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:94 msgid "Choose which type of media to fetch for transcoding." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:120 msgid "The requested operation is not allowed. The nonce provided in the URL is invalid or expired." msgstr "" #. translators: %d is the number of selected media files to be transcoded. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:150 #: pages/tools/components/tabs/RetranscodeTab.jsx:175 #, js-format @@ -8227,286 +8227,286 @@ msgid "%d selected media file(s) will be transcoded." msgstr "" #. translators: %d is the number of selected media files to be retranscoded. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:160 #, js-format msgid "%d selected media file(s) will be retranscoded." msgstr "" #. translators: %d is the number of virtual media files found. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:370 #, js-format msgid "%d virtual media file(s) found, which need to be retranscoded on GoDAM Central." msgstr "" #. translators: %d is the number of media files retranscoded. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:379 #, js-format msgid "Successfully sent %d media file(s) for retranscoding." msgstr "" #. translators: %d is the number of media files that failed to retranscode. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:394 #, js-format msgid "Failed to send %d media file(s) for retranscoding." msgstr "" #. translators: %d is the number of media files that were skipped. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:412 #, js-format msgid "%d media file(s) were skipped and not sent for retranscoding." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:425 msgid "Operation completed without any media files to retranscode." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:458 msgid "This tool allows you to retranscode your media files. You can either retranscode specific files selected from the Media Library, or pick a media type below and fetch the files of that type that are not yet transcoded." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:465 msgid "Checking the \"Force retranscode\" option will retranscode all media files regardless of their current state." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:470 msgid "Note: Transcoding and retranscoding will use your bandwidth allowance. Use the force retranscode option carefully." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:481 msgid "Storage Limit Exceeded:" msgstr "" #. translators: %s is the storage usage percentage. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:484 #, js-format msgid "Your storage usage has exceeded your plan limit (%s%%). Retranscoding is currently blocked. Please upgrade your plan to continue." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:500 msgid "Media type" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:517 msgid "Force retranscode (even if already transcoded)" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:533 msgid "Fetching media that require retranscoding…" msgstr "" #. translators: %d is the number of untranscoded media files. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:552 #, js-format msgid "%d untranscoded media file(s) selected" msgstr "" #. translators: %d is the number of transcoded media files. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:561 #, js-format msgid "%d transcoded media file(s) selected" msgstr "" #. translators: 1: number of media files that require retranscoding, 2: total number of media files. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:574 #, js-format msgid "%1$d/%2$d media file(s) require retranscoding." msgstr "" #. translators: 1: number of media files that will be retranscoded regardless of their current state, 2: total number of media files. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:580 #, js-format msgid "%1$d/%2$d media file(s) will be retranscoded regardless of their current state." msgstr "" #. translators: 1: number of media files sent for retranscoding, 2: total number of media files selected. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:593 #, js-format msgid "%1$d/%2$d media files sent for retranscoding…" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:217 msgid "No media files found for retranscoding. Please ensure you have media files that require retranscoding." msgstr "" #. translators: %s is the selected media type label, e.g. Video. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:222 #, js-format msgid "No media files of the selected type (%s) found for retranscoding. Please ensure you have media files of this type that require retranscoding." msgstr "" #. translators: %s is the error message. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:233 #, js-format msgid "Failed to fetch media for retranscoding: %s" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:631 msgid "Fetch Media" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:641 msgid "Restart Transcoding" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:643 msgid "Restart Retranscoding" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:635 msgid "Start Transcoding" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:637 msgid "Start Retranscoding" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:250 msgid "Aborting operation to send media for retranscoding." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/RetranscodeTab.jsx:656 msgid "Abort Operation" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/App.js:28 msgid "Video Migration" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/App.js:34 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:201 msgid "Media Usage Sync" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:70 msgid "Media usage sync completed successfully." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:204 msgid "Scans all existing posts and pages to record which media files are used where. GoDAM starts this scan automatically in the background — use this page to monitor progress or trigger it manually if needed." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:210 msgid "This sync is completely non-destructive." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:212 msgid "It will not alter, move, or delete any of your existing media files." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:216 msgid "Processing runs in small background batches so your site stays fully responsive throughout." msgstr "" #. translators: 1: posts synced so far, 2: total posts to sync. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:167 #, js-format msgid "%1$d of %2$d posts synced…" msgstr "" #. translators: 1: posts synced so far, 2: total posts to sync. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:175 #, js-format msgid "%1$d of %2$d posts synced (stopped)." msgstr "" #. translators: %d: total number of posts synced. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:182 #, js-format msgid "%d posts synced." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:232 msgid "Only administrators can start or stop the media usage sync." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:102 msgid "All posts are already synced — nothing to do." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:110 msgid "Failed to start the sync. Please try again." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:150 msgid "Syncing…" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:153 msgid "Resume Sync" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:156 msgid "Sync Completed" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:158 msgid "Start Sync" msgstr "" #. translators: 1: posts synced so far, 2: total posts to sync. -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:129 #, js-format msgid "Sync stopped. %1$d of %2$d posts were synced. You can resume at any time." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:139 msgid "Failed to stop the sync. Please try again." msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:255 msgid "Stopping…" msgstr "" -#: assets/build/pages/tools.min.js:2 +#: assets/build/pages/tools.min.js:1 #: pages/tools/components/tabs/MediaUsageSyncTab.jsx:256 msgid "Stop Sync" msgstr "" @@ -10102,7 +10102,7 @@ msgstr "" #: assets/build/pages/video-editor.min.js:2 #: pages/video-editor/components/transcription/CaptionCueEditor.js:89 -#: pages/video-editor/components/transcription/CaptionManager.js:365 +#: pages/video-editor/components/transcription/CaptionManager.js:380 msgid "Edit captions" msgstr "" @@ -10115,7 +10115,7 @@ msgstr "" #: assets/build/pages/video-editor.min.js:2 #: pages/video-editor/components/transcription/CaptionCueEditor.js:126 -#: pages/video-editor/components/transcription/Transcription.js:255 +#: pages/video-editor/components/transcription/Transcription.js:259 msgid "No cues found in this caption file." msgstr "" @@ -10125,67 +10125,67 @@ msgid "Could not save the caption." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:128 +#: pages/video-editor/components/transcription/CaptionManager.js:137 msgid "Enter a language code, such as cy or pt-BR, not the language name." msgstr "" #. translators: %s: caption label the user typed. #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:144 +#: pages/video-editor/components/transcription/CaptionManager.js:153 #, js-format msgid "A caption named \"%s\" already exists on this video. Choose another label." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:274 +#: pages/video-editor/components/transcription/CaptionManager.js:283 msgid "Other (enter code)…" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:279 -#: pages/video-editor/components/transcription/Transcription.js:217 -#: pages/video-editor/components/transcription/Transcription.js:326 +#: pages/video-editor/components/transcription/CaptionManager.js:288 +#: pages/video-editor/components/transcription/Transcription.js:221 +#: pages/video-editor/components/transcription/Transcription.js:330 msgid "Manage caption tracks" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:292 +#: pages/video-editor/components/transcription/CaptionManager.js:301 msgid "Multi-language captions are part of the paid GoDAM plans" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:295 +#: pages/video-editor/components/transcription/CaptionManager.js:304 msgid "With a paid plan, every language you add or generate here appears in the player's subtitles menu. On your current plan, Upload File in the Transcription tab still adds one caption file to this video." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:299 +#: pages/video-editor/components/transcription/CaptionManager.js:308 msgid "See plans" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:303 +#: pages/video-editor/components/transcription/CaptionManager.js:312 msgid "Connect your account" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:312 +#: pages/video-editor/components/transcription/CaptionManager.js:321 msgid "Could not load the caption tracks." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:341 +#: pages/video-editor/components/transcription/CaptionManager.js:356 msgid "Uploaded" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:341 +#: pages/video-editor/components/transcription/CaptionManager.js:356 msgid "Generated" msgstr "" #. translators: %d: number of cues in the caption file. #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:350 +#: pages/video-editor/components/transcription/CaptionManager.js:365 #, js-format msgid "%d cue" msgid_plural "%d cues" @@ -10193,122 +10193,122 @@ msgstr[0] "" msgstr[1] "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:372 +#: pages/video-editor/components/transcription/CaptionManager.js:388 msgid "Replace file" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:380 +#: pages/video-editor/components/transcription/CaptionManager.js:397 msgid "Download" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:390 +#: pages/video-editor/components/transcription/CaptionManager.js:408 msgid "Shown by default" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:390 +#: pages/video-editor/components/transcription/CaptionManager.js:408 msgid "Show this caption by default" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:253 +#: pages/video-editor/components/transcription/CaptionManager.js:262 msgid "Could not set the default caption." msgstr "" #. translators: %s: caption track name. #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:410 +#: pages/video-editor/components/transcription/CaptionManager.js:430 #, js-format msgid "Delete \"%s\"? It is removed from GoDAM, so every site and page that plays this video loses it. This cannot be undone." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:266 +#: pages/video-editor/components/transcription/CaptionManager.js:275 msgid "Could not delete the caption track." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:434 +#: pages/video-editor/components/transcription/CaptionManager.js:454 msgid "No caption tracks yet." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:447 +#: pages/video-editor/components/transcription/CaptionManager.js:467 msgid "Language" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:457 +#: pages/video-editor/components/transcription/CaptionManager.js:478 msgid "Language code" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:470 +#: pages/video-editor/components/transcription/CaptionManager.js:493 msgid "Shown in the menu" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:481 +#: pages/video-editor/components/transcription/CaptionManager.js:504 msgid "Choose another file" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:481 +#: pages/video-editor/components/transcription/CaptionManager.js:504 msgid "Choose file" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:490 +#: pages/video-editor/components/transcription/CaptionManager.js:513 msgid "Set as default" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:208 +#: pages/video-editor/components/transcription/CaptionManager.js:217 msgid "Could not add the caption track." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:187 +#: pages/video-editor/components/transcription/CaptionManager.js:196 msgid "Enter a label for this caption. It is the name shown in the subtitles menu." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:180 +#: pages/video-editor/components/transcription/CaptionManager.js:189 msgid "Choose a language for this caption." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:176 +#: pages/video-editor/components/transcription/CaptionManager.js:185 msgid "Choose a caption file first." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:525 +#: pages/video-editor/components/transcription/CaptionManager.js:552 msgid "Add caption track" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:162 -#: pages/video-editor/components/transcription/CaptionManager.js:227 +#: pages/video-editor/components/transcription/CaptionManager.js:171 +#: pages/video-editor/components/transcription/CaptionManager.js:236 msgid "Caption file is too large. The limit is 1 MB." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:169 +#: pages/video-editor/components/transcription/CaptionManager.js:178 msgid "Could not read the caption file." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:158 -#: pages/video-editor/components/transcription/CaptionManager.js:223 -#: pages/video-editor/components/transcription/Transcription.js:162 +#: pages/video-editor/components/transcription/CaptionManager.js:167 +#: pages/video-editor/components/transcription/CaptionManager.js:232 +#: pages/video-editor/components/transcription/Transcription.js:166 msgid "Please choose a .vtt or .srt caption file." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/CaptionManager.js:236 +#: pages/video-editor/components/transcription/CaptionManager.js:245 msgid "Could not replace the caption file." msgstr "" @@ -10318,83 +10318,84 @@ msgid "Transcription failed. Please try again." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:152 +#: pages/video-editor/components/transcription/Transcription.js:156 msgid "Select a caption file" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:153 +#: pages/video-editor/components/transcription/Transcription.js:157 msgid "Use this file" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:168 +#: pages/video-editor/components/transcription/Transcription.js:172 msgid "Could not attach the caption file." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:224 +#: pages/video-editor/components/transcription/Transcription.js:228 msgid "Replace transcription file" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:231 -#: pages/video-editor/components/transcription/Transcription.js:343 +#: pages/video-editor/components/transcription/Transcription.js:235 +#: pages/video-editor/components/transcription/Transcription.js:347 msgid "Delete transcription" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:265 +#: pages/video-editor/components/transcription/Transcription.js:269 msgid "Automatically transcribe the audio using GoDAM's AI engine" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:270 +#: pages/video-editor/components/transcription/Transcription.js:274 msgid "Transcription language" msgstr "" #: assets/build/pages/video-editor.min.js:2 #: pages/video-editor/components/transcription/Transcription.js:142 +#: pages/video-editor/components/transcription/Transcription.js:146 msgid "Could not start transcription. Please try again." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:286 +#: pages/video-editor/components/transcription/Transcription.js:290 msgid "Generate Transcription" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:290 +#: pages/video-editor/components/transcription/Transcription.js:294 msgid "Transcription runs on GoDAM, and this video has not been transcoded by GoDAM yet. You can still upload a caption file." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:302 +#: pages/video-editor/components/transcription/Transcription.js:306 msgid "Generating transcription…" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:305 -msgid "This usually takes 10–15 minutes. We'll notify you once it's ready" +#: pages/video-editor/components/transcription/Transcription.js:309 +msgid "This usually takes a few minutes, longer for long videos. We'll notify you once it's ready" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:318 +#: pages/video-editor/components/transcription/Transcription.js:322 msgid "Upload File" msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:346 +#: pages/video-editor/components/transcription/Transcription.js:350 msgid "Delete this transcription from WordPress? This cannot be undone." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:347 +#: pages/video-editor/components/transcription/Transcription.js:351 msgid "Caption tracks stored in GoDAM keep playing for visitors. To remove one, use Manage caption tracks." msgstr "" #: assets/build/pages/video-editor.min.js:2 -#: pages/video-editor/components/transcription/Transcription.js:182 +#: pages/video-editor/components/transcription/Transcription.js:186 msgid "Could not remove the transcript." msgstr "" @@ -10746,7 +10747,7 @@ msgstr "" msgid "We’ll open a new draft page and drop the video right in." msgstr "" -#: assets/build/pages/whats-new.min.js:2 +#: assets/build/pages/whats-new.min.js:1 #: pages/whats-new/components/Header.js:25 msgid "What's New in GoDAM" msgstr "" @@ -14086,19 +14087,19 @@ msgstr "" msgid "Only .vtt or .srt caption files are supported." msgstr "" -#: inc/classes/rest-api/class-transcription.php:1035 +#: inc/classes/rest-api/class-transcription.php:1054 msgid "Connect your GoDAM account to manage captions." msgstr "" -#: inc/classes/rest-api/class-transcription.php:1056 +#: inc/classes/rest-api/class-transcription.php:1075 msgid "This video has not been transcoded yet, so it has no captions." msgstr "" -#: inc/classes/rest-api/class-transcription.php:1088 +#: inc/classes/rest-api/class-transcription.php:1107 msgid "Could not reach the caption service. Please try again." msgstr "" -#: inc/classes/rest-api/class-transcription.php:1109 +#: inc/classes/rest-api/class-transcription.php:1128 msgid "The caption service rejected the request." msgstr "" diff --git a/pages/jsx-runtime.js b/pages/jsx-runtime.js new file mode 100644 index 0000000000..255ea58ce9 --- /dev/null +++ b/pages/jsx-runtime.js @@ -0,0 +1,35 @@ +/** + * `react/jsx-runtime` for the admin pages, built on the React WordPress loads. + * + * Packages bundled from node_modules (such as `@wordpress/dataviews`) are + * compiled with the automatic JSX runtime and import `react/jsx-runtime`. + * Bundling that package inlines React's own element factory, so elements are + * created by a different copy of React from the one rendering them, and + * Plugin Check reports it (`inlined_react_jsx_runtime`). WordPress registers a + * shared `react-jsx-runtime` script only from 6.6, and GoDAM supports 6.5, so + * webpack resolves the import here instead: every element goes through + * `createElement` of the externalized `React` global. + * + * `jsx( type, props, key )` passes the key outside `props`; `createElement` + * reads it from the config, along with `ref`, and keeps `props.children`. + */ + +/** + * External dependencies + */ +import { createElement, Fragment } from 'react'; + +/** + * Creates an element the way the automatic JSX runtime does. + * + * @param {string|Function} type Element type. + * @param {Object} props Props, including `children`. + * @param {string} [key] Element key, passed separately by the runtime. + * + * @return {Object} React element. + */ +function jsx( type, props, key ) { + return createElement( type, undefined === key ? props : { ...props, key } ); +} + +export { Fragment, jsx, jsx as jsxs, jsx as jsxDEV }; diff --git a/pages/video-editor/components/transcription/CaptionManager.js b/pages/video-editor/components/transcription/CaptionManager.js index ae8272bced..acbd1b82bb 100644 --- a/pages/video-editor/components/transcription/CaptionManager.js +++ b/pages/video-editor/components/transcription/CaptionManager.js @@ -37,6 +37,15 @@ import CaptionCueEditor from './CaptionCueEditor'; const FREE_TEXT = '__other__'; +/** + * The name a caption shows in the list and the subtitles menu: its label, or + * the language name when it has none. + * + * @param {Object} caption Caption track row. + * @return {string} Display label. + */ +const captionDisplayLabel = ( caption ) => caption.label || languageLabel( caption.language ); + // Same marks as GoDAM Central's caption dialog: an outlined check for "make this the default", // a filled green one on the track that already is, and circular arrows for "replace". // Stroke-only icons: the --stroke class stops the button's fill rule from filling them. @@ -119,7 +128,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { // Central's caption endpoints return `{ success, captions: [...] }`. // A to Z by the name shown, so a row does not jump when it becomes the default. const captions = ( Array.isArray( data?.captions ) ? [ ...data.captions ] : [] ).sort( ( a, b ) => - ( a.label || languageLabel( a.language ) ).localeCompare( b.label || languageLabel( b.language ), undefined, { sensitivity: 'base' } ), + captionDisplayLabel( a ).localeCompare( captionDisplayLabel( b ), undefined, { sensitivity: 'base' } ), ); const resolvedLanguage = form.language === FREE_TEXT ? form.freeLang.trim() : form.language; @@ -136,7 +145,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { // no two tracks on a video may share one (ignoring case and outer spaces). const newLabel = form.label.trim(); const labelTaken = '' !== newLabel && captions.some( - ( caption ) => ( caption.label || languageLabel( caption.language ) ).trim().toLowerCase() === newLabel.toLowerCase(), + ( caption ) => captionDisplayLabel( caption ).trim().toLowerCase() === newLabel.toLowerCase(), ); const labelError = labelTaken ? sprintf( @@ -326,11 +335,17 @@ const CaptionManager = ( { attachmentID, onClose } ) => { const canEditCues = ! caption.has_rich_formatting; const rowBusy = busyId === id; return ( -
  • +
  • - { caption.label || languageLabel( caption.language ) } + { captionDisplayLabel( caption ) } { caption.is_default && ( @@ -364,6 +379,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { icon={ edit } label={ __( 'Edit captions', 'godam' ) } showTooltip + data-test-id="godam-caption-button-edit" disabled={ ! canEditCues || rowBusy || ! caption.vtt_path } onClick={ () => setEditing( caption ) } /> @@ -371,6 +387,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { icon={ ReplaceIcon } label={ __( 'Replace file', 'godam' ) } showTooltip + data-test-id="godam-caption-button-replace" disabled={ rowBusy } onClick={ () => triggerReplace( id ) } /> @@ -379,6 +396,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { icon={ download } label={ __( 'Download', 'godam' ) } showTooltip + data-test-id="godam-caption-button-download" href={ caption.vtt_path } target="_blank" rel="noreferrer" @@ -390,6 +408,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { label={ caption.is_default ? __( 'Shown by default', 'godam' ) : __( 'Show this caption by default', 'godam' ) } showTooltip className="godam-ve-caption-manager__default-btn" + data-test-id="godam-caption-button-set-default" disabled={ caption.is_default || rowBusy || ! caption.vtt_path } onClick={ () => handleSetDefault( id ) } /> @@ -398,6 +417,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { label={ __( 'Delete', 'godam' ) } showTooltip isDestructive + data-test-id="godam-caption-button-delete" disabled={ rowBusy } onClick={ () => setConfirmDeleteId( id ) } /> @@ -408,7 +428,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { { sprintf( /* translators: %s: caption track name. */ __( 'Delete "%s"? It is removed from GoDAM, so every site and page that plays this video loses it. This cannot be undone.', 'godam' ), - caption.label || languageLabel( caption.language ), + captionDisplayLabel( caption ), ) }

    @@ -445,6 +465,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { setForm( ( f ) => ( { ...f, language } ) ) } @@ -455,6 +476,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { { {
    - { pendingFile && ( @@ -488,6 +511,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => { setForm( ( f ) => ( { ...f, isDefault } ) ) } /> @@ -496,6 +520,7 @@ const CaptionManager = ( { attachmentID, onClose } ) => {
    diff --git a/pages/video-editor/components/transcription/utils.js b/pages/video-editor/components/transcription/utils.js index afc7a6371b..dc41978640 100644 --- a/pages/video-editor/components/transcription/utils.js +++ b/pages/video-editor/components/transcription/utils.js @@ -128,6 +128,27 @@ export const formatBytes = ( bytes ) => { */ export const isTranscribingStatus = ( status ) => status === 'Transcribing' || status === 'Transcoding'; +/** + * Whether a "Generate Transcription" answer means GoDAM refused to start, and why. + * + * Central gives the reason in `error` for some refusals and in `message` for + * others (for example "Transcription limit exceeded" when the account's quota + * is used up), with `success` false and no job status either way. A refusal is + * final: no job runs, so the editor must stop waiting and say so. + * + * @param {Object} [result] Response from `/godam/v1/transcription/generate`. + * @return {string|null} The reason ('' when Central gave none); null when a transcript exists or a job started or is running. + */ +export const getGenerateRefusal = ( result ) => { + if ( ! result || result.success !== false || result.transcript_path ) { + return null; + } + if ( isTranscribingStatus( result.current_status ) || isTranscribingStatus( result.status ) ) { + return null; + } + return result.error || result.message || ''; +}; + /** * Serialise cue objects back into a WebVTT file. * diff --git a/pages/video-editor/components/transcription/utils.test.js b/pages/video-editor/components/transcription/utils.test.js new file mode 100644 index 0000000000..e1082f7fd9 --- /dev/null +++ b/pages/video-editor/components/transcription/utils.test.js @@ -0,0 +1,38 @@ +/** + * Internal dependencies + */ +import { getGenerateRefusal } from './utils'; + +describe( 'getGenerateRefusal', () => { + it( 'reads the reason from `message` when Central leaves `error` empty', () => { + // Central's answer on an account with no transcription quota left (e2e, 9 Nov 2026). + const result = { + success: false, + status: '', + current_status: '', + transcript_path: '', + error: '', + message: 'Transcription limit exceeded. Cannot process transcription.', + }; + + expect( getGenerateRefusal( result ) ).toBe( 'Transcription limit exceeded. Cannot process transcription.' ); + } ); + + it( 'prefers `error` when both are set', () => { + expect( getGenerateRefusal( { success: false, error: 'No audio track.', message: 'Failed.' } ) ).toBe( 'No audio track.' ); + } ); + + it( 'still counts a refusal with no reason, so the caller can show its own', () => { + expect( getGenerateRefusal( { success: false, error: '', message: '' } ) ).toBe( '' ); + } ); + + it.each( [ + [ 'a job already in progress', { success: false, current_status: 'Transcribing', message: 'Already transcribing.' } ], + [ 'a job still being prepared', { success: false, status: 'Transcoding' } ], + [ 'a job that started', { success: true, transcript_path: '' } ], + [ 'a transcript that already exists', { success: false, transcript_path: 'https://cdn.example/job/en.vtt' } ], + [ 'no answer at all', undefined ], + ] )( 'is not a refusal for %s', ( label, result ) => { + expect( getGenerateRefusal( result ) ).toBeNull(); + } ); +} ); diff --git a/readme.txt b/readme.txt index a08e243c7a..ea1f561997 100644 --- a/readme.txt +++ b/readme.txt @@ -273,7 +273,7 @@ If your banner does not support the WP Consent API, add `add_filter( 'godam_visi == Changelog == -= v2.8.0 (November 9, 2026) = += v2.8.0 (November 10, 2026) = - Feat: Videos can now have captions in several languages. In the video editor's Transcription tab, add, edit, replace or remove a caption file for any language and choose which one shows by default. Visitors pick a language from the player's subtitles menu. Needs a paid GoDAM plan. - Feat: Choose the language for AI transcription, or let GoDAM detect it. diff --git a/tests/php/TranscriptionCaptionRefreshTest.php b/tests/php/TranscriptionCaptionRefreshTest.php index 58f8ed09a2..89f1d2b1bc 100644 --- a/tests/php/TranscriptionCaptionRefreshTest.php +++ b/tests/php/TranscriptionCaptionRefreshTest.php @@ -124,6 +124,120 @@ public function skipped_states() { ); } + /** + * Make Central answer the caption list with the given captions. + * + * @param array $captions Caption rows, as Central lists them. + */ + private function central_lists( $captions ) { + $GLOBALS['rtgodam_stub']['post_handler'] = static function () use ( $captions ) { + return array( + 'code' => 200, + 'body' => json_encode( // phpcs:ignore WordPress.WP.AlternativeFunctions.json_encode_json_encode -- test fixture. + array( + 'message' => array( + 'success' => true, + 'captions' => $captions, + ), + ) + ), + ); + }; + } + + /** + * A default AI transcript that is still pending or has failed has no file + * yet. The transcript WordPress has stays while Central still lists it. + */ + public function test_keeps_the_cache_when_the_default_has_no_file() { + $this->central_lists( + array( + array( + 'language' => 'en', + 'vtt_path' => 'https://cdn.example/job/en.vtt', + 'is_default' => false, + ), + array( + 'language' => 'und', + 'vtt_path' => null, + 'status' => 'Pending', + 'is_default' => true, + ), + ) + ); + + $this->assertTrue( Transcription::refresh_cached_default( 7 ) ); + $this->assertSame( 'https://cdn.example/job/en.vtt', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); + } + + /** + * Central signs caption URLs with a fresh token on every request, so the + * cached URL and the listed one differ only in their query string. The + * transcript is still the same file and stays. + */ + public function test_keeps_a_signed_cache_when_the_default_has_no_file() { + $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] = 'https://cdn.example/job/en.vtt?token=A&expires=1'; + $this->central_lists( + array( + array( + 'language' => 'en', + 'vtt_path' => 'https://cdn.example/job/en.vtt?token=B&expires=2', + 'is_default' => false, + ), + array( + 'language' => 'und', + 'vtt_path' => null, + 'status' => 'Pending', + 'is_default' => true, + ), + ) + ); + + $this->assertTrue( Transcription::refresh_cached_default( 7 ) ); + $this->assertSame( 'https://cdn.example/job/en.vtt?token=A&expires=1', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); + } + + /** + * A transcription still running keeps its status, so the tab opens on the + * progress state instead of the Generate form. + */ + public function test_keeps_an_in_flight_status_when_nothing_is_cached() { + unset( $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); + $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_status'] = 'Transcribing'; + $this->central_lists( + array( + array( + 'language' => 'und', + 'vtt_path' => null, + 'status' => 'Pending', + 'is_default' => true, + ), + ) + ); + + $this->assertTrue( Transcription::refresh_cached_default( 7 ) ); + $this->assertSame( 'Transcribing', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_status'] ); + } + + /** + * A cached transcript Central no longer lists is cleared. + */ + public function test_clears_a_transcript_central_no_longer_has() { + $this->central_lists( + array( + array( + 'language' => 'und', + 'vtt_path' => null, + 'status' => 'Failed', + 'is_default' => true, + ), + ) + ); + + $this->assertTrue( Transcription::refresh_cached_default( 7 ) ); + $this->assertArrayNotHasKey( 'rtgodam_transcript_path', $GLOBALS['rtgodam_stub']['post_meta'] ); + } + /** * A failed call keeps what WordPress has. */ diff --git a/webpack.config.js b/webpack.config.js index d0d66842ac..bade6af1be 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -456,6 +456,14 @@ const pages = { }, resolve: { extensions: [ '.js', '.jsx' ], // Automatically resolve these extensions + // Packages bundled from node_modules import `react/jsx-runtime`. Resolve + // it to a module built on the externalized `React`, so no copy of React's + // element factory is inlined (Plugin Check `inlined_react_jsx_runtime`). + // See pages/jsx-runtime.js. + alias: { + 'react/jsx-runtime$': path.resolve( __dirname, 'pages/jsx-runtime.js' ), + 'react/jsx-dev-runtime$': path.resolve( __dirname, 'pages/jsx-runtime.js' ), + }, }, // Only generate source maps in development mode devtool: isProduction ? false : 'source-map', From 5f3bdd62ae51cdefa72d84bb6f72b60438622378 Mon Sep 17 00:00:00 2001 From: Subodh Rajpopat Date: Tue, 10 Nov 2026 15:21:30 +0530 Subject: [PATCH 2/3] Keep caption files uploaded before 2.8.0 (#2351) * Keep caption files uploaded before 2.8.0 2.8.0 marks a caption file uploaded in WordPress with rtgodam_transcript_source = upload, but uploads from earlier versions have no mark. They were treated as a cached copy of GoDAM Central's caption: opening the Transcription tab or the background refresh overwrote or removed them, and the player played Central's tracks instead. An unmarked transcript whose address is not on Central's CDN now counts as an upload. Generate marks the source as central, so a new transcript still replaces an old upload. * Regenerate godam.pot for the shifted transcription line numbers * Keep the stored caption file until Generate finishes Generate marked the transcript as Central's as soon as a job started, so while the job ran, or after it failed, the caption sync saw an unlisted Central copy and removed the uploaded file the video used. Generate now marks a running job central-pending: the stored file is kept and played as an upload until Central reports a ready default, which then replaces it and marks it central. Every write of Central's transcript (sync, callback, godam_get_transcript_path) now marks it central too, so the address check only decides for transcripts stored before 2.8.0. The rtgodam_transcoder_file_hosts docblock says so. Regenerate godam.pot for the shifted line references. --- .../class-rtgodam-transcoder-rest-routes.php | 3 +- inc/classes/class-seo.php | 4 +- inc/classes/rest-api/class-transcription.php | 115 ++++++++-- inc/helpers/custom-functions.php | 8 + inc/templates/godam-player.php | 4 + languages/godam.pot | 62 +++--- tests/php/TranscriptionCaptionRefreshTest.php | 36 +++- tests/php/TranscriptionCaptionSyncTest.php | 80 ++++++- tests/php/TranscriptionGenerateSourceTest.php | 204 ++++++++++++++++++ 9 files changed, 449 insertions(+), 67 deletions(-) create mode 100644 tests/php/TranscriptionGenerateSourceTest.php diff --git a/admin/class-rtgodam-transcoder-rest-routes.php b/admin/class-rtgodam-transcoder-rest-routes.php index e48a58da2b..8701bed595 100644 --- a/admin/class-rtgodam-transcoder-rest-routes.php +++ b/admin/class-rtgodam-transcoder-rest-routes.php @@ -669,10 +669,11 @@ public function handle_transcription_callback( WP_REST_Request $request ) { // language. Cache the default caption from the full list instead, // and leave a transcript the user uploaded in WordPress alone. \RTGODAM\Inc\REST_API\Transcription::sync_cached_transcript( (int) $attachment_id, $caption_tracks, false ); - } elseif ( 'upload' !== get_post_meta( $attachment_id, 'rtgodam_transcript_source', true ) ) { + } elseif ( \RTGODAM\Inc\REST_API\Transcription::takes_central_transcript( get_post_meta( $attachment_id, 'rtgodam_transcript_path', true ), get_post_meta( $attachment_id, 'rtgodam_transcript_source', true ) ) ) { // Older Central: only the one transcript path is sent. // The transcript_path parameter is already sanitized by the REST API framework via esc_url_raw sanitize_callback. update_post_meta( $attachment_id, 'rtgodam_transcript_path', $transcript_path ); + update_post_meta( $attachment_id, 'rtgodam_transcript_source', \RTGODAM\Inc\REST_API\Transcription::SOURCE_CENTRAL ); } return new WP_REST_Response( diff --git a/inc/classes/class-seo.php b/inc/classes/class-seo.php index 8165508f2f..1ad90f41ad 100644 --- a/inc/classes/class-seo.php +++ b/inc/classes/class-seo.php @@ -631,7 +631,7 @@ public function get_transcript_excerpt( $attachment_id, $allow_remote = false ) do_action( 'rtgodam_before_attachment_lookup' ); $transcript_path = (string) get_post_meta( $attachment_id, 'rtgodam_transcript_path', true ); $is_deleted = (bool) get_post_meta( $attachment_id, 'rtgodam_transcript_deleted', true ); - $is_upload = 'upload' === get_post_meta( $attachment_id, 'rtgodam_transcript_source', true ); + $source = get_post_meta( $attachment_id, 'rtgodam_transcript_source', true ); $checked_at = (int) get_post_meta( $attachment_id, 'rtgodam_transcript_checked_at', true ); $cache = get_post_meta( $attachment_id, self::TRANSCRIPT_EXCERPT_META_KEY, true ); do_action( 'rtgodam_after_attachment_lookup' ); @@ -643,7 +643,7 @@ public function get_transcript_excerpt( $attachment_id, $allow_remote = false ) // The transcript may be a cached copy of GoDAM Central's default caption, // which can change in Central's own dashboard without telling WordPress. // Re-check it in the background at most every 12 hours. - if ( ! $is_upload && class_exists( '\RTGODAM\Inc\REST_API\Transcription' ) ) { + if ( class_exists( '\RTGODAM\Inc\REST_API\Transcription' ) && \RTGODAM\Inc\REST_API\Transcription::takes_central_transcript( $transcript_path, $source ) ) { \RTGODAM\Inc\REST_API\Transcription::maybe_schedule_refresh( $attachment_id, $checked_at ); } diff --git a/inc/classes/rest-api/class-transcription.php b/inc/classes/rest-api/class-transcription.php index d4f00a81ef..c579435240 100644 --- a/inc/classes/rest-api/class-transcription.php +++ b/inc/classes/rest-api/class-transcription.php @@ -48,7 +48,10 @@ class Transcription extends Base { * the user uploaded in WordPress, rather than a cached copy of GoDAM * Central's default caption. An uploaded file never reaches Central, so the * player plays it ahead of Central's tracks and Central updates never - * overwrite it. Cleared on generate and on delete. + * overwrite it. `central-pending` (SOURCE_PENDING) while a Generate job + * runs, `central` (SOURCE_CENTRAL) once Central's transcript is stored, + * cleared on delete. Unset on transcripts stored before 2.8.0: see + * is_wordpress_upload(). * * @since 2.8.0 * @@ -56,6 +59,26 @@ class Transcription extends Base { */ const SOURCE_META = 'rtgodam_transcript_source'; + /** + * SOURCE_META value for a transcript generated by GoDAM Central. + * + * @since 2.8.0 + * + * @var string + */ + const SOURCE_CENTRAL = 'central'; + + /** + * SOURCE_META value while a Generate job runs. The file stored before it + * (often an upload) is kept and played until Central has a ready default + * caption, so a job that is slow or fails never leaves the video without one. + * + * @since 2.8.0 + * + * @var string + */ + const SOURCE_PENDING = 'central-pending'; + /** * Meta holding when the cached transcript was last checked against GoDAM * Central's caption list (a Unix timestamp), whether or not Central answered. @@ -566,15 +589,17 @@ public function generate_transcription( \WP_REST_Request $request ) { if ( ! empty( $path ) ) { // A (re)generated transcript supersedes any prior delete or upload. delete_post_meta( $attachment_id, self::DELETED_META ); - delete_post_meta( $attachment_id, self::SOURCE_META ); + update_post_meta( $attachment_id, self::SOURCE_META, self::SOURCE_CENTRAL ); update_post_meta( $attachment_id, 'rtgodam_transcript_path', $path ); update_post_meta( $attachment_id, self::STATUS_META, 'Transcribed' ); } elseif ( '' !== $current_status || '' !== $status ) { // A job is genuinely in progress — clear the delete marker and // remember the in-flight status so the editor keeps polling. On a // hard error we leave the delete marker intact. + // Marked pending: the stored file stays until Central reports a ready + // default, which then replaces it (see sync_cached_transcript()). delete_post_meta( $attachment_id, self::DELETED_META ); - delete_post_meta( $attachment_id, self::SOURCE_META ); + update_post_meta( $attachment_id, self::SOURCE_META, self::SOURCE_PENDING ); $track = $current_status ? $current_status : $status; update_post_meta( $attachment_id, self::STATUS_META, $track ); } @@ -816,6 +841,53 @@ private function write_caption( $attachment_id, $method, $body ) { return $response; } + /** + * Whether the attachment's stored transcript is a caption file the user + * uploaded in WordPress, which GoDAM Central does not have. + * + * From 2.8.0 on, {@see self::SOURCE_META} says which it is: `upload`, or + * `central` for Central's transcript. While a Generate job runs + * (`central-pending`), the stored file is kept and played like an upload + * until Central's transcript is ready. Earlier versions left no mark, so an unmarked + * transcript counts as an upload when it is not on Central's CDN: Central + * serves its caption files only from there, so any other address is a file + * the site holds itself. + * + * @since 2.8.0 + * + * @param mixed $path Value of the `rtgodam_transcript_path` meta. + * @param mixed $source Value of the {@see self::SOURCE_META} meta. + * @return bool + */ + public static function is_wordpress_upload( $path, $source ) { + if ( 'upload' === $source ) { + return true; + } + + $path = is_string( $path ) ? $path : ''; + + if ( self::SOURCE_PENDING === $source ) { + return '' !== $path; + } + + return '' === $source && '' !== $path && ! rtgodam_is_transcoder_file_url( $path ); + } + + /** + * Whether Central's caption list may update the stored transcript: it is + * Central's copy, nothing is stored, or a Generate job is waiting for + * Central's transcript. False only for a file uploaded in WordPress. + * + * @since 2.8.0 + * + * @param mixed $path Value of the `rtgodam_transcript_path` meta. + * @param mixed $source Value of the {@see self::SOURCE_META} meta. + * @return bool + */ + public static function takes_central_transcript( $path, $source ) { + return self::SOURCE_PENDING === $source || ! self::is_wordpress_upload( $path, $source ); + } + /** * Point the attachment's cached transcript (`rtgodam_transcript_path`) at * the default caption track Central reports, so the editor's Transcription @@ -857,23 +929,29 @@ public static function sync_cached_transcript( $attachment_id, $captions, $switc do_action( 'rtgodam_before_attachment_lookup' ); } delete_post_meta( $attachment_id, self::DELETED_META ); - if ( 'upload' !== get_post_meta( $attachment_id, self::SOURCE_META, true ) ) { + $cached_path = (string) get_post_meta( $attachment_id, 'rtgodam_transcript_path', true ); + $source = get_post_meta( $attachment_id, self::SOURCE_META, true ); + if ( self::takes_central_transcript( $cached_path, $source ) ) { update_post_meta( $attachment_id, self::CHECKED_META, time() ); - $cached_path = (string) get_post_meta( $attachment_id, 'rtgodam_transcript_path', true ); if ( '' !== $default_path ) { update_post_meta( $attachment_id, 'rtgodam_transcript_path', $default_path ); update_post_meta( $attachment_id, self::STATUS_META, 'Transcribed' ); - } elseif ( '' !== $cached_path && in_array( $file_key( $cached_path ), $listed_files, true ) ) { - // The default has no file yet (an AI transcript still pending, or one - // that failed). Keep the transcript WordPress has while Central still - // lists it, so the Transcription tab and the player don't lose it. - update_post_meta( $attachment_id, self::STATUS_META, 'Transcribed' ); - } else { - delete_post_meta( $attachment_id, 'rtgodam_transcript_path' ); - // Keep an in-flight status (such as "Transcribing") so the tab still - // shows the job in progress; only a finished one goes with the file. - if ( 'Transcribed' === get_post_meta( $attachment_id, self::STATUS_META, true ) ) { - delete_post_meta( $attachment_id, self::STATUS_META ); + update_post_meta( $attachment_id, self::SOURCE_META, self::SOURCE_CENTRAL ); + } elseif ( self::SOURCE_PENDING !== $source ) { + // While Generate runs, or after it failed, the stored file and status + // stay as they are until Central has a ready default caption. + if ( '' !== $cached_path && in_array( $file_key( $cached_path ), $listed_files, true ) ) { + // The default has no file yet (an AI transcript still pending, or one + // that failed). Keep the transcript WordPress has while Central still + // lists it, so the Transcription tab and the player don't lose it. + update_post_meta( $attachment_id, self::STATUS_META, 'Transcribed' ); + } else { + delete_post_meta( $attachment_id, 'rtgodam_transcript_path' ); + // Keep an in-flight status (such as "Transcribing") so the tab still + // shows the job in progress; only a finished one goes with the file. + if ( 'Transcribed' === get_post_meta( $attachment_id, self::STATUS_META, true ) ) { + delete_post_meta( $attachment_id, self::STATUS_META ); + } } } } @@ -906,7 +984,10 @@ public static function refresh_cached_default( $attachment_id ) { /** This action is documented in inc/classes/rest-api/class-transcription.php */ do_action( 'rtgodam_before_attachment_lookup' ); $is_deleted = (bool) get_post_meta( $attachment_id, self::DELETED_META, true ); - $is_upload = 'upload' === get_post_meta( $attachment_id, self::SOURCE_META, true ); + $is_upload = ! self::takes_central_transcript( + get_post_meta( $attachment_id, 'rtgodam_transcript_path', true ), + get_post_meta( $attachment_id, self::SOURCE_META, true ) + ); $job_id = get_post_meta( $attachment_id, 'rtgodam_transcoding_job_id', true ); if ( empty( $job_id ) ) { $job_id = get_post_meta( $attachment_id, '_godam_original_id', true ); diff --git a/inc/helpers/custom-functions.php b/inc/helpers/custom-functions.php index b1a526f1b8..524efd5fa9 100644 --- a/inc/helpers/custom-functions.php +++ b/inc/helpers/custom-functions.php @@ -2172,6 +2172,9 @@ function godam_get_transcript_path( $attachment_id, $job_id = null ) { */ do_action( 'rtgodam_before_attachment_lookup' ); update_post_meta( $attachment_id, 'rtgodam_transcript_path', $transcript_path ); + // Marked as Central's, so only transcripts stored before 2.8.0 need the + // address check in Transcription::is_wordpress_upload(). + update_post_meta( $attachment_id, 'rtgodam_transcript_source', 'central' ); do_action( 'rtgodam_after_attachment_lookup' ); } @@ -3560,6 +3563,11 @@ function rtgodam_get_transcoder_file_hosts() { * A name matches that host and any subdomain of it. Add the CDN domain of a * self-hosted or staging GoDAM Central here, or a domain the CDN is served from. * + * Since 2.8.0 these hosts also tell a caption file uploaded in WordPress apart + * from a copy of Central's caption, for transcripts stored before 2.8.0 (which + * carry no `rtgodam_transcript_source`): a file on any other host is kept as + * an upload and never replaced by Central's caption list. + * * @since 2.7.0 * * @param string[] $hosts Host names, such as `gdcdn.us`. diff --git a/inc/templates/godam-player.php b/inc/templates/godam-player.php index cddabe2ddb..8b876f3e03 100644 --- a/inc/templates/godam-player.php +++ b/inc/templates/godam-player.php @@ -775,6 +775,10 @@ function ( $godam_layer ) { $godam_transcript_url = (string) ( $godam_attachment_data['transcript_path'] ?? '' ); $godam_transcript_deleted = ! empty( $godam_attachment_data['transcript_deleted'] ); $godam_transcript_source = (string) ( $godam_attachment_data['transcript_source'] ?? '' ); +// An upload from before 2.8.0 carries no source mark; recognise it by its address. +if ( \RTGODAM\Inc\REST_API\Transcription::is_wordpress_upload( $godam_transcript_url, $godam_transcript_source ) ) { + $godam_transcript_source = 'upload'; +} $godam_attachment_title = ''; diff --git a/languages/godam.pot b/languages/godam.pot index 09bbc08d5c..15bc005093 100644 --- a/languages/godam.pot +++ b/languages/godam.pot @@ -9,7 +9,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-11-09T12:09:21+00:00\n" +"POT-Creation-Date: 2026-11-10T09:36:25+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: godam\n" @@ -11512,26 +11512,26 @@ msgstr "" msgid "Video attachment not found for the provided job ID." msgstr "" -#: admin/class-rtgodam-transcoder-rest-routes.php:681 +#: admin/class-rtgodam-transcoder-rest-routes.php:682 msgid "Transcript path saved successfully." msgstr "" -#: admin/class-rtgodam-transcoder-rest-routes.php:691 +#: admin/class-rtgodam-transcoder-rest-routes.php:692 msgid "Transcription callback received." msgstr "" -#: admin/class-rtgodam-transcoder-rest-routes.php:732 +#: admin/class-rtgodam-transcoder-rest-routes.php:733 #: admin/godam-transcoder-functions.php:607 #: inc/classes/rest-api/class-media-library.php:652 #: inc/classes/rest-api/class-transcoding.php:481 msgid "API key is required." msgstr "" -#: admin/class-rtgodam-transcoder-rest-routes.php:736 +#: admin/class-rtgodam-transcoder-rest-routes.php:737 msgid "API key not configured on the site." msgstr "" -#: admin/class-rtgodam-transcoder-rest-routes.php:740 +#: admin/class-rtgodam-transcoder-rest-routes.php:741 #: inc/classes/rest-api/class-media-library.php:659 #: inc/classes/rest-api/class-settings.php:192 #: inc/classes/rest-api/class-transcoding.php:487 @@ -14023,83 +14023,83 @@ msgstr "" msgid "%1$s (ID %2$d) transcoding request was sent successfully" msgstr "" -#: inc/classes/rest-api/class-transcription.php:161 +#: inc/classes/rest-api/class-transcription.php:184 msgid "The video attachment ID." msgstr "" -#: inc/classes/rest-api/class-transcription.php:182 +#: inc/classes/rest-api/class-transcription.php:205 msgid "Re-read the default caption from GoDAM Central first, so changes made in Central show." msgstr "" -#: inc/classes/rest-api/class-transcription.php:208 +#: inc/classes/rest-api/class-transcription.php:231 msgid "BCP 47 language code to transcribe in, or \"auto\"/\"multi\" for Deepgram detection. Omitted falls back to the org/default language." msgstr "" -#: inc/classes/rest-api/class-transcription.php:214 +#: inc/classes/rest-api/class-transcription.php:237 msgid "Audio stream to transcribe on a multi-audio asset. Omitted transcribes the default track." msgstr "" -#: inc/classes/rest-api/class-transcription.php:234 +#: inc/classes/rest-api/class-transcription.php:257 msgid "URL of the uploaded .vtt / .srt caption file." msgstr "" -#: inc/classes/rest-api/class-transcription.php:309 +#: inc/classes/rest-api/class-transcription.php:332 msgid "BCP 47 language tag for the caption track." msgstr "" -#: inc/classes/rest-api/class-transcription.php:317 +#: inc/classes/rest-api/class-transcription.php:340 msgid "Label shown in the subtitle menu. Unique on the video." msgstr "" -#: inc/classes/rest-api/class-transcription.php:324 +#: inc/classes/rest-api/class-transcription.php:347 msgid "Track kind: subtitles or captions." msgstr "" -#: inc/classes/rest-api/class-transcription.php:330 +#: inc/classes/rest-api/class-transcription.php:353 msgid "Make this the default caption track." msgstr "" -#: inc/classes/rest-api/class-transcription.php:340 +#: inc/classes/rest-api/class-transcription.php:363 msgid "Caption file text (VTT or SRT)." msgstr "" -#: inc/classes/rest-api/class-transcription.php:349 +#: inc/classes/rest-api/class-transcription.php:372 msgid "Format of the uploaded caption text." msgstr "" -#: inc/classes/rest-api/class-transcription.php:367 +#: inc/classes/rest-api/class-transcription.php:390 msgid "Caption track handle returned by the list endpoint." msgstr "" -#: inc/classes/rest-api/class-transcription.php:501 +#: inc/classes/rest-api/class-transcription.php:524 msgid "This video has not been transcoded yet, so it cannot be transcribed." msgstr "" -#: inc/classes/rest-api/class-transcription.php:510 +#: inc/classes/rest-api/class-transcription.php:533 msgid "Connect your GoDAM account to generate transcriptions." msgstr "" -#: inc/classes/rest-api/class-transcription.php:543 +#: inc/classes/rest-api/class-transcription.php:566 msgid "Could not reach the transcription service. Please try again." msgstr "" -#: inc/classes/rest-api/class-transcription.php:609 +#: inc/classes/rest-api/class-transcription.php:634 msgid "Only .vtt or .srt caption files are supported." msgstr "" -#: inc/classes/rest-api/class-transcription.php:1054 +#: inc/classes/rest-api/class-transcription.php:1135 msgid "Connect your GoDAM account to manage captions." msgstr "" -#: inc/classes/rest-api/class-transcription.php:1075 +#: inc/classes/rest-api/class-transcription.php:1156 msgid "This video has not been transcoded yet, so it has no captions." msgstr "" -#: inc/classes/rest-api/class-transcription.php:1107 +#: inc/classes/rest-api/class-transcription.php:1188 msgid "Could not reach the caption service. Please try again." msgstr "" -#: inc/classes/rest-api/class-transcription.php:1128 +#: inc/classes/rest-api/class-transcription.php:1209 msgid "The caption service rejected the request." msgstr "" @@ -14769,23 +14769,23 @@ msgstr "" msgid "s" msgstr "" -#: inc/helpers/custom-functions.php:2474 +#: inc/helpers/custom-functions.php:2477 msgid "Oops! We could not locate your video" msgstr "" -#: inc/helpers/custom-functions.php:2485 +#: inc/helpers/custom-functions.php:2488 msgid "Note: This is a simple image preview. The image and its layers may display differently when added to a page based on theme styles." msgstr "" -#: inc/helpers/custom-functions.php:2487 +#: inc/helpers/custom-functions.php:2490 msgid "Note: This is a simple audio preview. The player may display differently when added to a page based on theme styles." msgstr "" -#: inc/helpers/custom-functions.php:2489 +#: inc/helpers/custom-functions.php:2492 msgid "Note: This is a simple video preview. The video player may display differently when added to a page based on theme styles." msgstr "" -#: inc/helpers/custom-functions.php:2679 +#: inc/helpers/custom-functions.php:2682 msgid "Video not found" msgstr "" diff --git a/tests/php/TranscriptionCaptionRefreshTest.php b/tests/php/TranscriptionCaptionRefreshTest.php index 89f1d2b1bc..f99a5b4bf2 100644 --- a/tests/php/TranscriptionCaptionRefreshTest.php +++ b/tests/php/TranscriptionCaptionRefreshTest.php @@ -31,7 +31,7 @@ protected function setUp(): void { $GLOBALS['rtgodam_stub'] = array( 'post_meta' => array( 'rtgodam_transcoding_job_id' => 'job-1', - 'rtgodam_transcript_path' => 'https://cdn.example/job/en.vtt', + 'rtgodam_transcript_path' => 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', ), 'options' => array( 'rtgodam-api-key' => 'key' ), 'scheduled' => array(), @@ -62,12 +62,12 @@ private function central_default_is_spanish() { 'captions' => array( array( 'language' => 'en', - 'vtt_path' => 'https://cdn.example/job/en.vtt', + 'vtt_path' => 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', 'is_default' => false, ), array( 'language' => 'es', - 'vtt_path' => 'https://cdn.example/job/es.vtt', + 'vtt_path' => 'https://n8e0ka87m9.gdcdn.us/job/es.vtt', 'is_default' => true, ), ), @@ -88,7 +88,7 @@ public function test_follows_a_default_changed_in_central() { $this->assertTrue( Transcription::refresh_cached_default( 7 ) ); $meta = $GLOBALS['rtgodam_stub']['post_meta']; - $this->assertSame( 'https://cdn.example/job/es.vtt', $meta['rtgodam_transcript_path'] ); + $this->assertSame( 'https://n8e0ka87m9.gdcdn.us/job/es.vtt', $meta['rtgodam_transcript_path'] ); $this->assertGreaterThan( time() - 5, $meta[ Transcription::CHECKED_META ] ); $this->assertStringEndsWith( 'godam_core.api.captions.list_captions', $GLOBALS['rtgodam_stub']['posts'][0]['url'] ); } @@ -109,7 +109,21 @@ public function test_leaves_uploads_and_deletes_alone( $key, $value ) { $this->assertFalse( Transcription::refresh_cached_default( 7 ) ); $this->assertSame( array(), $GLOBALS['rtgodam_stub']['posts'] ); - $this->assertSame( 'https://cdn.example/job/en.vtt', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); + $this->assertSame( 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); + } + + /** + * An upload from before 2.8.0 carries no source mark. Its address is not + * on Central's CDN, so Central is not asked and the file stays. + */ + public function test_leaves_an_unmarked_upload_from_before_2_8_alone() { + $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] = 'https://site.example/wp-content/uploads/fixed.vtt'; + $this->central_default_is_spanish(); + + $this->assertFalse( Transcription::refresh_cached_default( 7 ) ); + + $this->assertSame( array(), $GLOBALS['rtgodam_stub']['posts'] ); + $this->assertSame( 'https://site.example/wp-content/uploads/fixed.vtt', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); } /** @@ -154,7 +168,7 @@ public function test_keeps_the_cache_when_the_default_has_no_file() { array( array( 'language' => 'en', - 'vtt_path' => 'https://cdn.example/job/en.vtt', + 'vtt_path' => 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', 'is_default' => false, ), array( @@ -167,7 +181,7 @@ public function test_keeps_the_cache_when_the_default_has_no_file() { ); $this->assertTrue( Transcription::refresh_cached_default( 7 ) ); - $this->assertSame( 'https://cdn.example/job/en.vtt', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); + $this->assertSame( 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); } /** @@ -176,12 +190,12 @@ public function test_keeps_the_cache_when_the_default_has_no_file() { * transcript is still the same file and stays. */ public function test_keeps_a_signed_cache_when_the_default_has_no_file() { - $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] = 'https://cdn.example/job/en.vtt?token=A&expires=1'; + $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] = 'https://n8e0ka87m9.gdcdn.us/job/en.vtt?token=A&expires=1'; $this->central_lists( array( array( 'language' => 'en', - 'vtt_path' => 'https://cdn.example/job/en.vtt?token=B&expires=2', + 'vtt_path' => 'https://n8e0ka87m9.gdcdn.us/job/en.vtt?token=B&expires=2', 'is_default' => false, ), array( @@ -194,7 +208,7 @@ public function test_keeps_a_signed_cache_when_the_default_has_no_file() { ); $this->assertTrue( Transcription::refresh_cached_default( 7 ) ); - $this->assertSame( 'https://cdn.example/job/en.vtt?token=A&expires=1', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); + $this->assertSame( 'https://n8e0ka87m9.gdcdn.us/job/en.vtt?token=A&expires=1', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); } /** @@ -250,7 +264,7 @@ public function test_keeps_the_cache_when_central_fails() { }; $this->assertFalse( Transcription::refresh_cached_default( 7 ) ); - $this->assertSame( 'https://cdn.example/job/en.vtt', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); + $this->assertSame( 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] ); } /** diff --git a/tests/php/TranscriptionCaptionSyncTest.php b/tests/php/TranscriptionCaptionSyncTest.php index 1fac617eb1..367844eaab 100644 --- a/tests/php/TranscriptionCaptionSyncTest.php +++ b/tests/php/TranscriptionCaptionSyncTest.php @@ -47,13 +47,13 @@ private function captions() { array( 'caption_id' => 'es1', 'language' => 'es', - 'vtt_path' => 'https://cdn.example/job/es.vtt', + 'vtt_path' => 'https://n8e0ka87m9.gdcdn.us/job/es.vtt', 'is_default' => false, ), array( 'caption_id' => 'en1', 'language' => 'en', - 'vtt_path' => 'https://cdn.example/job/en.vtt', + 'vtt_path' => 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', 'is_default' => true, ), ); @@ -65,14 +65,14 @@ private function captions() { */ public function test_caches_the_default_caption() { $GLOBALS['rtgodam_stub']['post_meta'] = array( - 'rtgodam_transcript_path' => 'https://cdn.example/job/old.vtt', + 'rtgodam_transcript_path' => 'https://n8e0ka87m9.gdcdn.us/job/old.vtt', 'rtgodam_transcript_deleted' => '1', ); Transcription::sync_cached_transcript( 7, $this->captions() ); $meta = $GLOBALS['rtgodam_stub']['post_meta']; - $this->assertSame( 'https://cdn.example/job/en.vtt', $meta['rtgodam_transcript_path'] ); + $this->assertSame( 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', $meta['rtgodam_transcript_path'] ); $this->assertSame( 'Transcribed', $meta['rtgodam_transcript_status'] ); $this->assertArrayNotHasKey( 'rtgodam_transcript_deleted', $meta ); } @@ -83,7 +83,7 @@ public function test_caches_the_default_caption() { */ public function test_clears_the_cache_when_no_default_is_ready() { $GLOBALS['rtgodam_stub']['post_meta'] = array( - 'rtgodam_transcript_path' => 'https://cdn.example/job/en.vtt', + 'rtgodam_transcript_path' => 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', 'rtgodam_transcript_status' => 'Transcribed', ); @@ -121,6 +121,76 @@ public function test_keeps_a_wordpress_upload() { ); } + /** + * An upload from before 2.8.0 has no source mark. Its address is not on + * Central's CDN, so it is still kept. + */ + public function test_keeps_an_unmarked_upload_from_before_2_8() { + $GLOBALS['rtgodam_stub']['post_meta'] = array( + 'rtgodam_transcript_path' => 'https://site.example/wp-content/uploads/fixed.vtt', + ); + + Transcription::sync_cached_transcript( 7, $this->captions() ); + + $this->assertSame( + 'https://site.example/wp-content/uploads/fixed.vtt', + $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] + ); + } + + /** + * After Generate on a video with an old upload, the source is `central`, + * so the finished transcript replaces the upload. + */ + public function test_generate_replaces_an_unmarked_upload() { + $GLOBALS['rtgodam_stub']['post_meta'] = array( + 'rtgodam_transcript_path' => 'https://site.example/wp-content/uploads/fixed.vtt', + 'rtgodam_transcript_source' => 'central', + ); + + Transcription::sync_cached_transcript( 7, $this->captions() ); + + $this->assertSame( + 'https://n8e0ka87m9.gdcdn.us/job/en.vtt', + $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] + ); + } + + /** + * Which stored transcripts count as uploaded in WordPress. + * + * @dataProvider upload_cases + * + * @param mixed $path Stored transcript path. + * @param mixed $source Stored source mark. + * @param bool $expected Whether it is an upload. + */ + public function test_is_wordpress_upload( $path, $source, $expected ) { + $this->assertSame( $expected, Transcription::is_wordpress_upload( $path, $source ) ); + } + + /** + * Cases for test_is_wordpress_upload. + * + * @return array + */ + public function upload_cases() { + $site = 'https://site.example/wp-content/uploads/2026/10/fixed.vtt'; + $offload = 'https://bucket.s3.amazonaws.com/uploads/fixed.srt'; + $central = 'https://n8e0ka87m9.gdcdn.us/job/en.vtt?token=a&expires=1'; + + return array( + 'marked upload' => array( $central, 'upload', true ), + 'unmarked site file' => array( $site, '', true ), + 'unmarked offloaded file' => array( $offload, '', true ), + 'unmarked Central copy' => array( $central, '', false ), + 'generated, old file still set' => array( $site, 'central', false ), + 'Generate running, file stored' => array( $site, 'central-pending', true ), + 'Generate running, nothing' => array( '', 'central-pending', false ), + 'nothing stored' => array( '', '', false ), + ); + } + /** * Language codes keep their case and may have several subtags, like * Central's own check; detection keywords are lower-cased; junk is dropped. diff --git a/tests/php/TranscriptionGenerateSourceTest.php b/tests/php/TranscriptionGenerateSourceTest.php new file mode 100644 index 0000000000..7271ed533e --- /dev/null +++ b/tests/php/TranscriptionGenerateSourceTest.php @@ -0,0 +1,204 @@ + array( + 'rtgodam_transcoding_job_id' => 'job-1', + 'rtgodam_transcript_path' => self::UPLOAD, + ), + 'options' => array( 'rtgodam-api-key' => 'key' ), + 'scheduled' => array(), + 'posts' => array(), + ); + + $root = dirname( __DIR__, 2 ); + require_once $root . '/tests/stubs/hooks.php'; + require_once $root . '/tests/stubs/video-seo-functions.php'; + require_once $root . '/tests/stubs/engagement-functions.php'; + require_once $root . '/tests/stubs/media-file-functions.php'; + require_once $root . '/tests/stubs/option-functions.php'; + require_once $root . '/tests/stubs/media-library-functions.php'; + require_once $root . '/tests/stubs/class-wp-rest-request.php'; + require_once $root . '/inc/classes/rest-api/class-base.php'; + require_once $root . '/inc/classes/rest-api/class-transcription.php'; + } + + /** + * Make every Central call answer with this message. + * + * @param array $message Frappe `message` payload. + */ + private function central_answers( array $message ) { + $GLOBALS['rtgodam_stub']['post_handler'] = static function () use ( $message ) { + return array( + 'code' => 200, + 'body' => json_encode( array( 'message' => $message ) ), // phpcs:ignore WordPress.WP.AlternativeFunctions.json_encode_json_encode -- test fixture. + ); + }; + } + + /** + * Click Generate Transcription for attachment 7. + */ + private function generate() { + $controller = ( new \ReflectionClass( Transcription::class ) )->newInstanceWithoutConstructor(); + $controller->generate_transcription( new \WP_REST_Request( array( 'attachment_id' => 7 ), 'POST' ) ); + } + + /** + * Central's caption list: one default row, with or without a file. + * + * @param string|null $vtt_path The default's file, or null while it has none. + * @return array + */ + private function default_row( $vtt_path ) { + return array( + array( + 'caption_id' => 'en1', + 'language' => 'en', + 'vtt_path' => $vtt_path, + 'is_default' => true, + ), + ); + } + + /** + * Generate starts a job: the upload stays and still counts as one, so the + * player keeps playing it. + */ + public function test_generate_keeps_the_upload_while_the_job_runs() { + $this->central_answers( + array( + 'success' => true, + 'current_status' => 'Transcribing', + ) + ); + + $this->generate(); + + $meta = $GLOBALS['rtgodam_stub']['post_meta']; + $this->assertSame( Transcription::SOURCE_PENDING, $meta['rtgodam_transcript_source'] ); + $this->assertSame( self::UPLOAD, $meta['rtgodam_transcript_path'] ); + $this->assertTrue( Transcription::is_wordpress_upload( self::UPLOAD, $meta['rtgodam_transcript_source'] ) ); + } + + /** + * Central answers Generate with a finished transcript at once: it replaces + * the upload and is marked as Central's. + */ + public function test_generate_with_an_immediate_transcript_replaces_the_upload() { + $this->central_answers( + array( + 'success' => true, + 'transcript_path' => self::CENTRAL, + ) + ); + + $this->generate(); + + $meta = $GLOBALS['rtgodam_stub']['post_meta']; + $this->assertSame( Transcription::SOURCE_CENTRAL, $meta['rtgodam_transcript_source'] ); + $this->assertSame( self::CENTRAL, $meta['rtgodam_transcript_path'] ); + } + + /** + * While the job runs, or after it failed, Central's default row has no + * file. The upload is not dropped. + * + * @dataProvider unfinished_statuses + * + * @param string $status Central's status for the default row. + */ + public function test_an_unfinished_job_keeps_the_upload( $status ) { + $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_source'] = Transcription::SOURCE_PENDING; + $captions = $this->default_row( null ); + $captions[0]['status'] = $status; + + Transcription::sync_cached_transcript( 7, $captions ); + + $meta = $GLOBALS['rtgodam_stub']['post_meta']; + $this->assertSame( self::UPLOAD, $meta['rtgodam_transcript_path'] ); + $this->assertSame( Transcription::SOURCE_PENDING, $meta['rtgodam_transcript_source'] ); + } + + /** + * Statuses of a default row with no file. + * + * @return array + */ + public function unfinished_statuses() { + return array( + 'still running' => array( 'Pending' ), + 'failed' => array( 'Failed' ), + ); + } + + /** + * Opening the Transcription tab after the job finished asks Central, and + * the ready default replaces the upload. + */ + public function test_the_finished_transcript_replaces_the_upload() { + $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_source'] = Transcription::SOURCE_PENDING; + $this->central_answers( + array( + 'success' => true, + 'captions' => $this->default_row( self::CENTRAL ), + ) + ); + + $this->assertTrue( Transcription::refresh_cached_default( 7 ) ); + + $meta = $GLOBALS['rtgodam_stub']['post_meta']; + $this->assertSame( self::CENTRAL, $meta['rtgodam_transcript_path'] ); + $this->assertSame( Transcription::SOURCE_CENTRAL, $meta['rtgodam_transcript_source'] ); + } + + /** + * Central's copy written by the sync is marked, so the address check is + * only needed for transcripts stored before 2.8.0. + */ + public function test_the_sync_marks_central_copies() { + $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_path'] = 'https://n8e0ka87m9.gdcdn.us/job/old.vtt'; + + Transcription::sync_cached_transcript( 7, $this->default_row( self::CENTRAL ) ); + + $this->assertSame( Transcription::SOURCE_CENTRAL, $GLOBALS['rtgodam_stub']['post_meta']['rtgodam_transcript_source'] ); + } +} From b83f25717b1ad5d4fa7ea0bf27358dcdcb2ac56c Mon Sep 17 00:00:00 2001 From: rtBot <43742164+rtBot@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:54:48 +0530 Subject: [PATCH 3/3] fix: move Node.js to a release patched for CVE-2026-111497 --- .nvmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index c5ddcef4e7..f661d6ff0b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v22.14.0 \ No newline at end of file +v22.23.4 \ No newline at end of file