Last modified: 2013-11-01 21:14:22 UTC
Seems uselang hack (http://www.mediawiki.org/wiki/User:Pfctdayelise/Manual:Uselang_hack) not working for all languages Simply why http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=fafromflickr UI is not in Persian while http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=frfromflickr is in french?
Many of the messages are missing a "fafromflickr" translation. For example: https://commons.wikimedia.org/wiki/MediaWiki:Watchthisupload/fafromflickr does not exist. When using the uselang hack, language fallbacks are not used. If a message is missing, the english translation is used. https://commons.wikimedia.org/wiki/MediaWiki:Upload-permitted/fafromflickr does exist, and does not seem to be used. I'm not sure why, maybe something wrong with i18n cache?
Okay. I run http://commons.wikimedia.org/wiki/User:MediaWiki_Update_Bot/commonsmwupdate_specific.py for it and most messages [seems after cache to be purged] will be in Persian but it is far from prefect. For an RTL language [like Hebrew, Arabic, ...], UI must be flipped; compare http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=he and http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=hefromflickr
I don't think we're likely to support setting the page language based on the uselang parameter in the near future. (It is called the uselang *hack*, emphasize the word "hack" for a reason).
Of-course, UploadWizard has most use-cases of Special:Upload so fixing it is important IMO also, but good to be fixed somehow, may with an alternative URL parameter (uilang=fa) or ...
*not :)
I would call it a major bug if Commons' Special:Upload was broken, but it seems the example URL is now ok? The changes related to bug 1495 have taken into account the need not to disrupt Commons and they have been implemented some weeks ago, while your problem is more recent, isn't it?
http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=fafromflickr vs http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=fa definitely not okay and yes its major. IMO hack was not even needed if Special:Upload just had another URL parameter to change MediaWiki:Uploadtext (and may two or three other messages) to custom ones but denying this simple needed feature made Commons community to make completely mess of MediaWiki messages (see http://commons.wikimedia.org/wiki/Special:Contributions/MediaWiki_Update_Bot)
(In reply to comment > IMO hack was not even needed if > Special:Upload just had another URL parameter to change MediaWiki:Uploadtext > (and may two or three other messages) You know, I don't think anyone has ever asked for that before. What are the two or three additional messages you would consider important to override?
I guess it would just be mediawiki:Uploadtext and MediaWiki:Licenses that you would need to be overriden by url parameter?
Yes just these two AFAIK. I guess this needs another specific bug report, I will close it. I hope someone go for fix this mess on Commons MediaWiki message [just because two message].