Repository navigation
l10n: add complete German localization - #225
Conversation
4dfe82e to
3ddca9e
Compare
|
Note for the rebase before this merges: #246 added new launcher strings ( |
3ddca9e to
b7df5d4
Compare
|
Rebased onto current main. Added German entries for the strings that landed since: the DLC and update row messages and panel texts from #246, the frame times strings from #112 and the return-after-play setting. The completeness test covers all keys, 865 strings now. |
|
@LNPANDY rebased onto current main, CI green. The German table now also covers the strings that landed meanwhile (#246, #112 and the return-after-play setting), and German reads the English section of bilingual release notes (#242). Like Swedish (#168), a new language may be better in a release of its own, your call. Mergeable after the 48 hours, from 2026-10-31 20:39 UTC. |
The release app's Python lacked zbic, so a game with system 22.0.0+ modules stopped with 'ZBIC (zstd) segments need the zbic package'. zbic is now pinned in the bundle, checked by check_bundle.sh, part of the launcher's Python probe and venv install, and a failed build with this message gets a failure row with an install button (Swift and Qt, English, Chinese, Swedish).
|
Note for the next rebase, from the review of #256 (@LNPANDY's Qt locale fix):
|
The pins move to frontend/bundled-python/requirements.txt with every release file hashed, bundle_tools.sh installs with --require-hashes, and dependabot.yml gets a pip entry for that folder next to the github-actions one, both weekly and grouped.
|
Reviewed the German catalogue against current main ( One thing to fix before merge, and it is a bug this PR exposes rather than adds: the Qt/Windows language detection cannot see German. So on rebase: keep main's Not blocking: |
Add a German overlay (L10n.de) for every string of the shared table, the language in the device-language selection, the Settings picker and the Qt language button, and generate it into the Qt table as a fourth column. A new test fails for any key without German text or with different format placeholders. The capture tests render in another language with NX_CAPTURE_LANG. The generator now unescapes the Swift escapes (backslash, tab, newline) for all columns, and tests that read English pin the language.
…ests Lang.DE joins the Qt language cycle and Lang.initial() (saved choice, Windows ISO code, locale name). Adds the German text of cheats.iosNote (#257), regenerates the Qt table, and lets the German tests' placeholder pattern match %.0f and %.1f.
b7df5d4 to
c3ed86c
Compare
Bundle zbic and require it in the dependency probe
Hash-pin the bundled Python packages and let Dependabot update them
|
@LNPANDY rebased onto current main and force-pushed (
|
Qt: regenerate the language table for the cheats iOS note
Manage > Saves no longer needs the launcher's install record or the signed app it cached: the game is found on the device from `devicectl device info apps` (the launcher's bundle ID, any bundle ID holding the title ID, then the display name), so a game installed from the exported IPA with another signing tool works. Both save layouts are read, Documents/save and Documents/games/<title ID>/save, and a copy goes to the one in use. With several devices the sheet shows a selector and names the device it asks. A device that is not connected is not asked at all. Every devicectl command has a deadline, a query that outlives its own gets a clear message, Refresh is off while one runs, and an answer that arrives after its query was given up or replaced is dropped. Closes #250 Co-authored-by: Tiomehsh <[email protected]>
…ch folder is used A Mac game in a library folder (.nx2apple-library beside the app) keeps its save in save/<title ID> there. The Saves window now uses the host's rule instead of the games/ folder, prefers that folder over the default location when both exist, and shows the folder under This Mac. Co-authored-by: Tiomehsh <[email protected]>
On a real device the flag deletes the destination's siblings too, not only its contents. A save push to Documents/games/<id>/save removed the game's romfs.img, and a cheats push removed what sits beside Documents/games/<id>/cheats. The copies now merge into the destination and delete nothing. A file the Mac no longer has can stay in the device's folder, which is far safer than wiping game data (devicectl has no command to delete a single file). The stand-in devicectl in the tests now wipes the parent's entries when the flag is passed, and the tests assert the flag is never passed and that game data stays. Found and reproduced on real devices by Tiomehsh (#250). Co-authored-by: Tiomehsh <[email protected]>
On a real device the flag deletes the destination's siblings too, not only its contents. A save push to Documents/games/<id>/save removed the game's romfs.img, and a cheats push removed what sits beside Documents/games/<id>/cheats. The copies now merge into the destination and delete nothing. A file the Mac no longer has can stay in the device's folder, which is far safer than wiping game data (devicectl has no command to delete a single file). The stand-in devicectl in the tests now wipes the parent's entries when the flag is passed, and the tests assert the flag is never passed and that game data stays. Found and reproduced on real devices by Tiomehsh (#250). Co-authored-by: Tiomehsh <[email protected]>
Never pass devicectl's --remove-existing-content: it deleted game data on the device
…n added Rebased onto current main and resolved the generated Qt table by regenerating it (gen_localization.py), so this keeps main's fixes rather than reverting them: - the ISO language code Windows is asked for (0x59), from #256 — without it a German Windows would still fall through to English on the Qt side - the 18 keys #246 added to the Swift table without regenerating the Qt one Ten strings had no German, because main added them after this branch was cut: `saves.macLibrary`, `saves.macStandard`, `saves.macPending`, `saves.noDevices`, `saves.notConnected`, `saves.timeout`, `saves.device`, `fail.zbic.what`, `fail.zbic.next` and `fail.zbic.button`. Two existing entries no longer matched the current English (`saves.reading`, `saves.notInstalled`): the first was missing its `%@`, the second still described an older sentence. Tests: swift test 500 tests, 0 failures; python -m unittest discover -s frontend-qt/tests 188 tests OK.
What and why
German players had only the English interface. This adds a complete German localization to the Mac launcher and, through the generator, to the Qt front end. It follows the pattern of @yeager's Swedish PR #168: a
deoverlay below the(zh, en)table, a.decase inLang, device-language selection forde*, a fifth entry in the Settings language picker (and in the controller cycle), and a fourth column generated intofrontend-qt/nspb_qt/localization.py. The Qt language button now cycles zh, en, sv, de.settings.language.de). No English fallback is left. 54 keys read the same in German on purpose (names, units, button letters) and are listed in the test.Tests and tooling:
GermanLocalizationTests: every key has German text, nothing is left in English except the listed names, format placeholders (%@,%d,%ld, positional,%%) match the English entry in count and order, no semicolons, no added product name, ellipsis and quote rules. Strings added by later PRs need their German entry, and this test fails for them, which is the point.test_localization_de.pyand the language tests extended.NX_CAPTURE_LANG=demakes the existing capture tests render in one language.\\,\tand\nfrom the Swift table for every column. Before, the Qt table showed a literal\t,\nand doubled backslashes (5 strings:install.step1-3,fail.noTitleID.next,dep.spirv.hint.win).Other open PRs add strings (#210, #213, #221, #222 removes
app.subtitle). I translated what is on main. Whichever merges second needs its German entries.Product change: per the merge rules this waits 48 hours.
Checked
cd frontend && swift build -c release && swift testpasses (433 tests, 14 skipped).python3 -m unittest discover -s frontend-qt/testspasses excepttest_win.InstallFailureHintTest.test_network_disk_and_other_map_to_their_hints, which also fails on main (nspb_qt.modelhas noBuildModel).python3 scripts/patches.py checkis ok.NX_CAPTURE_LANG=de NX_LAUNCHER_CAPTURE_DIR=/tmp/de-shots NX_CONSOLE_CAPTURE_DIR=/tmp/de-shots/console NX_ONBOARDING_CAPTURE_DIR=/tmp/de-shots/onboarding swift test --filter "testRender|testCapture". I looked at the library, builds, settings, dependency and failure rows, saves, cheats, free space, controls, the console mode at TV, Mac and compact sizes, and onboarding. Fixes after the first pass: "Zurück zum Desktop" and "Im Desktop-Modus bleiben" clipped in the console bar and prompt (now "Zum Desktop" and "Nicht wechseln"), the player-mode note was cut in the middle (shortened), the iOS size note broke between "8" and "GB" (no-break spaces), and the footers of Controls and Free space were cut (shortened). No layout code changed. The long signing-team hint (dev.noTeam) is cut to one line as the English one is.Screenshots
The CLI cannot upload them. They are in
/tmp/de-shots/on the author's Mac (console/,onboarding/), for examplesettings.png,build.png,library.png,row-noTitleID.png,console/full-mac-de.png,console/prompt-mac-de.png,onboarding/platform-de.png.Not covered
frontend-iosis still being built and has no German yet.dm/are upstream and English only.Scope