Skip to content

The iOS shell shows a game's settings rows in the player's language - #485

Merged
v0lumehi merged 8 commits into
v0lumehi/l10n-shell-stringsfrom
v0lumehi/l10n-shell-game-settings
Nov 2, 2026
Merged

v0lumehi merged 8 commits into
v0lumehi/l10n-shell-stringsfrom
v0lumehi/l10n-shell-game-settings

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #482 (stack #459), retarget to main after the ones below merge.

Fix or feature

  • Fix
  • Feature

What and why

Fixes #429

The per-game settings rows of the iOS shell (section, label, note, option labels) showed English on a Chinese device. They come from each game's launcher.json. That file is English and owned by seedds/nxnative, so I do not change its format. The shell had no table that translates them.

The shell now looks each text up in its ShellUI catalog by the English words, the same way the other shell texts are keyed. SettingRow, SettingOption and SettingSection do the lookup. A text with no entry stays English. It never shows a key. The section id and the option values stay as they are, so what is written to the game does not change.

The texts are the ones the Mac launcher already translates (launch.section.*, launch.set.*, launch.opt.*). The generator puts them into the ShellUI catalog too, so there is one translation of each. Two keys with the same English text and the same translations are one catalog entry. One note is worded differently upstream (settings.tsv has a semicolon where the Mac table has "and"). It got its own line, ios.setting.DM_PSO_MTL4.note, with the same translations in zh, de, fr and sv.

A pin bump can bring a new text. tools/tests/test_launcher_texts.py reads dm/games/settings.tsv and the game language names from the engine and fails with the missing text. A checked-in list covers a checkout without engine/. Both are in the docs of frontend/README.md and frontend-ios/README.md.

All 50 texts of the engine at the pin have a Chinese entry. de, fr and sv have all of them too. Other languages fall back to English.

Checked

  • Tests: frontend-ios swift test (121 Swift Testing tests, 5 new), frontend swift test (639, 0 failures, 17 skipped), frontend-qt unittest (238, OK), tools/tests (167, OK, 5 new). New in ShellStringsTests: Chinese rows, a note with a percent sign, an unknown text stays English, English stays English.
  • Visual QA: not run. No app was launched. The lookup is covered by the tests above.
  • Run on a device or Mac: not run.

Screenshots

None, no visible change in English. In Chinese the settings rows of a game now read Chinese. I did not capture this.

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository
  • No change to the engine or a game profile, so nothing goes to seedds/nxnative
  • A change to a launcher view has before and after screenshots above (iOS shell, not captured)
  • No keys, game files or data extracted from a game in the change or the attachments

…429)

launcher.json is English and not ours to change. SettingRow, SettingOption and
SettingSection look their texts up in the ShellUI catalog by the English words, and a
text with no entry stays English. The catalog takes the launch.* texts the Mac launcher
already translates, plus one ios.setting.* line for a note upstream words differently.
A test fails with the text when a pin bump brings one that has no Chinese entry.
@v0lumehi v0lumehi added this to the v1.0.2 milestone Nov 2, 2026
@v0lumehi v0lumehi added bug Something isn't working launcher The NX2Apple launcher app ios iPhone or iPad labels Nov 2, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation ci Workflows and repository tooling labels Nov 2, 2026
@v0lumehi
v0lumehi added this pull request to stack #459 November 2, 2026 06:19
…ttings

# Conflicts:
#	frontend-qt/nspb_qt/localization.py
#	frontend/Sources/NX2Apple/ContentView.swift
#	frontend/Sources/NXCore/Localization.swift
#	frontend/Sources/NXCore/ShellInstall.swift
#	frontend/Tests/NX2AppleTests/ShellInstallTests.swift
# Conflicts:
#	frontend/Sources/NXModel/BuildStore+ShellRoot.swift
@github-actions github-actions Bot added the windows Windows (the Qt front end) label Nov 2, 2026
@v0lumehi
v0lumehi merged commit 70a196e into main Nov 2, 2026
18 of 30 checks passed
@v0lumehi
v0lumehi deleted the v0lumehi/l10n-shell-game-settings branch November 2, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci Workflows and repository tooling documentation Improvements or additions to documentation ios iPhone or iPad launcher The NX2Apple launcher app windows Windows (the Qt front end)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS shell: a game's settings are English on a Chinese device

1 participant