WordPress.org

Make WordPress Core

Opened 15 months ago

Closed 3 weeks ago

#47917 closed defect (bug) (reported-upstream)

block editor confirmation message is not translated

Reported by: tmatsuur Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.2.2
Component: Editor Keywords:
Focuses: Cc:

Description

The confirmation message displayed when deleting a reusable block is not translated.

/wp-includes/js/dist/block-editor.js:17631

var hasConfirmed = window.confirm(Object(external_this_wp_i18n_["__"])('Are you sure you want to delete this Reusable Block?\n\n' + 'It will be permanently removed from all posts and pages that use it.'));

This message is translated in the Gutenberg plugin.

I think there is a problem with extracting text for translation.

Change History (3)

#1 @noisysocks
3 weeks ago

I was able to confirm this by setting my language to French, creating a reusable block, then selecting "Remove from reusable blocks" in the More menu. The AYS was not translated.

When I activate the Gutenberg plugin, no strings are translated.

This ticket was mentioned in Slack in #polyglots by noisysocks. View the logs.


3 weeks ago

#3 @noisysocks
3 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.