Repository navigation
The iOS shell shows a game's settings rows in the player's language - #485
Merged
v0lumehi merged 8 commits intoNov 2, 2026
Merged
Conversation
…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.
3 of 5 tasks
…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
This was referenced Nov 2, 2026
3 of 4 tasks
5 of 6 tasks
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #482 (stack #459), retarget to main after the ones below merge.
Fix or 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,SettingOptionandSettingSectiondo 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.tsvhas 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.pyreadsdm/games/settings.tsvand the game language names from the engine and fails with the missing text. A checked-in list covers a checkout withoutengine/. Both are in the docs offrontend/README.mdandfrontend-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
frontend-iosswift test (121 Swift Testing tests, 5 new),frontendswift test (639, 0 failures, 17 skipped),frontend-qtunittest (238, OK),tools/tests(167, OK, 5 new). New inShellStringsTests: Chinese rows, a note with a percent sign, an unknown text stays English, English stays English.Screenshots
None, no visible change in English. In Chinese the settings rows of a game now read Chinese. I did not capture this.
Scope
dm/,scripts/,docs/,ref/) is added to the repository