Skip to content

Add localization infrastructure and Russian language support - #197

Draft
Omrade wants to merge 1 commit into
sql-bi:mainfrom
Omrade:feature/russian-localization
Draft

Omrade wants to merge 1 commit into
sql-bi:mainfrom
Omrade:feature/russian-localization

Conversation

@Omrade

@Omrade Omrade commented Dec 3, 2026 •

Copy link
Copy Markdown

Summary

Add Russian as Whiteboard’s first additional interface language. Whiteboard follows the Windows display language when a translation is available and falls back to English. Choose a language under Help → Preferences → General → Interface language and restart Whiteboard to apply it. Settings search accepts English and Russian in either interface language.

Implementation

C# and WPF share standard .NET RESX resources and a Russian satellite assembly. Contributors can add another language by supplying resources and registering a culture. The English interface retains its commands and shortcuts. UI language selection preserves board formats and number and date formatting.

The existing packages carry both interface languages. The Azure signing list includes the Russian satellite, and MSIX declares Russian alongside English. MSI package identities, upgrade rules, scopes, and file associations are preserved. MSI setup dialogs remain in English. Translating setup can follow separately because MSI language affects upgrade detection.

Validation

  • The Release build and the required Core and WPF smoke tests passed on Windows. The final source archive rebuilt in a fresh directory, and the patch reproduced its Git tree.
  • Tested 656 resource pairs, culture fallback, preference persistence across a restart, bilingual search, and opening boards in both the official and localized builds.
  • Built and inspected the unsigned MSI and MSIX payloads and verified the signing file list locally. Browser-backed Mermaid and LiveView capture encountered the same host errors on the official base and this branch. Official signing, full MSI installation, upgrade and removal, and Store certification remain untested.

Russian interface

WPF captures from the running final build. The narrow Insert view uses a simulated 200% render scale.

ru-menu-insert ru-preferences-general ru-menu-dpi-200

@marcosqlbi

Copy link
Copy Markdown
Collaborator

Thank you for this pull request!

We are considering using this pull request as the starting point for supporting several interface languages, not only Russian. Before deciding, we want to agree on one rule: internal code stays in English. That means code identifiers, comments, logs, and exception messages that only a developer or support would read. When someone reports a problem, we need to read the error and search for it, whatever language their interface uses. Only text a person sees in the interface would be localized: menus, tooltips, dialogs, Preferences, status and error messages shown to the user, and exported content such as the PDF footer.

The current version also localizes several internal exceptions, for example in BoardDocument, BoardArchive, PdfDocumentWriter, and the NotSupportedException cases. Under this rule, those would go back to English strings in code. Exceptions whose message the user actually sees, such as "is not a Microsoft Whiteboard export", would stay localized.

Is that fine with you? If you agree, we would also like to make a few other changes so that adding a language doesn't require code changes:

  • Store the preference as a culture name instead of an enum value.
  • Generate the signing list from the satellite folders.
  • Use standard plural rules.
  • Let missing translations fall back to English instead of failing the smoke tests.

Would it work for you if we take over from your branch to build a multi-language version?

This branch has not been deployed

No deployments
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.

2 participants