Making WordPress.org

Opened 5 months ago

Last modified 5 months ago

#7480 new defect (bug)

Localization changes depending on whether you are logged in or not

Reported by: wildworks's profile wildworks Owned by:
Milestone: Priority: normal
Component: International Sites (Rosetta) Keywords:
Cc:

Description

On wordpress.org's Japanese site, I noticed that the display of the pages under the support directory changes greatly depending on whether the user is logged in or not.

Using https://ja.wordpress.org/support/view/all-topics/ as an example, when a user is logged in, the following problem occurs.

  • Much of the page is not translated
  • Some links change to wordpress.org instead of ja.wordpress.org
  • The updated date and time of the forum are displayed as "sometime ago" and the correct updated date and time are not displayed.

Attachments (2)

logged-in.png (63.3 KB) - added by wildworks 5 months ago.
While logged in
not-logged-in.png (58.9 KB) - added by wildworks 5 months ago.
When not logged in

Download all attachments as: .zip

Change History (6)

@wildworks
5 months ago

While logged in

@wildworks
5 months ago

When not logged in

This ticket was mentioned in Slack in #meta-i18n by wildworks. View the logs.


5 months ago

#2 @tobifjellner
5 months ago

Hi @wildworks
Have you, by any chance, in your .org profile opted for English as your back-end language?

#3 @dd32
5 months ago

get_user_locale() is indeed en_US for both of us (and is for most users), although AFAIK that's not supposed to be respected at all on the front-end of rosetta sites; nor is it consistently applying if so.

Setting mine to de_DE and visiting ja.wordpress.org didn't result in German text though, it was untranslated still. I feel like this is likely a translation filter issue, as this text is translated via filter.

#4 @wildworks
5 months ago

Have you, by any chance, in your .org profile opted for English as your back-end language?

I accessed the support forum dashboard and checked the language of my profile, and it was English. When I changed this to Japanese, I confirmed that the Japanese site was displayed correctly, just like when I was not logged in.

However, even if the profile language is English, it is inconsistent, as it is a mix of Japanese and English, and some of the links do not refer to the ja subdomain.

Note: See TracTickets for help on using tickets.