[PR #4456] [CLOSED] [GUI] The installer speaks the nine languages of the app #5056

Closed
opened 2026-11-07 16:32:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4456
Author: @xvcezrqpbxtpzblrt
Created: 10/28/2026
Status: ❌ Closed

Base: main ← Head: gui/installer-languages-027


📝 Commits (1)

  • a0907f9 [GUI] The installer speaks the nine languages of the app

📊 Changes

3 files changed (+221 additions, -16 deletions)

View changed files

📝 apps/desktop/src-tauri/nsis/installer.nsi (+212 -15)
📝 apps/desktop/src-tauri/nsis/sidebar.bmp (+0 -0)
📝 apps/desktop/src-tauri/tauri.conf.json (+9 -1)

📄 Description

Problem

The app speaks nine languages; its installer spoke one. bundle.windows.nsis.languages held ["English"], the template's own copy (welcome, finish, folder page, uninstall data page) was hardcoded English, and the welcome sidebar picture had State of the art. At home. baked into the bitmap. On a Chinese Windows 11 the installer opened in English.

Result

  • The installer carries the same nine languages as the app: English, Simplified Chinese, Japanese, German, Spanish, Russian, Brazilian Portuguese, Korean and French. NSIS picks the language of the person's Windows; English stays first and is the fallback.
  • Strata's own words are language strings now: welcome title and body, finish title, body and button, both page headers, the folder page text, and the whole "remove your Strata data too" page (title, note, checkbox and the list of folders). The folder paths are the same in every language, so they stay in the page and only the words around them are translated.
  • The sidebar picture keeps the logo and the gradient but no words, so nothing in it can be the wrong language. The header picture was already the logo alone.

Validation

  • The build generated all nine <Language>.nsh files and nine MUI_LANGUAGE lines (English, SimpChinese, Japanese, German, Spanish, Russian, PortugueseBR, Korean, French).
  • Run on Windows 11 with a Chinese system language, screen captured page by page:
    • welcome: title Strata 安装, "顶尖技术,就在家里。", Chinese body, buttons 下一步(N) / 取消(C), no English tagline in the picture;
    • reinstall page: Strata 0.2.7 已经安装了。选择您要执行的操作,然后单击下一步继续。 with 添加/重新安装 and 卸载 Strata;
    • folder page: header 选择 Strata 的安装位置, "C 盘空间不足时,可以换一个磁盘。", and the custom top text in Chinese; no unresolved language reference anywhere.
  • Installer builds and installs: 105.37 MiB, silent install and start verified.

Limits

  • Only Chinese was inspected on screen; the other eight languages are the same table, but they were not run.
  • The installer follows the Windows display language, not the app's own language setting: the app is not installed yet when the installer runs.
  • The sidebar picture lost its English tagline for every language; a per-language picture would need nine bitmaps and a runtime image switch, which this change does not do.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4456 **Author:** [@xvcezrqpbxtpzblrt](https://github.com/xvcezrqpbxtpzblrt) **Created:** 10/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `gui/installer-languages-027` --- ### 📝 Commits (1) - [`a0907f9`](https://github.com/Niko1221/Strata/commit/a0907f908fb33e90bfe5f585dd3788ed73b9f617) [GUI] The installer speaks the nine languages of the app ### 📊 Changes **3 files changed** (+221 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `apps/desktop/src-tauri/nsis/installer.nsi` (+212 -15) 📝 `apps/desktop/src-tauri/nsis/sidebar.bmp` (+0 -0) 📝 `apps/desktop/src-tauri/tauri.conf.json` (+9 -1) </details> ### 📄 Description ## Problem The app speaks nine languages; its installer spoke one. `bundle.windows.nsis.languages` held `["English"]`, the template's own copy (welcome, finish, folder page, uninstall data page) was hardcoded English, and the welcome sidebar picture had `State of the art. At home.` baked into the bitmap. On a Chinese Windows 11 the installer opened in English. ## Result - The installer carries the same nine languages as the app: English, Simplified Chinese, Japanese, German, Spanish, Russian, Brazilian Portuguese, Korean and French. NSIS picks the language of the person's Windows; English stays first and is the fallback. - Strata's own words are language strings now: welcome title and body, finish title, body and button, both page headers, the folder page text, and the whole "remove your Strata data too" page (title, note, checkbox and the list of folders). The folder paths are the same in every language, so they stay in the page and only the words around them are translated. - The sidebar picture keeps the logo and the gradient but no words, so nothing in it can be the wrong language. The header picture was already the logo alone. ## Validation - The build generated all nine `<Language>.nsh` files and nine `MUI_LANGUAGE` lines (English, SimpChinese, Japanese, German, Spanish, Russian, PortugueseBR, Korean, French). - Run on Windows 11 with a Chinese system language, screen captured page by page: - welcome: title `Strata 安装`, "顶尖技术,就在家里。", Chinese body, buttons `下一步(N)` / `取消(C)`, no English tagline in the picture; - reinstall page: `Strata 0.2.7 已经安装了。选择您要执行的操作,然后单击下一步继续。` with `添加/重新安装` and `卸载 Strata`; - folder page: header `选择 Strata 的安装位置`, "C 盘空间不足时,可以换一个磁盘。", and the custom top text in Chinese; no unresolved language reference anywhere. - Installer builds and installs: 105.37 MiB, silent install and start verified. ## Limits - Only Chinese was inspected on screen; the other eight languages are the same table, but they were not run. - The installer follows the Windows display language, not the app's own language setting: the app is not installed yet when the installer runs. - The sidebar picture lost its English tagline for every language; a per-language picture would need nine bitmaps and a runtime image switch, which this change does not do. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:32:20 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5056
No description provided.