Last modified: 2013-11-20 15:22:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57667, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55667 - Wikidata diff shows in a different language
Wikidata diff shows in a different language
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal with 1 vote (vote)
: ---
Assigned To: Wikidata bugs
:
: 55509 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-13 04:02 UTC by The Anonymouse
Modified: 2013-11-20 15:22 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description The Anonymouse 2013-10-13 04:02:35 UTC
This is also related to Extension:Diff (https://www.mediawiki.org/wiki/Extension:Diff), but I think it's being caused by Wikidata Repo.

In some diffs, Wikidata shows the diff in a different language no matter which language the user interface is set to. For example try this link (notice the intentional uselang=en):
https://www.wikidata.org/w/index.php?title=Q2511165&diff=74940737&oldid=74022613?uselang=en The change as well as the properties being changed are in German instead of English. Also, https://www.wikidata.org/w/index.php?title=Q375550&diff=72741582&oldid=72711136&uselang=en is in Finnish.
Comment 1 Lydia Pintscher 2013-10-13 10:05:06 UTC
*** Bug 55509 has been marked as a duplicate of this bug. ***
Comment 2 Addshore 2013-10-14 17:09:14 UTC
Copied from the other bug:

https://www.wikidata.org/w/index.php?title=Q142&diff=75815053&oldid=75551467&uselang=qqx

In the example above the localized message for 'label' is displayed as 'תווית'
no matter what language you choose to display the diff in (even qqx).

Some caching somewhere may be to blame..
Comment 3 Aude 2013-10-27 03:12:09 UTC
I don't know if/how this ever worked properly?  

In MediaWiki core, the diff body "text" gets cached in memcached without any consideration for language.  (there is localisation for the "line number" string, in a somewhat hacky way which happens after diff text is retrieved from cache)

I am not convinced we need full caching, by language, for diffs in all of MediaWiki.

I have split the code [1] that generates the cache key into its own function and deriving DifferenceEngine classes can set the cache key in a different way, as appropriate.

[1] https://gerrit.wikimedia.org/r/#/c/92167/

A follow-up patch would be needed in Wikibase to fix this bug.
Comment 4 Gerrit Notification Bot 2013-10-30 19:56:30 UTC
Change 92167 had a related patch set uploaded by Aude:
Put get diff body cache key into own function

https://gerrit.wikimedia.org/r/92167
Comment 5 Gerrit Notification Bot 2013-10-31 10:32:40 UTC
Change 92167 merged by jenkins-bot:
Put get diff body cache key into own function

https://gerrit.wikimedia.org/r/92167
Comment 6 Gerrit Notification Bot 2013-10-31 11:46:36 UTC
Change 92863 had a related patch set uploaded by Aude:
Split memcached for Wikibase diff view body content by lang

https://gerrit.wikimedia.org/r/92863
Comment 7 Gerrit Notification Bot 2013-11-04 13:47:24 UTC
Change 92863 merged by jenkins-bot:
Split memcached for Wikibase diff view body content by lang

https://gerrit.wikimedia.org/r/92863

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links