Repository navigation
Conversation
ad98a20 to
c728ba6
Compare
d91d215 to
fb97ad4
Compare
dbf5142 to
55292d6
Compare
Add an Italian overlay (L10n.it) for every string of the shared table, in the informal "tu", with Apple's Italian terms for system things and technical names (prod.keys, NSP, RomFS, Metal, Xcode) left as players see them in logs. Xcode's own menus stay in English, as Xcode has no Italian UI. Italian joins the device-language selection, the Settings picker and the Qt language button (by language code and Windows locale name, after French), the app's CFBundleLocalizations, and the generator writes it into the Qt table as a sixth column. The stale-frameworks prompt (LocalizationStaleFrameworks.swift) has its Italian text too. The overlay lives in NXCore/LocalizationItalian.swift and LocalizationItalianMore.swift, so no Swift file goes above 800 lines (SourceSizeTests). Localization.swift does not grow: Lang.initial() reads the stored choice with Lang(rawValue:), which also covers the new code, and the file's entry in SourceSizeTests goes down from 4237 to 4236. ItalianLocalizationTests and test_localization_it.py fail for any key without Italian text or with different format placeholders. The width tests now cover Italian too: the hero button, the Builds page's setup button, the launch options' reset label and the controller layout's "Standard" were shortened to fit. The language dropdown capture renders the picker's own list in NX_CAPTURE_LANG. The French tests list settings.language.it among the names that stay as written. Co-Authored-By: Claude Opus 5.5 <[email protected]>
55292d6 to
29f81bd
Compare
|
Thanks for the Italian translation. It is a lot of work. The launcher texts now live in one JSON file per language ( I suggest you wait until those PRs are in |
|
I don't want to interfere with Dino0005's work. |
|
Thanks @PikaMan80, that is kind of you. @Dino0005 are you still on the Italian translation? When the new language file format is in |
|
Thanks @v0lumehi. I'll wait for the JSON files to land on main and then redo this PR as frontend/l10n/it.json. All the Italian strings are ready, so it should be quick once you give the go. Hi @PikaMan80, |
|
Thanks @Dino0005. The new format is in
"_language": {
"name": "Italiano",
"locales": ["it", "italian", "italiano"]
},
Please open it as a new PR from a branch of your fork, and I will close this one when it is up. @PikaMan80 a review of the Italian wording once the PR is up is a big help. |
|
documentation is almost ready. Going to fork it. |
frontend/l10n/it.json: every launcher text in Italian (1022 keys, the same coverage as German and French, plus the one ios. key they have), in the informal "tu", with Apple's Italian terms for system things and technical names (prod.keys, NSP, RomFS, Metal, Xcode) left as players see them in logs. The _language block names it Italiano, with the locales it, italian and italiano and no order, so it comes after the five. The texts are the ones of LNPANDY#352, moved to the new file. Italian is declared where every language of the files is: the Mac app (build-mac-app.yml, tools/try-local), the iOS demo app (project.yml and Gen/Info.plist) and the engine's shell app (patch 0057, after 0056). The ShellUI catalog is regenerated with tools/l10n_shell_catalogs.py. The tests that listed the five languages now list Italian sixth (the picker order, the button cycle, the files in the checkout), and the temporary language of the "one more file" tests comes after it. The tests that compare the detection with the code before the files accept that it-IT / it_it, English then, selects Italian now, and check that it does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
frontend/l10n/it.json: every launcher text in Italian (1022 keys, the same coverage as German and French, plus the one ios. key they have), in the informal "tu", with Apple's Italian terms for system things and technical names (prod.keys, NSP, RomFS, Metal, Xcode) left as players see them in logs. The _language block names it Italiano, with the locales it, italian and italiano and no order, so it comes after the five. The texts are the ones of LNPANDY#352, moved to the new file. Italian is declared where every language of the files is: the Mac app (build-mac-app.yml, tools/try-local), the iOS demo app (project.yml and Gen/Info.plist) and the engine's shell app (patch 0060, after 0059). The ShellUI catalog is regenerated with tools/l10n_shell_catalogs.py. The tests that listed the five languages now list Italian sixth (the picker order, the button cycle, the files in the checkout), and the temporary language of the "one more file" tests comes after it. The tests that compare the detection with the code before the files accept that it-IT / it_it, English then, selects Italian now, and check that it does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Superseded by #528, which is merged. Thanks @Dino0005 and @PikaMan80. I close this PR. |
Fix or feature
What and why
The launcher speaks Chinese, English, Swedish and German. An Italian Mac or Windows gets English. This adds Italian to both front ends, built the way German was in 6355370.
L10n.itis an overlay with an entry for every one of the shared table's 953 keys. It uses the informal "tu", Apple's Italian terms for system things (Impostazioni, Autorizza, Cestino, Modalità sviluppatore) and keeps technical names (prod.keys, NSP, RomFS, Metal, Xcode) as players see them in logs. Xcode's own menu paths stay in English, as Xcode has no Italian UI.Lang.itjoins the device-language detection (it*) and the Settings picker, andsettings.language.it("Italiano") is in every catalog.gen_localization.pywrites Italian as a fifth column.Lang.ITis detected by language code and by Windows locale name (Italian_Italy,Italiano (Italia)), and the language button cycles 中文 → EN → Svenska → Deutsch → Italiano → 中文.library.newBuild, "Compila"), the Builds page's setup button (build.setup, "Configura ora") and the launch options' reset (launch.reset, "Carica valori testati").data.dlcis "DLC (aggiuntivi)" so it fits the Qt label column.testRenderDropdownForScreenshots) rendered a fixed German list of five languages. It now renders the picker's own list (BuilderView.languageCodes) inNX_CAPTURE_LANG.frontend/README.mdnames the Italian overlay and its test.Checked
cd frontend && swift build && swift test: 656 tests, 16 skipped, 0 failures. NewItalianLocalizationTests: every key has Italian text, no English left outside names and units, placeholders match English in count and order, no semicolons, no three-dot ellipsis.python3 -m unittest discover -s frontend-qt/tests: OK. Newtest_localization_it.pyand Italian cases intest_i18n_detect.pyandtest_build_failure_hints.py.python3 frontend-qt/gen_localization.pyleavesfrontend-qt/nspb_qt/localization.pyunchanged.python3 -m unittest discover tools/tests: OK.NX_CAPTURE_LANG=it NX_LAUNCHER_CAPTURE_DIR=… NX_ONBOARDING_CAPTURE_DIR=… swift testfor the library, Builds, Settings, language list, onboarding and build failure views (below). The Qt window was rendered offscreen with PySide6 6.12,NSPB_LANG=it.build-mac-app.ymldoes it and used in Italian on an Apple M3 Pro, macOS 27.2: Settings, library, Builds and a game build. No game was played on this branch.frontend-ios/), which this PR does not change.Screenshots
Before is main in English (the language list capture rendered German before this change), after is this branch in Italian.
Library
Builds
Settings
Language list
Onboarding
Build failure
Qt front end
Scope
dm/,scripts/,docs/,ref/) is added to the repository: a change there is a patch inpatches/(a commit inengine/, thentools/engine.py export, andtools/engine.py checkpasses), with itsUpstream-Statusforwarded seedds/nxnative#..., orpendinguntil that PR is open🤖 Generated with Claude Code