[buddypress-trac] [BuddyPress Trac] #9074: Attributes in block.json files are not translated

buddypress-trac noreply at wordpress.org
Sun Jan 28 18:43:25 UTC 2024


#9074: Attributes in block.json files are not translated
--------------------------+----------------------
 Reporter:  imath         |       Owner:  slaFFik
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  12.3.0
Component:  I18N          |     Version:  12.0.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+----------------------
Changes (by imath):

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


Comment:

 In [changeset:"13717" 13717]:
 {{{
 #!CommitTicketReference repository="" revision="13717"
 BP Blocks: make sure default block titles can be translated

 Some of the BP Blocks are using a `title` attribute into their
 `block.json`. Unfortunately, block attributes do not seem to be include in
 the translatable strings of the WP Block Metadata API.

 To fix this, all `block.json` `title` attributes now default to an empty
 string & the default title value is handled within the PHP callback to
 render the block.

 For the specific case of the Latest Activities block, this commit also
 fixes some errors that were preventing it to be able to select the list of
 Activity types to include into the rendered activities.

 Fixes #9074 (branch 12.0)
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9074#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list