Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSE patterns are displayed in user's language instead of site's language #36227

Open
Chouby opened this issue Nov 4, 2021 · 0 comments
Open

FSE patterns are displayed in user's language instead of site's language #36227

Chouby opened this issue Nov 4, 2021 · 0 comments

Comments

Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
@Chouby
Copy link
Contributor

@Chouby Chouby commented Nov 4, 2021

Description

Since WordPress 4.7, each user can display the backend in its own language, possibly different than the site's main language. When using this feature, FSE patterns are displayed in the user's language instead of the site's main language.

Step-by-step reproduction instructions

  1. Translate some strings of the theme Twenty Twenty Two, let say in French. I selected "ABOUT US" and "LATEST POSTS", using poedit or equivalent and save the .mo file.
  2. Go to Settings > General and select the French language (make sure that in your user profile, the site's default language is selected).
  3. Go to the Site Editor
  4. Edit the footer template part
  5. Select a new footer pattern. I used the "Blog footer" provided by Twenty Twenty Two which comes with the two strings translated at step 1
  6. Check that the two strings are correctly displayed in French as expected.
  7. Go to your profile and now select English as your user's language.
  8. Go back to the Site Editor
  9. Clear the footer customizations and edit it again
  10. Select the same footer pattern as step 5
  11. Check that now the stirings are displayed in English (user's language) instead of French (site's main language).

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 5.8.1
  • Gütenberg 11.8.0
  • Twenty Twenty Two development version from GitHub

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

Yes

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

Yes

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