Skip to content

Italian language update (Installer / GUI)#32

Closed
bovirus wants to merge 0 commit into
no-faff:mainfrom
bovirus:main
Closed

Italian language update (Installer / GUI)#32
bovirus wants to merge 0 commit into
no-faff:mainfrom
bovirus:main

Conversation

@bovirus

@bovirus bovirus commented Jun 17, 2026

Copy link
Copy Markdown

@FarmLox

What this changes

Add Italian language (GUI and instalelr)

I hope thaty it will be OK.

Thanks.

@FarmLox

FarmLox commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Thanks very much, @bovirus

Three strings were added after your review (the language switcher is now a globe in the main window). Could you check the Italian?

  • "Change the display language. InstallerClean restarts to apply it." → "Cambia la lingua di visualizzazione. InstallerClean verrà riavviato per applicarla."
  • "Change the display language" → "Cambia la lingua di visualizzazione"
  • "InstallerClean restarts to apply it." → "InstallerClean verrà riavviato per applicarla."

Also, the section header above the GitHub-star and coffee buttons: in English it's "SAY THANKS", which invites the reader to thank me (the developer), not a list of credits. We currently have "UN GRAZIE". Does that work, or would you use "GRAZIE", "UN PICCOLO GRAZIE", or something else?

FarmLox added a commit that referenced this pull request Jun 18, 2026
bovirus (native Italian speaker) reviewed the 1.9.1 Italian; his corrections are applied. The chief win is the Windows-idiomatic Recycle Bin wording, "Invia... al Cestino" becomes "Sposta... nel Cestino" across the delete strings, plus "ripulire" to "eliminare" and terser article-dropped labels. 103 values updated; the key set, the section comments and the English neutral resx are untouched, so parity stays green and the build is clean.

Skipped the changes that would have regressed: one string he left in English, a few grammar slips, his stale CLI / old language-picker block (those keys were removed this release), and his typo'd crash-log privacy header. Kept "Informazioni" over his abbreviated "Info programma", and "UN GRAZIE" over "GRAZIE A" (which reads as an acknowledgements list rather than an invitation to thank). His installer-script changes were not taken: they strip the UTF-8 BOM and move the Welcome/Finished text out of [Messages] where it no longer overrides the wizard, with no Italian wording gain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bovirus bovirus mentioned this pull request Jun 18, 2026
@bovirus bovirus closed this Jun 18, 2026
FarmLox added a commit that referenced this pull request Jun 18, 2026
bovirus's updated PR #32 refined the muted "why these files accumulate" line: "file" is masculine in Italian, so "ne ha sostituito uno" / "l'editore lo ha ritirato" corrects the wrongly-feminine "sostituita una" / "l'ha ritirata"; "lasciati indietro" renders "left behind" more faithfully than "lasciati lì"; "editore" (publisher) replaces "produttore" (manufacturer); and "non più necessari" matches the app's own "necessari" wording. Placeholders unchanged.

His other newer changes were either the About-title / say-thanks preferences deliberately kept (Informazioni, PER RINGRAZIARMI) or the same English-leak / grammar / stray-space issues already rejected, so this is the only one taken. The Italian is now current with his PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
FarmLox added a commit that referenced this pull request Jun 20, 2026
Adds the 1.9.1 entries that shipped but were not yet recorded:

