feat(translate): translate a whole playlist so the next episodes are ready (#16)

Co-authored-by: Tri Vo Khac <git@trivk.dev>
This commit was merged in pull request #16.
This commit is contained in:
tri authored and tri committed 2026-11-13 23:27:13 +07:00
1 parent ad50230829
commit bcfc2f3f6a
13 files changed
+480 -61

No files matched your search

+8
View File
@@ -38,6 +38,7 @@ Item {
signal headerToggleRequested()
signal contextMenuRequested()
signal translateRequested()
signal translatePlaylistRequested()
signal editGlossaryRequested()
function seekBy(seconds: real) {
@@ -396,6 +397,13 @@ Item {
onTriggered: root.translateRequested()
}
property Action translatePlaylist: Action {
enabled: root.shortcutsEnabled && root.playlist.count > 1 && !root.translator.busy
text: KI18n.i18nc("@action", "Translate Whole Playlist into %1", QtPotatoSettings.targetLanguage)
icon.name: "translate"
onTriggered: root.translatePlaylistRequested()
}
property Action editGlossary: Action {
enabled: root.shortcutsEnabled && root.hasFile && root.mpv.currentUrl.toString().startsWith("file:")
text: KI18n.i18nc("@action", "Edit Translation Glossary…")