Skip to content

Site Editor Templates: Translations strings ignore user settings #55699

Closed

Description

@hanneslsm

Description

The global site language of one of my site is German.
My user has english as its default language.
The template names are translated to German, even though I'd expect it to be english.

Step-by-step reproduction instructions

  1. Change the site language to any language, e.g. German
  2. Change the language of the user settings to another language, e.g. english
  3. See two languages mixed in the site editor > templates

Screenshots, screen recording, code snippet

Screen.Recording.2023-10-30.at.13.37.13.mov

Environment info

  • WP 6.3.2
  • GB 16.9.0

Please confirm that you have searched existing issues in the repo.

No

Please confirm that you have tested with all plugins deactivated except Gutenberg.

No

Activity

  1. changed the title [-]Site Editor Templates: Translations[/-] [+]Site Editor Templates: Translations strings ignore user settings[/+] on Oct 30, 2023
  2. added
    Internationalization (i18n)
    [Feature] Site Editor
    on Oct 30, 2023
  3. added
    [Type] Bug
    Needs Testing
    on Oct 31, 2023
  4. mt8 commented on Nov 1, 2023

    @mt8

    I tested this issue. I reproduced it with the code from the trunk branch.

    I tested it with the site settings set to English and the user settings set to Japanese.
    In that case, the site editor's "templates" started with a mix of Japanese and English.

    スクリーンショット 2023-11-02 2 36 27

  5. mt8 commented on Nov 1, 2023

    @mt8

    The template names that are translated seem to be only templates added from customTemplates in theme.json of the enabled theme (Twenty Twenty-Three in my environment).

    https://themes.trac.wordpress.org/browser/twentytwentythree/1.2/theme.json#L4

  6. hanneslsm commented on Nov 2, 2023

    @hanneslsm
    Author

    Thanks for testing!

    The template names that are translated seem to be only templates added from customTemplates in theme.json of the enabled theme (Twenty Twenty-Three in my environment).

    I think the default page template titles are getting translated. Related: #51428

  7. github-actions commented on Dec 3, 2023

    @github-actions

    Hi,
    This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
    Thanks for helping out.

  8. added
    [Status] Stale
    on Dec 3, 2023
  9. mrfoxtalbot commented on Feb 20, 2025

    @mrfoxtalbot

    I noticed something similar and opened #69261. I also found a duplicate in #51031 (closed now).

    @hanneslsm @mt8, is it possible we're facing the same issue? Thank you!

  10. USERSATOSHI commented on Jul 28, 2025

    @USERSATOSHI
    Contributor

    Reproduction Report

    Description

    This report validates whether the issue can be reproduced.

    Environment

    • WordPress: 6.9-alpha-60272
    • PHP: 8.2.28
    • Server: Apache/2.4.62 (Debian)
    • Database: mysqli (Server: 11.8.2-MariaDB-ubu2404 / Client: mysqlnd 8.2.28)
    • Browser: Chrome 138.0.0.0
    • OS: macOS
    • Theme: Twenty Twenty-Three 1.3
    • MU Plugins:
      • Gutenberg Test Plugin, Disable Login Autofocus
      • Gutenberg Test Plugin, Disable Remote Patterns
      • Gutenberg Test Plugin, Enable Templates UI
      • Gutenberg Test Plugin, No-cache Headers
      • Gutenberg Test Plugin, Normalize Theme
      • server-timing.php
    • Plugins:
      • Gutenberg 21.3.0-rc.1
      • Test Reports 1.2.0

    Actual Results

    1. ❌ unable to reproduce the error.

    Additional Notes

    • Followed the steps mentioned in the issue as well as the supplemental video.

    Supplemental Artifacts

    Screen.Recording.2025-07-28.at.8.41.37.PM.mov
  11. hanneslsm commented on Jul 28, 2025

    @hanneslsm
    Author

    @USERSATOSHI Thanks for testing! In the video you only show in the editor the Templates data view. Have you tested clicking on Twenty Twenty-Three in the black sidebar?

    Also, you circle with your cursor "Page:404", but if I'm not mistaken it actually should say only "404" because this is defined as the title of the template: https://github.com/WordPress/twentytwentythree/blob/trunk/theme.json#L4-L27 (I think this is a different issue than this one here though)

  12. USERSATOSHI commented on Jul 28, 2025

    @USERSATOSHI
    Contributor

    @USERSATOSHI Thanks for testing! In the video you only show in the editor the Templates data view. Have you tested clicking on Twenty Twenty-Three in the black sidebar?

    If I am not mistaken did you mean, the TT3 in the templates black sidebar of video? If so it is the same. If it is something else can you provide the directions for that?

    Image

    Also, you circle with your cursor "Page:404", but if I'm not mistaken it actually should say only "404" because this is defined as the title of the template: WordPress/twentytwentythree@trunk/theme.json#L4-L27 (I think this is a different issue than this one here though)

    I believe this is due #51428 which changed how the titles should be displayed.

    Regards
    cc: @hanneslsm

  13. hanneslsm commented on Jul 28, 2025

    @hanneslsm
    Author

    If I am not mistaken did you mean, the TT3 in the templates black sidebar of video? If so it is the same. If it is something else can you provide the directions for that?

    You're right! I haven't noticed the UX has changed and the template names are not displayed in the black sidebar anymore but in the data view now.

    Closing the issue as solved. Thanks @USERSATOSHI

  14. SirLouen commented on Jul 28, 2025

    @SirLouen
    Member

    I've posted #70948 to address what @mt8 is commenting and also @USERSATOSHI noticed in today's scrub.

  15. removed
    Needs Testing
    on Jul 28, 2025
  16. SirLouen commented on Jul 29, 2025

    @SirLouen
    Member

    It seems that what @mt8 was commenting, and we observed, was simply a matter of some missing translations. So we can confirm that everything has been sorted at this point.

    If anyone happen to find something else, open a new ticket with more testing info, or if it's related to Templates, comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Internationalization (i18n)[Feature] Site Editor[Status] Stale[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions