Skip to content

Switch the displayed analysis language from the toolbar (#291) - #397

Merged
alex-rawlings-yyc merged 4 commits into
mainfrom
feat/291-analysis-language-switch
Oct 7, 2026
Merged

alex-rawlings-yyc merged 4 commits into
mainfrom
feat/291-analysis-language-switch

Conversation

@alex-rawlings-yyc

@alex-rawlings-yyc alex-rawlings-yyc commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #291.

When the open project has more than one analysis language, a language picker appears in the toolbar beside View options. Glosses and free translations are read and written in the picked language, in the draft and in a read-only Paratext 9 import alike. Switching keeps the analysis store, so in-progress edits survive it, as does the catalog's scroll position unless the catalog is sorted by gloss or filtered to missing glosses.

The choice is kept in tab state, separately for each import and once for the draft. It falls back to the first listed language when the project no longer lists the chosen one. Each option shows the language name beside its tag, since distinct tags can share a name: Pimbwe lists both en and English. A tag repeated in the New or Project Info language field is kept once.

Checked in the running app on Bungu's draft (en, fr) and PIA's import (es, fr). The picker staying hidden for a single language is covered by tests only.

PIA's import in Spanish, with the picker open:

pr397-1-spanish-picker

The same verses in French:

pr397-2-french

This change is Reviewable

@alex-rawlings-yyc alex-rawlings-yyc self-assigned this Oct 5, 2026
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ee1015d8-1582-4a1b-a39e-58eb356954ac
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@alex-rawlings-yyc
alex-rawlings-yyc force-pushed the feat/291-analysis-language-switch branch from 1691077 to dca5e13 Compare October 6, 2026 17:50
@alex-rawlings-yyc
alex-rawlings-yyc marked this pull request as ready for review October 6, 2026 18:12

@jasonleenaylor jasonleenaylor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Looking ahead, not for this PR: we may want to show more than one analysis language at once at some point, as FieldWorks does, perhaps as an option alongside the picker.

This review was assisted by Claude Opus 5.5.

@alex-rawlings-yyc
alex-rawlings-yyc merged commit 6053561 into main Oct 7, 2026
9 checks passed
@alex-rawlings-yyc
alex-rawlings-yyc deleted the feat/291-analysis-language-switch branch October 7, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Only the first analysis language's glosses are ever visible

2 participants