Skip to content

EOT string in "duplicate-post-strings-450.js" prevent translation #395

Description

@kiyama-corecorp
  • [ ✓] I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

Translation of "Schedule repulish" button in classic editor's submit box do not work .

To Reproduce

Step-by-step reproduction instructions

  1. Set Language other than English.
  2. Duplicate a post with "Rewrite & Republish".
  3. Set publish time as future date and press OK

Expected results

  1. "Schedule repulish" button become translated strings.

Actual results

  1. "Schedule repulish" button do not become translated strings.

Screenshots, screen recording, code snippet

If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.

Technical info

  • If relevant, which editor is affected (or editors):
  • Block Editor
  • Gutenberg Editor
  • [✓ ] Classic Editor
  • Other:
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • [✓ ] Safari
  • Other:

Used versions

  • Device you are using:
  • Operating system:
  • PHP version:
  • WordPress version:
  • WordPress Theme:
  • Yoast Duplicate Post version:
  • Gutenberg plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug:

Activity

  1. faisalahammad commented on Sep 17, 2026

    @faisalahammad

    Looked into this. The EOT character in the JS string is the normal gettext context separator (it joins the context and the original before lookup), so that part is expected, not the bug.

    The untranslated button in 4.5 was caused by the plugin not loading the script translations for the strings bundle, so the JS lookups stayed in English. This is fixed since 4.6, which registers the translations for the duplicate_post_strings script via wp_set_script_translations() in src/ui/asset-manager.php.

    Could you retest with a non-English locale on the latest version? If the button translates correctly now, this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions