Wp-calypso: Page Layouts: Layouts Breaking due to User's Account Language on Simple Sites

Created on 26 Jun 2020  路  3Comments  路  Source: Automattic/wp-calypso

@nickpagz recently worked with a user that reported broken page layouts.

After review, we identified that the cause was due to the user's WPCOM account language settings. When set to Espa帽ol, certain page layouts break. They break in the preview and carry over when you choose to use the selected page layout.

Specifically, this occurred when the Maywood theme was active and the user tried to select the Maywood, Shawburn, Twenty Twenty, or Balasana home page layouts on a Simple site.

We have yet to test with other languages, themes, or page layouts. I could not reproduce on Atomic.

Steps to reproduce

  1. Set your interface language to Espa帽ol on https://wordpress.com/me/account
  2. Create or select a Simple WPCOM site with the Maywood theme
  3. Create a new page or change the page layout of an existing page.
  4. Attempt to use the Maywood, Shawburn, Twenty Twenty, or Balasana home page layouts.
  5. See broken layouts and various browser console errors. Screenshots below.

What I expected

For page layouts to work across user language settings.

What happened instead

Broken page layouts.

Browser / OS version

Various -- tested across MacOS, Windows, Chrome, and Firefox.

Screenshot / Video

Example of broken page layout:
image

Various console errors:
image

Context / Source

Slack discussion: p1593182066424300-slack-wpcom-support

22195250-hc
#user-report

Page Layouts [Type] Bug

Most helpful comment

This is happening because the translations for the homepages in those four themes are missing for some reason, and it falls back to the default. I opened this issue when I audited the homepage templates: https://github.com/Automattic/wp-calypso/issues/42368.

This is one of the todo items there:

Locate the translations (or make them if it's never translated) for Balasana, Maywood, Shawburn, Twenty Twenty homepages. Test, fix, and deploy the translations so that we stop the confusing experience with the fallback.

All 3 comments

This is happening because the translations for the homepages in those four themes are missing for some reason, and it falls back to the default. I opened this issue when I audited the homepage templates: https://github.com/Automattic/wp-calypso/issues/42368.

This is one of the todo items there:

Locate the translations (or make them if it's never translated) for Balasana, Maywood, Shawburn, Twenty Twenty homepages. Test, fix, and deploy the translations so that we stop the confusing experience with the fallback.

I opened this issue when I audited the homepage templates: #42368.

Excellent! I totally missed that issue already being open.

Was this page helpful?
0 / 5 - 0 ratings