Skip to content

Add independent projector language setting - #6741

Open
ConradReichel wants to merge 10 commits into
OpenSlides:mainfrom
ConradReichel:feature/6729-projector-language
Open

ConradReichel wants to merge 10 commits into
OpenSlides:mainfrom
ConradReichel:feature/6729-projector-language

Conversation

@ConradReichel

Copy link
Copy Markdown
Contributor

Summary

Add a projector-specific language setting independent of the client language.

  • persist the selected projector language locally
  • allow overriding the projector language via ?projectorLanguage=<code>
  • use the configured language in the projector preview
  • fall back to the client language when no projector language is configured

The setting was tested manually in the projector UI, including save/reopen behavior and URL overrides. Prettier, lint, and the production build pass.

Closes #6729

@bastianjoel bastianjoel left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not sure if we really want a local setting for this. Instead I would propose to add a projector detail url that can control the language (e.g. https://localhost:8000/3/projectors/1/{lang}) and add a button with dropdown to projector overview where the user can select a language. Selecting something will open the projector in a new tab.

<span>{{ 'Required' | translate }}</span>
</mat-error>
</mat-form-field>
<mat-form-field>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I assume that this is not a good place for this setting as it does not make it clear that this is a local setting.

const PROJECTOR_LANGUAGE_STORAGE_PREFIX = `projectorLanguage:`;
const PROJECTOR_LANGUAGE_QUERY_PARAM = `projectorLanguage`;

@Injectable({ providedIn: `root` })

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Use Service decorator.

@bastianjoel

Copy link
Copy Markdown
Member

@bspekker @MSoeb Maybe you can elaborate a bit more how such a feature could look like.

@bastianjoel bastianjoel assigned MSoeb and unassigned bastianjoel Nov 26, 2026
@bspekker

Copy link
Copy Markdown

We discussed the issue and would prefer a different solution: Instead of an additional language setting, we could imagine that your problems would be solved if the projector is always displayed in the meeting language instead of the browser language.
We think this might be an elegant solution that would cause less disruption than the status quo and is easier to use than a new setting.

@bspekker bspekker assigned ConradReichel and unassigned bspekker and MSoeb Nov 30, 2026
@bastianjoel

Copy link
Copy Markdown
Member

In that case we should also remove the ability to provide a language to the projector from the projector service.
I created an issue OpenSlides/openslides-projector-service#571.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow configuring the projector language independently of the client language

5 participants