Page MenuHomePhabricator

Change in Wikidata localisation is causing JavaScript errors
Closed, ResolvedPublic

Description

Apparently, after changing a translation for ‘edit’ in Russian from ‘редактировать’ to ‘править’ users with Russian interface enabled have started to experience errors with JavaScript. Old parts of the interface (left side) with ‘редактировать’ in their text work as intended, and new ‘править’ ones (that are present in the same interface alongside headings) are redirecting users to non-JavaScript versions.

Is this some very crude caching issue? Can it be fixed for end-users without changing the translation back (since new one is more correct)? I don’t really see what might’ve caused something like this.

Event Timeline

Currently it is impossible to add/remove sitelinks in Russian UI. I would appreciate if someone will look into that as soon as possible

Now I tested to use Russian interface on Wikidata in this page (https://www.wikidata.org/wiki/Q24038596?uselang=ru), and it now works normally. I too had the problems, but I not using Russian interface on Wikidata - I am using English interface.

stjn triaged this task as Low priority.
stjn added a subscriber: Marshmallych.

@Marshmallych, please don’t close my tasks for me in the future.

To provide an update: the specific issue with Russian localisation is gone, but I would still think that Wikidata team would like to prevent such issues in the future. Breaking entire interface for 2 days because of localisation change is not acceptable, in my opinion. Wikidata team could, of course, change the task’s status if they would find this a normal occurrence.

started to experience errors with JavaScript

What errors?

I'm afraid without more details It is unlikely that we will be able to determine why it was happening.

I too had the problems, but I not using Russian interface on Wikidata - I am using English interface.

It's possible that another ticket was filed for this issue?

What errors?

I'm afraid without more details It is unlikely that we will be able to determine why it was happening.

Basically, subheaders had new localisation in edit buttons (‘править’), and all AJAX for them didn’t work at all. Properties had old localisation (‘редактировать’) and AJAX worked for them.

Did a purge of the page fix the issue or did it persist?

all AJAX for them didn’t work at all

As in the AJAX failed, or it wasnt there and you always went to the special pages?

Sounds like something died early on in the JS, but without knowing what was in the JS console this could be pretty hard to identify or link to anything else.

Purge did nothing. No errors were in console as far as I am aware. Any action was being sent to the fallback, yes, so events were probably not subscribing to links with new localisation.

Addshore claimed this task.

I'm not really sure how we can look into this any further without being able to reproduce or having any sort of logs etc.
If it happens again please re open!