Repository navigation
feat(jobs): report in-memory translation progress - #221
Merged
Merged
Conversation
Derive runtime Scene, Batch, and translated-line snapshots from PySubtrans events and expose them through the existing Jobs polling APIs. Scope progress to each attempt and clear it when execution ends. Show line-based progress in the Jobs list and details, following GUI-Subtrans's translated-line counting. Prefer native completion properties with a fallback for PySubtrans 1.6.0, and keep optional observers isolated from translation and checkpoint saving.
Place the Job progress block across both grid columns so its bar and counts use the full card content width.
Snapshot skipped batches before each attempt mutates translation state. Follow legacy scene and batch selection, including the empty-selection fallback, and prefer translation_complete when available. Count skipped lines as processed while retaining actual translated-line counts for active batches. Recompute resume skips on retries and cover partial translations, saved errors, skipped scenes, and capability-based completion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
translation_completewhen available, with an equivalent fallback for the pinned 1.6.0 dependency.Verification