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

WordPress Trac noreply at wordpress.org
Fri Jan 19 14:42:50 UTC 2024


#60298: Text embedded in theme template is not translatable
--------------------------+-----------------------------
 Reporter:  wildworks     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Related to an issue reported on Gutenberg:
 https://github.com/WordPress/gutenberg/issues/55983

 Default block themes embed some text inside the template as content or
 attributes. However, template files are HTML files and cannot use PHP
 translation functions like pattern files. As a result, English will always
 be displayed, even if the user changes the site language.

 As far as I've researched, the following passages are untranslatable text.

 == Twenty Twenty-Three

 - `Newer Posts`:
   - https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/archive.html#L21
   - https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/home.html#L23
   - https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/home.html#L23
   - https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/search.html#L21
 - `Older Posts`:
   - https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/archive.html#L22
   - https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/home.html#L24
   - https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/home.html#L24
   - https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/search.html#L22
 - `Mindblown: a blog about philosophy.`:
 https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/home.html#L6

 == Twenty Twenty-Four

 - `Posts`: https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentyfour/templates/index.html#L6

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


More information about the wp-trac mailing list