Last modified: 2011-09-23 00:19:34 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 T32834, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30834 - Result in Japanese despite german/ english language settings
Result in Japanese despite german/ english language settings
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CategoryTree (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 19151 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-09 11:26 UTC by Rainer Rillke @commons.wikimedia
Modified: 2011-09-23 00:19 UTC (History)
1 user (show)

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


Attachments

Description Rainer Rillke @commons.wikimedia 2011-09-09 11:26:13 UTC
Hello, I encountered strange behavior of /index.php?action=ajax on commons for the category tree.
Expanding "Ticket machines in China (1 K)" returns the results in Japanese. And this is not my language setting.
For example on http://commons.wikimedia.org/wiki/Category:Ticket_machines_by_country

Here is the query my browser sends with AJAX: http://commons.wikimedia.org/w/index.php?action=ajax&rs=efCategoryTreeAjaxWrapper&rsargs[]=Ticket_machines_in_China&rsargs[]=%7B%22mode%22%3A%200%2C%20%22hideprefix%22%3A%2020%2C%20%22showcount%22%3A%20true%2C%20%22namespaces%22%3A%20false%7D&rsargs[]=json

And it returns ... <span title="1サブカテゴリ、0ページ、2ファイルを含んでいます">(1カテゴリ、2ファイル)</span> ...

RoanKattouw gets Japanese too.
Comment 1 Brion Vibber 2011-09-09 20:57:40 UTC
I also get this... Probably a caching issue?

Not an HTTP cache issue -- different URLs return the same -- but I suspect memcache.

CategoryTreeFunctions::ajax() builds a memcache key for the rendered data like this:

		$mckey = wfMemcKey( "categorytree(" . $this->getOptionsAsCacheKey( $depth ) . ")", $dbkey, $wgContLang->getExtraHashOptions(), $wgRenderHashAppend );

You will notice that this doesn't include the output language!
Comment 2 Brion Vibber 2011-09-09 21:13:26 UTC
r96693 on trunk

Merged to:
r96694 on 1.18
r96695 on 1.17
r96696 on 1.17wmf1, will need deployment.
Comment 3 Brion Vibber 2011-09-23 00:19:34 UTC
*** Bug 19151 has been marked as a duplicate of this bug. ***

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


Navigation
Links