WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 4 months ago

#53577 closed defect (bug) (fixed)

Use `_x()` to translate Query block pattern category

Reported by: walbo Owned by: desrosj
Milestone: 5.8 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch i18n-change commit fixed-major dev-reviewed
Focuses: Cc:

Description

Follow up on [50948] where the wrong translation function was used in the block pattern category.

The Query category will not be translated because Block pattern category is used as a domain and not context.

Change History (7)

This ticket was mentioned in PR #1460 on WordPress/wordpress-develop by walbo.


4 months ago

  • Keywords has-patch added

#2 @desrosj
4 months ago

  • Keywords i18n-change added
  • Milestone changed from Awaiting Review to 5.8

Thanks @walbo, good spot!

#3 @desrosj
4 months ago

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

In 51307:

Editor: Ensure the Query block pattern category is translatable.

Because the __() translation function was used here, the Query block pattern category string is not translatable. _x() is the correct function here as that passes the second parameter as context and not text domain.

Follow up to [50948].

Props walbo.
Fixes #53577.

#5 @desrosj
4 months ago

  • Component changed from I18N to Editor
  • Keywords dev-feedback commit fixed-major added

Reopening for backport consideration.

#6 @ocean90
4 months ago

  • Keywords dev-reviewed added; dev-feedback removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

#7 @desrosj
4 months ago

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

In 51308:

Editor: Ensure the Query block pattern category is translatable.

Because the __() translation function was used here, the Query block pattern category string is not translatable. _x() is the correct function here as that passes the second parameter as context and not text domain.

Follow up to [50948].

Props walbo.
Merges [51307] to the 5.8 branch.
Fixes #53577.

Note: See TracTickets for help on using tickets.