Skip to content

Give each dropped recording source whole sentences - #16003

Open
namespaceMarcello wants to merge 2 commits into
omacom:quattrofrom
namespaceMarcello:fix/screenrecording-audio-sentences
Open

namespaceMarcello wants to merge 2 commits into
omacom:quattrofrom
namespaceMarcello:fix/screenrecording-audio-sentences

Conversation

@namespaceMarcello

@namespaceMarcello namespaceMarcello commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

When a requested audio source can't be recorded, omarchy-capture-screenrecording announces it with capture.recordingWithoutAudio and capture.audioNotAdded, passing the English word desktop or microphone as %1. Every translation therefore shows that word in English inside its own sentence: "Optager uden microphone-lyd" in Danish, "microphone の音声なしで録画中" in Japanese, "Запись без звука microphone" in Russian. docs/i18n.md asks for whole sentences rather than glued pieces for exactly this reason.

This gives each source its own two sentences, capture.recordingWithoutDesktopAudio, capture.recordingWithoutMicrophoneAudio, capture.desktopAudioNotAdded and capture.microphoneAudioNotAdded, with the same English text as before, and drops the two shared keys. As docs/i18n.md describes, only the English side changes here; the sync workflow translates the new keys and prunes the old ones. Until it has run, other languages show these two notices in English, as with any untranslated key.

Validation: test/shell.d/screenrecording-wf-audio-test.sh gains a check that, with both sources dropped, the notices use the four whole-sentence keys and pass no argument; it reads the arguments the notification command receives. On quattro it fails, showing capture.recordingWithoutAudio desktop through capture.audioNotAdded microphone. The existing checks, which read the English text and expect the right source named, pass unchanged; the six screenrecording-* test files give 62 passing checks. Handing the desktop sentence its name back as an argument, swapping the two sources' sentences, or misspelling a key each turns the test red. The i18n-check steps pass: I18N_STRUCTURAL=1 bash test/shell.d/i18n-test.sh (401 ok) and scripts/i18n-sync.py extract-scan --check (no candidates). ./test/all in an Arch container: 6394 passing checks, 69 skipped, 4 failing, and those 4 fail the same way on quattro.

Risk: limited to these two notices. Until the sync runs, non-English users see them fully in English instead of with one English word. Reverting the commit restores the shared keys, whose translations stay in the catalogs until the sync prunes them.

Updated 2026-10-25: merged quattro at 2fca7fe. #16499 removed capture.recordingSavedHint and added the size and screenshot keys next to these, which is where the English catalog conflicted; quattro's keys are kept and the four whole-sentence keys replace the two shared ones, in sorted order. The script merged cleanly and still passes the source name on quattro (bin/omarchy-capture-screenrecording:238). After the merge the five screenrecording-* test files pass (31 checks), the three broken variants above turn screenrecording-wf-audio-test.sh red, and the i18n-check steps pass (402 ok, no candidates).

Written by Claude Code (AI assistant) on behalf of @namespaceMarcello, who directs this work.

🤖 Generated with Claude Code

The notice for an audio source that could not be recorded passed the
English word "desktop" or "microphone" into one shared sentence, so
every translation showed that word in English ("Optager uden
microphone-lyd"). Each source now has its own two sentences, as
docs/i18n.md asks. The two old keys go; the sync workflow prunes their
translations and translates the new ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; each dropped audio source selects the correct complete sentences.

Summary

Gives dropped desktop and microphone audio sources separate, complete notification sentences.

  • Screen recordings use complete notices for each dropped audio source.

No actionable issues found. The previous and current commits have different merge bases with the target, so the full PR diff was reviewed. No previous review threads were supplied. Tests were inspected, not run.

Reviews (2) · Last reviewed commit: "Merge quattro into the recording audio s..." · Reviewed by Greptile

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 21, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at d6f8076, nothing found.

The problem is real: on quattro, wf_audio_unavailable passes the English word desktop or microphone into capture.recordingWithoutAudio and capture.audioNotAdded, so a Danish session shows "Optager uden microphone-lyd". Giving each source its own whole-sentence keys is what docs/i18n.md asks for, and the diff is no bigger than that.

What ran, on a disposable Omarchy worker: the new check in test/shell.d/screenrecording-wf-audio-test.sh fails on quattro (it logs capture.recordingWithoutAudio desktop through capture.audioNotAdded microphone), passes at this head, and goes red again when the old wf_audio_unavailable is put back. ./test/cli and all six screenrecording-* test files pass. I18N_STRUCTURAL=1 test/shell.d/i18n-test.sh and scripts/i18n-sync.py extract-scan --check pass too. In strict mode i18n-test.sh fails one check, da/menu.json mirrors the English catalog, and it fails the same way on the base, so this change didn't cause it. Until the sync workflow runs, the new keys show in English in other languages, as the description says.

Second opinion: Codex at medium effort read the change and found no defects. It agreed the problem is real and the fix proportionate (its independence from this review is not guaranteed). It did check something I hadn't: that scripts/i18n-sync.py queues the new English keys and prunes the dropped ones from the other catalogs, and that the PR check runs i18n-test.sh in structural mode, which allows that gap until the sync catches up.

Nothing is left for the author. This waits on the maintainer.

@omarchybot omarchybot removed the ready Good to merge label Oct 25, 2026
The English CLI catalog gained and lost keys next to this branch's:
omacom#16499 dropped capture.recordingSavedHint and added the size and
screenshot keys. Keep quattro's keys and swap the two shared-sentence
keys for this branch's four, in sorted order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge and removed verified Omarchy Triage has verified that this issue is ready for final review labels Oct 26, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Re-reviewed at f37ac4c after your merge of quattro, nothing found.

The merge resolved the conflict in default/i18n/en/cli.json cleanly: the four new keys are in, the two old ones are gone, and everything quattro changed in that block (including dropping capture.recordingSavedHint) is kept. The change itself is the same as the one reviewed at d6f8076, and it still merges cleanly with quattro as it stands now (48fcf5f).

What ran, on a disposable Omarchy worker: the new check in test/shell.d/screenrecording-wf-audio-test.sh fails on current quattro (it logs capture.recordingWithoutAudio desktop through capture.audioNotAdded microphone). It passes at this head and at this head merged with current quattro, and fails again on that merge with wf_audio_unavailable and the catalog put back. ./test/cli and every screenrecording-* test pass on both trees. On the merge, I18N_STRUCTURAL=1 test/shell.d/i18n-test.sh passes 401 of 401 and scripts/i18n-sync.py extract-scan --check is clean. At this head alone, i18n-test.sh stops at "Could not generate da_DK.UTF-8". That comes from the older quattro you merged, whose locale test stubs locale-gen, and quattro has since fixed it in #16414; this change touches no locale code.

Second opinion: Codex at medium effort and muse-wonder (via pi, thinking high) both read the merge resolution and the change against current quattro, and neither found a defect. Both agreed the problem is real and the fix proportionate (their independence from this review is not guaranteed).

Nothing is left for you to do. This waits on the maintainer.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants