WordPress.org

Make WordPress Core

Opened 3 weeks ago

Last modified 3 weeks ago

#49134 reopened defect (bug)

Missing translation string in media-views.js

Reported by: audrasjb Owned by:
Milestone: 5.3.3 Priority: normal
Severity: normal Version: 5.3
Component: Media Keywords: has-patch fixed-major
Focuses: Cc:
PR Number:

Description (last modified by audrasjb)

Since changeset [46375], there is a missing translation string in media-views.js.
In trunk, this file is located in src/js/media/views/selection.js

The following string doesn't appear in translate.w.org:
sprintf( _n( '%s item selected', '%s items selected', collection.length ), collection.length )

Thanks @ysatis who initially raised this regression on the French support forum: https://wpfr.net/support/sujet/une-expression-sest-retransformee-en-anglais/

Attachments (1)

Capture d’écran 2020-01-05 à 11.38.59.png (563.4 KB) - added by audrasjb 3 weeks ago.
To reproduce the issue, use for example a gallery block and select one or more items in the media library.

Download all attachments as: .zip

Change History (6)

@audrasjb
3 weeks ago

To reproduce the issue, use for example a gallery block and select one or more items in the media library.

#1 @ocean90
3 weeks ago

In 47040:

Media: After [46375], enable JavaScript translations for the media-views script.

See #49134.

#2 @ocean90
3 weeks ago

  • Component changed from I18N to Media
  • Keywords has-patch fixed-major added; needs-patch removed
  • Milestone changed from Awaiting Review to 5.3.3

The string is available for translation but the translation wasn't loaded because the text domain wasn't set for the script.

#3 @audrasjb
3 weeks ago

  • Resolution set to fixed
  • Status changed from new to closed

Thanks for committing this patch.
Closing as fixed.

#4 @audrasjb
3 weeks ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopening for potential backport in branch 5.3.

#5 @audrasjb
3 weeks ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.