- installer: the publisher name and repo URL are single-sourced via a
  #define each, and UsePreviousLanguage=no re-detects the wizard language
  every run so a later-added setup language matches Windows on upgrade.
  Both suggested by bovirus (#33).
- the window title-bar text and the splash no longer clip at large text
  sizes: the title used the scaled heading token while the caption bar
  stayed fixed, and the splash had a fixed height the enlarged base text
  outgrew.

Also credits bovirus's Italian review on the Italian-interface entry (#32).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
FarmLox added a commit that referenced this pull request Jul 19, 2026
Addresses every actionable finding from the independent ship-readiness
review at non-repo-files/v1.5.4-ship-readiness-review.md. Findings
that the review flagged but explicitly did not fix here are documented
inline with their reasoning.

Native interop (latent UB; harmless on x64 by ABI luck):
- SHFILEOPSTRUCT: Pack=8 -> Pack=1 to match the Windows SDK's
  pshpack1.h declaration. Pack=8 inserted 4 bytes of padding before
  pFrom on x64, putting the C# field at offset 16 while the kernel
  reads from offset 12 - the shell happened to read field-aligned
  bytes that just so happened to look right.
- MSIHANDLE: changed from IntPtr (8 bytes on x64) to uint (4 bytes,
  matching `typedef unsigned long MSIHANDLE` in msi.h). The IntPtr
  signature would crash on x86 where the calling convention pushes
  8 bytes for a 4-byte argument. Cascaded the type change through
  Msi.cs and MsiFileInfoService.cs.
- X509Certificate.CreateFromSignedFile result is now disposed too
  (was leaked until finalisation; the X509Certificate2 wrapper
  duplicates the handle so the inner needs its own using).

Operation correctness:
- F5 keybinding (and any other Re-scan trigger) now gates on
  Cleanup.IsOperating and Completion.IsComplete via a new
  ScanViewModel.IsExternallyBlocked flag flipped from MainViewModel.
  Without this, F5 during a Move started a parallel scan that raced
  the active operation.
- EnumeratePatches now throws InvalidOperationException after
  MaxConsecutiveNonSuccess just like EnumerateProducts does. The
  silent break would have left real-but-superseded patches missing
  from the result set, classifying them as orphaned and offering
  them for cleanup.
- EnumeratePatches now Array.Clear's its GUID buffers between
  iterations, matching EnumerateProducts.
- Pre-flight write probe in CleanupViewModel.MoveAllAsync is now
  cancellable: the operationCts is created BEFORE the probe (was
  after), so the Cancel button on the operating overlay actually
  cancels rather than waiting out the SMB timeout. The probe also
  goes through the injected IFileSystem so MockFileSystem-driven
  tests don't hit real disk.
- Settings file lost-update race fixed: SaveAfterDelayAsync re-loads
  before saving, copies MoveDestination onto the freshly-loaded
  AppSettings, then writes. Previously, the cached _settings instance
  could clobber updates the detail-window code-behinds wrote
  (window-size persistence) while the user was typing in the move-
  destination textbox.
- PruneEmptySubdirectories called with CancellationToken.None: best-
  effort cleanup, not an operation the user's Cancel should
  re-classify a successful Move/Delete as cancelled.
- Move/DeleteFailed status pill now also includes the crash log path,
  so users can find detail rather than guess where to look.
- Maximize/Restore button glyph now updates with the window state.

Path leakage under elevation:
- DescribeWriteFailure no longer routes ex.Message into the dialog.
  Even an IOException's .Message can carry paths from outside the
  user's typed destination (lock-holder process paths, NTFS
  resolution chains); under elevation those could be paths from
  another user's profile. Caller now writes to crash log first,
  passes the log path through DescribeWriteFailure, and the dialog
  body shows only the user's own dest plus the log-path pointer.
  Resx patterns updated; matching tests inverted.
- ScanViewModel generic-exception catch shows a dialog (was status
  pill only, easily missed).
- DispatcherUnhandledException in App.xaml.cs guards against re-
  entry: a second exception during the MessageBox's nested message
  pump no longer stacks two dialogs / two log entries.

CLI:
- Rejects extra positional args for /s, /d (silent truncation
  before); /m allows args[1] only.
- /m PATH path with unquoted spaces ("/m D:\My Backup") used to
  become "D:\My" with no warning.
- Three-state exit code: 0 success, 2 partial success, 1 full
  failure. Documented in --help. Sysadmin retry policies can now
  distinguish "all files failed" from "1 of 100 failed".
- DeletingFiles / MovingFiles status messages take a pluralised
  noun parameter so "1 files" is no longer printed for single-
  orphan runs.
- Console.CancelKeyPress handler registered BEFORE the mutex
  acquisition so a Ctrl+C in the gap prints "Cancelling..."
  gracefully.
