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

buddypress-trac noreply at wordpress.org
Sun Jan 28 18:20:06 UTC 2024


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

Comment (by imath):

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

 See #9074 (trunk)
 Closes https://github.com/buddypress/buddypress/pull/223
 }}}

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


More information about the buddypress-trac mailing list