[wp-trac] [WordPress Trac] #53577: Use `_x()` to translate Query block pattern category

WordPress Trac noreply at wordpress.org
Fri Jul 2 18:37:53 UTC 2021


#53577: Use `_x()` to translate Query block pattern category
-------------------------------------------------+-------------------------
 Reporter:  walbo                                |       Owner:  desrosj
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.8
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch i18n-change commit fixed-  |     Focuses:
  major dev-reviewed                             |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51308" 51308]:
 {{{
 #!CommitTicketReference repository="" revision="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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53577#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list