- Pre-mutex-cancel path also unhooks the cancel handler before
  return, matching the post-finally cleanup.

Threading / state:
- ScanViewModel re-samples HasPendingReboot AFTER the scan await,
  not before. Sampling before could publish a stale "no pending
  reboot" if Windows Update queued a reboot during a multi-second
  scan, allowing Move/Delete to enable on stale state.
- PropertyChanged-based MoveDestination binding (was LostFocus): the
  400 ms debounce now actually earns its keep (per-keystroke updates
  let the placeholder hide on the first character and the Move
  button enable as soon as the path becomes non-empty), and the
  debounce prevents save thrashing.
- MoveAllAsync uses the captured `dest` consistently (was reading
  MoveDestination live for confirmation / move call / restore-hint
  string), closing a race where a fast user could change the
  textbox between IsInstallerFolderOrChild validation and the Move
  service call.

Localisation:
- Strings.en-GB.resx deleted: it was a 1:1 duplicate of the neutral
  resx, and the project's NeutralLanguage is en-GB so .NET fallback
  already returned the neutral resource for en-GB consumers. The
  satellite assembly was loaded but its content was identical.
  Maintenance trap eliminated.
- Resx patterns added: Cli.Help.ExitCodes* (the new --help block),
  Cli.PendingRebootBlocked, Cli.EventLogPendingRebootBlocked.

UX polish:
- Result overlay tab-cycles inside the overlay's two buttons (was
  cycling through main-window buttons behind the overlay until
  focus eventually landed on Close).
- Result overlay has a 1px slate border so it reads as a layered
  window instead of a free-floating block.
- Click on the dim margin around the result overlay dismisses it.
- Maximize/Restore button glyph swaps between U+25A1 and U+2750.
- Result-screen errors block is now keyboard-focusable so screen
  readers can read it (overrides SelectableText style's
  IsTabStop=False locally).
