Skip to content

l10n: add Italian - #528

Merged
v0lumehi merged 1 commit into
LNPANDY:mainfrom
Dino0005:l10n/italian-json
Nov 2, 2026
Merged

v0lumehi merged 1 commit into
LNPANDY:mainfrom
Dino0005:l10n/italian-json

Conversation

@Dino0005

@Dino0005 Dino0005 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Redoes #352 in the new format, as @v0lumehi described there. #352 can be closed.

Fix or feature

  • Fix
  • Feature

Feature from outside: the issue in a milestone is linked: #388 (v1.0.2), and #352 was in v1.2.0.

What and why

Italian for the Mac and the Windows launcher, as one new file: frontend/l10n/it.json.

  • Every launcher text (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. "Engine" stays "engine" (masculine, "l'engine"), as Italian players call it, rather than "motore". The texts are the ones of l10n: add complete Italian localization #352, with the keys added since then translated and the one changed English text (msg.workdirHint) followed.
  • _language is {"name": "Italiano", "locales": ["it", "italian", "italiano"]}, with no order, so Italian comes after the five.

The file alone did not keep CI green, so the PR has a few more lines:

  • The shell's languages (step 5 of your comment). Italian is declared where every language of the files is: the iOS demo app (frontend-ios/Demo/project.yml and Gen/Info.plist), and the engine's shell app as patch 0060 after 0059 (Upstream-Status: fork-only, tools/engine.py check passes). The ShellUI catalog is regenerated with python3 tools/l10n_shell_catalogs.py: 51 of its 118 texts are shared with the launcher and are Italian now, the others show English. If you would rather fold the one word into 0056, or do this part yourself, I can drop it from the PR.
  • The Mac app. it is in CFBundleLocalizations of build-mac-app.yml and tools/try-local, which test_try_local keeps in step.
  • Tests that listed the five languages. LanguageListTests.swift, test_language_list.py, test_i18n_detect.py and test_localization_table.py failed with a sixth file, because they compare against the five codes. They now list Italian sixth (the picker order, the button cycle, the files in the checkout), and the temporary xx language of the "one more file" tests comes after it. The two tests that compare the detection with the code before the files skip an input that the old code gave English and a newer file now claims (it-IT / it_it is Italian), and check that it does.

Checked

  • Tests: cd frontend && swift test, all green (NXCoreTests 118, NXModelTests 132, NX2AppleTests 645 with 17 skipped captures), including LocalizationRulesTests. python3 -m unittest discover -s frontend-qt/tests OK (14 skipped). python3 -m unittest discover tools/tests OK, including test_l10n_shell_catalogs.py. python3 tools/engine.py check: 36 patches apply to the pin. The pre-push hook passed.
  • Visual QA: NX_LAUNCHER_CAPTURE_DIR=<dir> NX_CAPTURE_LANG=it swift test and the same in en, 78 views each, looked through for cut or overlapping text. Two capture tests render a fixed language (FrameTimesTests sets .en, the dropdown capture in LauncherDropdownTests lists five languages in German), so for the launch options and the language picker below I switched them to Italian locally for the capture only. That change is not in the PR.
  • Run on a device or Mac: the Italian strings of l10n: add complete Italian localization #352 ran in the launcher on my Mac (Apple M3 Pro, macOS 27.2), built from l10n: add complete Italian localization #352's branch on v1.0.0. This branch itself was not built as an app.

Screenshots

Before (English) and after (Italian), from the capture tests:

  1. Library
1-library-before-en 1-library-after-it
  1. Build
2-build-before-en 2-build-after-it
  1. Settings
3-settings-before-en 3-settings-after-it
  1. Controls, controller layout
4-controls-before-en 4-controls-after-it
  1. Launch options. "Display mode" becomes a dropdown in Italian, as in French, because "Schermo intero" is too long for the segmented control.
5-launch-options-before-en 5-launch-options-after-it
  1. Language picker: Italiano is in the list
6-language-picker-before 6-language-picker-after-it
  1. The stale frameworks prompt (Adding a game after an engine update fails at the last step: ask first, then remove the stale frameworks #449)
7-stale-frameworks-before-en 7-stale-frameworks-after-it

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository: a change there is a patch in patches/ (a commit in engine/, then tools/engine.py export, and tools/engine.py check passes), with its Upstream-Status
  • A fix to the engine or a game profile also goes to seedds/nxnative as a PR in parallel: this PR's patch says forwarded seedds/nxnative#..., or pending until that PR is open
  • A change to a launcher view has before and after screenshots above
  • No keys, game files or data extracted from a game in the change or the attachments

@PikaMan80 a review of the Italian wording is very welcome: the "Files changed" tab, frontend/l10n/it.json, and "Add a suggestion" on any line.

@github-actions github-actions Bot added launcher The NX2Apple launcher app ios iPhone or iPad windows Windows (the Qt front end) patch-queue Changes the patch queue or the upstream pin ci Workflows and repository tooling labels Nov 2, 2026
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]>
@v0lumehi v0lumehi added this to the v1.0.2 milestone Nov 2, 2026
@v0lumehi
v0lumehi merged commit 6d1c300 into LNPANDY:main Nov 2, 2026
18 checks passed
@v0lumehi

v0lumehi commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks @Dino0005. The Italian file is in main, with patch 0060 for the shell app and the tests for a sixth language. It is part of v1.0.2. The Mac and the Windows launcher offer Italian when the system language is Italian.

Two follow-ups for you, when you have time. The export card of #531 added 38 launcher texts after you branched. They show English in Italian until they are translated: run the key check and it lists them. And a review of the Italian by @PikaMan80 or any native speaker after the release candidate is welcome. I could not judge the quality myself.

@Dino0005 Dino0005 mentioned this pull request Nov 2, 2026
4 of 6 tasks
@v0lumehi v0lumehi mentioned this pull request Nov 3, 2026
1 task done
v0lumehi pushed a commit that referenced this pull request Nov 4, 2026
The seven texts of the Switch 2 games (#603-#607) came in as a machine
translation with "motore". The rest of it.json says "engine" (l'engine,
masculine), as chosen in #528, so the app used two words for one thing. Now
"engine" is the word in all 36 texts that name it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Workflows and repository tooling ios iPhone or iPad launcher The NX2Apple launcher app patch-queue Changes the patch queue or the upstream pin windows Windows (the Qt front end)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants