12

It's all Greek to me.

Or rather, Russian. Behold my profile preferences:

sidebar of Preferences page is Russian, while the rest is English

How do I fix this? Or is it a bug?

11
  • 1
    Which site(s)? I can't reproduce, but on Stack Overflow на русском I do have the reverse problem: i.sstatic.net/Dl5HO.jpg
    – Glorfindel Mod
    Commented Aug 24, 2021 at 19:47
  • @Glorfindel From the screenshot's colors, it appears to be Russian Language in Russian. That said, on that site, I get the same behavior as you: the sidebar is in English. Commented Aug 24, 2021 at 19:52
  • @SonictheAnonymousHedgehog wait, I recognize the site icon now, it's Genealogy & Family History.
    – Glorfindel Mod
    Commented Aug 24, 2021 at 19:54
  • 2
    To the author: it would have been nice if you'd included details on the report, such as the site you're experiencing it on, in your initial post. I got your sites mixed up and I'm certain the staff would have been confused as well. Commented Aug 24, 2021 at 19:58
  • 8
    Yup, this one's on me. We're on it! I'll answer once the fix is out.
    – Ben Kelly StaffMod
    Commented Aug 24, 2021 at 19:58
  • 1
    @BenKelly Is the bug Glorfindel mentioned above where the English sidebar appears on Russian sites included in the above fix as well? Also, can this please get a status-planned? Commented Aug 24, 2021 at 20:04
  • 1
    @SonictheAnonymousHedgehog The site is in the title... Commented Aug 24, 2021 at 20:20
  • If you want to be pedantic: my comment mentions that you should be the one to include details, and they should be in the initial post (i.e. revision 1). Commented Aug 24, 2021 at 20:22
  • 1
    Sorry, @SonictheAnonymousHedgehog, I assumed it wasn't site specific -- Genealogy etc. isn't so important to be targeted by individual bugs! Commented Aug 24, 2021 at 20:25
  • 3
    I don't see a problem :) Doesn't everyone know Russian these days? Commented Aug 24, 2021 at 20:43
  • 2
    @AntonMenshov English, French, German, Latinate languages... Will add Russian to my list, but a little after Chinese, I'm afraid :) Commented Aug 24, 2021 at 21:02

1 Answer 1

12

Thank you for the report. A fix has been committed and is now live.

The root cause of the issue was due to (drumroll please)... caching! As part of some work done to prepare the user profile settings nav for a responsive design, I introduced a bit of code to bring this very old area up-to-date with how we create settings navigations on other parts of the site. Part of this change is the ability to cache how the navigation is built, which will give us a bit of a performance boost on the server side of things.

Now, this is all well and good, except I also included the text strings in this cached object :facepalm:. This meant that the very first site to cache the built settings nav also cached the text in that site's language. The result is that when you visit another site, it'll also show the nav in the cached language. In other words, if the first site request that hit the server since the change rolled out was a Russian-language site, it would show in Russian for everyone in all site requests against that server; similarly, if the first site request that hit that server since the change was an English-language site, it would show in English even on the international sites.

The fix was pretty simple - don't cache the text as a string, but instead as a getter function that fetches the correct value at runtime.

1
  • There are only two sites of 178 that language is Russian, hence the probability of choosing such site is just ~1%. Or it's all actions of Russian hackers. Commented Aug 26, 2021 at 6:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .