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

WordPress Trac noreply at wordpress.org
Fri Jan 19 17:36:00 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:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------
Changes (by sabernhardt):

 * component:  Themes => Bundled Theme


Old description:

> 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

New description:

 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 archive.html,
 line 21]
   - [https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/home.html#L23 home.html, line
 23]
   - [https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/search.html#L21 search.html,
 line 21]
 - `Older Posts`:
   - [https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/archive.html#L22 archive.html,
 line 22]
   - [https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/home.html#L24 home.html, line
 24]
   - [https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/search.html#L22 search.html,
 line 22]
 - `Mindblown: a blog about philosophy.`:
 [https://core.trac.wordpress.org/browser/tags/6.4.2/src/wp-
 content/themes/twentytwentythree/templates/home.html#L6 home.html, line 6]

 == Twenty Twenty-Four

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

--

Comment:

 "Posts" in Twenty Twenty-Four was reported in
 [https://github.com/WordPress/twentytwentyfour/issues/711 issue 711].

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


More information about the wp-trac mailing list