[wp-trac] [WordPress Trac] #60298: Text embedded in theme template is not translatable

WordPress Trac noreply at wordpress.org
Fri Feb 2 07:53:41 UTC 2024


#60298: Text embedded in theme template is not translatable
---------------------------+---------------------
 Reporter:  wildworks      |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  6.5
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+---------------------

Comment (by poena):

 The texts "Newer Posts" and "Older Posts" are in the query pagination
 block.
 This block requires a parent query loop block, so it can't be placed
 ''alone'' in a pattern file to add the translation.

 We can either:
 - Wait for the block editor / Gutenberg to support {{{ancestor}}}
  in the query pagination block:
 https://github.com/WordPress/gutenberg/issues/38684
 - Create patterns for the query
 - Remove the text strings and use the defaults: Previous Page and Next
 Page. This would be a change on live sites where the user has not
 customized their templates.


 For the single headings that are not translatable we could create very
 small patterns, that are hidden from the block inserter. But I would like
 to hear some more opinions about if this is really the best practise.

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


More information about the wp-trac mailing list