Skip to content

i18n: Spanish, and the language switches open windows at once - #144

Open
Tkyoxx wants to merge 1 commit into
Lemxy:mainfrom
Tkyoxx:pr/1-spanish
Open

Tkyoxx wants to merge 1 commit into
Lemxy:mainfrom
Tkyoxx:pr/1-spanish

Conversation

@Tkyoxx

@Tkyoxx Tkyoxx commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Spanish (es) as the sixth language: Lang::Es, t!/tf! arms with es: (any arm may be left out and shows English), every text of every program translated, the Run-box command list and the topbar menus included.
  • A language picked anywhere reaches the windows already open: set_lang sends the style broadcast, lang() re-reads lang.txt at most once a second, and topbar, rust-settings and rust-explorer relabel what they keep in memory (columns, page lists, the side pane).
  • Fixes found on the way: rs-launcher's "registry entrys" and its missing Portuguese plural; topbar did not listen to the style/language broadcast.

Screenshot (the installer built from this branch alone, Windows 10)

The installer in Spanish

Test

  • cargo test --workspace, cargo test in plugins\rust-search.
  • Installer language list → Español: the installer, an open rust-settings and the bar switch without a restart; back to English the same way.

- winrust-common: Lang::Es and Lang::ALL; t!/tf! take an optional es: arm
  after zh: (or after pt: in calls without zh:), and any language left out
  shows the English text, so nothing is ever blank or a raw key.
- No lang.txt: the Windows UI language when WinRust has it, else English.
- lang() re-reads lang.txt at most once a second and set_lang broadcasts
  style::msg(), so open windows switch without a restart: topbar now listens
  for the broadcast, rust-settings rebuilds its pages and rust-explorer its
  column headers and navigation pane when the language moved. The "restart
  the programs" notes say the switch is immediate now.
- The installer list, rust-settings and the bar's language page take their
  languages from Lang::ALL (Spanish included); --lang accepts es.
- Spanish for every t!/tf! call (1,246), the installer table, the Run box
  commands and the Start button menu, plus the few strings still English-only
  in rust-explorer.
- rs-launcher's counts gave "2 registry entrys" and Portuguese had no plural
  at all: every language now spells out its singular and plural.
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.

1 participant