6

For questions, (like this one), where multiple posts use tags like #English or #日本語 to provide multiple language versions, if I click on the language toggle (eg "English" to switch to the English version of a post), the actual contents of other multi-language posts disappear entirely. However, the meta-information and language toggle buttons remain on these other posts.

Work-around: clicking one of the language buttons of a "disappeared" post will restore its contents.

More details: For "disappeared" posts, none of the language buttons is underlined, which suggests maybe the problem is that post is being rendered in a "null" language for which there is no data.

| |
  • 1
    reproduced, looking – m0sa Jun 28 '16 at 7:20
3

TL;DR

There was an issue in the japanese-l-u.js script. The fixed script will be available as soon as build rev 2016.6.28.3711 rolls out.

Detective work

The $.each function returns String objects as this when using it to iterate over an object.

jquery each on object

Furthermore, the above is a result of .bind/.apply/.call operations on a string primitive in JavaScript:

javascript bind to string

And of course, calling the equals operator on two String objects, even though they have the same value, returns false:

comparison

The fix was pretty straightforward:

fix

| |
  • Thanks for the rapid response and the detective work! I'll retest and mark accept once the change rolls out (assuming my memory doesn't fail me) – WeirdlyCheezy Jun 28 '16 at 15:43
  • 1
    @WeirdlyCheezy updated script is deployed, and working as expected on the example post – m0sa Jun 28 '16 at 16:38
  • Working on my end as well. Many thanks ! – WeirdlyCheezy Jun 28 '16 at 16:39

You must log in to answer this question.

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