Skip to content

fix(i18n): rename address auto-complete setting caption (TWO-25326) - #452

Merged
dgjlindsay merged 2 commits into
stagingfrom
doug/TWO-25326-wc-caption-align
Aug 6, 2026
Merged

fix(i18n): rename address auto-complete setting caption (TWO-25326)#452
dgjlindsay merged 2 commits into
stagingfrom
doug/TWO-25326-wc-caption-align

Conversation

@dgjlindsay

Copy link
Copy Markdown
Contributor

Summary

  • Rename the admin setting caption "Address auto-complete" to "Autofill company address" (TWO-25326), matching the wording being applied across Magento and PrestaShop for consistency.
  • Description/help text unchanged — already consistent with the new caption.
  • Updated .pot/.po catalogs (nb_NO, sv_SE, nl_NL) with re-translated strings and recompiled .mo files.

Test plan

  • php -l class/WC_Twoinc.php passes
  • msgfmt recompiled all three locale .mo files without error
  • Doug/reviewer to confirm translated wording reads naturally in each locale

…gin consistency (TWO-25326)

Rename the "Address auto-complete" admin setting caption to "Autofill
company address" to match the wording being applied across the other
plugins. Description text is unchanged as it already matches. Updates
translation catalogs (nb_NO, sv_SE, nl_NL) and recompiles .mo files.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dgjlindsay

Copy link
Copy Markdown
Contributor Author

Self-review (inline, small mechanical diff — below adversarial-dispatch threshold):

  • class/WC_Twoinc.php: caption changed Address auto-completeAutofill company address; description/help text left as-is (still accurate: "Enables automatically filling in the registered address from the national registry.").
  • .pot + nb_NO/sv_SE/nl_NL .po: msgid updated consistently, all four catalogs match; no leftover Address auto-complete anywhere in the repo.
  • Translations: nb_NO "Automatisk utfylling av selskapsadresse", sv_SE "Autofyll av företagsadress", nl_NL "Bedrijfsadres automatisch aanvullen" — chosen to match existing terminology already used elsewhere in each catalog for "company name" (selskapsnavn/företagsnamn/bedrijfsnaam).
  • .mo files recompiled with msgfmt and verified (postdate .po, binary contains new translated strings — not stale).

One pre-existing nit, not introduced by this PR: the #: class/WC_Twoinc.php:1742 source-location comment in all four catalogs is stale (actual line is now 4397). Out of scope for this rename.

No blockers. Clean round.

by Claude

Recompile .mo translation catalogs from merged .po sources after
staging conflicts (other TWO-25326 caption/translation work landed
since this branch was opened).
@dgjlindsay
dgjlindsay merged commit f8ad9d3 into staging Aug 6, 2026
@dgjlindsay
dgjlindsay deleted the doug/TWO-25326-wc-caption-align branch August 6, 2026 23:20
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

🖌 Pre-commit success 🏆

Details
Downloading virtualenv (5.2MiB)
 Downloaded virtualenv
Installed 11 packages in 15ms
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@3.1.0.
[INFO] Initializing environment for https://github.com/two-inc/git-hooks.
[INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
prettier.............................................(no files to check)Skipped

Exit code: 0

Author ✍️@dgjlindsay

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.

1 participant