- AboutWindow Close button gets AutomationProperties.Name (was
  inconsistent with the four other windows' close buttons).
- SubtleLink hyperlinks now underline on hover so the link is
  discoverable without relying on colour shift alone.

Tests:
- DescribeWriteFailureTests: inverted to assert the inner exception
  message does NOT leak and the log path DOES surface.
- MainViewModelTests timing-coupled debounce wait now reads
  CleanupViewModel.MoveDestinationSaveDelay (made internal)
  instead of hardcoding 700 ms.
- OrphanedFilesViewModelTests dispose-cancel test uses
  TaskCompletionSource (await-based) instead of
  DateTime.UtcNow polling.
- PendingRebootServiceTests removed the tautological
  Assert.IsType<bool>(svc.HasPendingReboot()) test.
- PruneEmptySubdirectoriesTests gated on the
  INSTALLERCLEAN_TEST_PRUNE=1 env var so they don't delete real
  installer-folder subdirs on dev/CI hosts.
- InstallerClean.Tests.csproj sets RestorePackagesWithLockFile=true
  so test dependency drift can't mask production behaviour.

Project notes drift:
- The notes said neutral resx is en-US; actually en-GB. Fixed and
  noted the en-GB.resx satellite removal.
- The notes said only Core has SupportedOSPlatform; CLI has it too.
  Now mentions both.
- "Nothing currently blocking" replaced with a pointer to the latest
  ship-readiness review.
- MEMORY.md "no ex.Message to UI" claim qualified with the documented
  inline exceptions (DescribeWriteFailure, ScanViewModel's
  InvalidOperationException catch).

Findings explicitly NOT actioned (with reasoning):
- #18, #25, #59 are duplicates of #1, #11.
- #31 EventTrigger animation paths: reviewer's own conclusion was
  "no fix unless profiler shows it".
- #32 Process.Start as Admin: would require explorer-token-drop
  machinery; deferred (a click-once-per-session UX paper-cut).
- #36, #41, #44, #48, #53, #54, #57: reviewer confirmed not bugs.
- #40 RescanRequested via constructor: reviewer's "not a bug today".
- #43 AllowsTransparency: acceptable trade-off for confirm dialogs.
- #45, #46 manifest version: cosmetic.
- #47 Inno [Files] precondition: release-script concern, not
  shipped product.
- #55, #56: minor UX nits.
- #58 CrashLog.Write return success/failure: would change the
  signature across every caller; out of scope for a fixup pass.

178/178 tests passed before this commit; running on Windows after.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
FarmLox added a commit that referenced this pull request Jul 19, 2026
…r boundary

Summary.RegisteredStillUsed, Summary.OrphanedToCleanUp and
Summary.MissingFromDisk previously took a count plus a "file is" /
"files are" fragment (or "file" / "files") across a placeholder
boundary: "{0} {1} still used". A translator into a language where
the noun-verb-count agreement crosses the placeholder (Slavic case
selection, Arabic dual, Japanese particle placement) cannot
rewrite the fragment to match without restructuring the whole
sentence, and the sentence sits in a separate resx key from the
fragment.

The three Summary keys now have explicit .Singular and .Plural
variants with the count embedded directly. Call sites use the
existing DisplayHelpers.Pluralise(count, singular, plural) helper
to pick the right key per the English n != 1 rule; a translator
swaps both keys per their language's rule. The two Plural.FileVerb
entries drop out as unused.

Audit synthesis #32 was deferred at the time on the basis that
"the project is currently English-only". Per follow-up review the
correct call is to fix it: the translation surface is already
real (fr, zh-CN, es ship today) and the FileVerb pattern would
trip a Slavic / Arabic / Japanese translator the moment they
opened the resx.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
FarmLox added a commit that referenced this pull request Jul 19, 2026
bovirus (native Italian speaker) reviewed the 1.9.1 Italian; his corrections are applied. The chief win is the Windows-idiomatic Recycle Bin wording, "Invia... al Cestino" becomes "Sposta... nel Cestino" across the delete strings, plus "ripulire" to "eliminare" and terser article-dropped labels. 103 values updated; the key set, the section comments and the English neutral resx are untouched, so parity stays green and the build is clean.

Skipped the changes that would have regressed: one string he left in English, a few grammar slips, his stale CLI / old language-picker block (those keys were removed this release), and his typo'd crash-log privacy header. Kept "Informazioni" over his abbreviated "Info programma", and "UN GRAZIE" over "GRAZIE A" (which reads as an acknowledgements list rather than an invitation to thank). His installer-script changes were not taken: they strip the UTF-8 BOM and move the Welcome/Finished text out of [Messages] where it no longer overrides the wizard, with no Italian wording gain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
FarmLox added a commit that referenced this pull request Jul 19, 2026
bovirus's updated PR #32 refined the muted "why these files accumulate" line: "file" is masculine in Italian, so "ne ha sostituito uno" / "l'editore lo ha ritirato" corrects the wrongly-feminine "sostituita una" / "l'ha ritirata"; "lasciati indietro" renders "left behind" more faithfully than "lasciati lì"; "editore" (publisher) replaces "produttore" (manufacturer); and "non più necessari" matches the app's own "necessari" wording. Placeholders unchanged.

His other newer changes were either the About-title / say-thanks preferences deliberately kept (Informazioni, PER RINGRAZIARMI) or the same English-leak / grammar / stray-space issues already rejected, so this is the only one taken. The Italian is now current with his PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
FarmLox added a commit that referenced this pull request Jul 19, 2026
Adds the 1.9.1 entries that shipped but were not yet recorded:

- installer: the publisher name and repo URL are single-sourced via a
  #define each, and UsePreviousLanguage=no re-detects the wizard language
  every run so a later-added setup language matches Windows on upgrade.
  Both suggested by bovirus (#33).
- the window title-bar text and the splash no longer clip at large text
  sizes: the title used the scaled heading token while the caption bar
  stayed fixed, and the splash had a fixed height the enlarged base text
  outgrew.

Also credits bovirus's Italian review on the Italian-interface entry (#32).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants