Last modified: 2011-01-25 00:46:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14957 - New extension: "Upload To Wikimedia Commons Tab"
New extension: "Upload To Wikimedia Commons Tab"
Status: RESOLVED DUPLICATE of bug 5283
Product: MediaWiki extensions
Classification: Unclassified
Extensions requests (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-07-28 09:42 UTC by Agbad
Modified: 2011-01-25 00:46 UTC (History)
2 users (show)

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

The patch's code (5.04 KB, patch)
2008-07-28 09:42 UTC, Agbad
The new patch, without the hebrew translating (4.55 KB, patch)
2008-07-28 09:49 UTC, Agbad

Description Agbad 2008-07-28 09:42:45 UTC
Created attachment 5098 [details]
The patch's code

I have a patch's code for new extension: "Upload To Wikimedia Commons Tab".
I'll be happy if you will check the code, fix its and upload its.
Please say me when the extension will upload to MediaWiki, for I'll make the page "".
Comment 1 Agbad 2008-07-28 09:49:03 UTC
Created attachment 5099 [details]
The new patch, without the hebrew translating

I uploaded the new patch without the hebrew translating, without problems in that translating.
Comment 2 Max Semenik 2008-07-28 09:58:48 UTC
A few comments:
1) That long condition "if ( $interface != 'ar' && $interface != 'en'..." is unmaintainable. It should be replaced with an array and in_array() call or something like that.
2) It doesn't support the Wikimedia secure server <>.
3) English in i18n is a bit broken.
4) From CommonsHelper's main page: "ATTENTION: For technical reasons, most non-ASCII characters in filenames will be "ASCIIfied". Some asian characters will break altogether. Fix is on the to-do list."
Comment 3 Chad H. 2008-07-28 13:11:06 UTC
A few more notes:
1) Typos in defined(), $wgAvailableRights[] and wfLoadExtensionMessages()
2) Putting $wgExtensionCredits[] in your hook function will cause it to not be loaded on Special:Version. Code within showTabUploadtocommons() is only executed when the SkinTemplateContentActions hook is called.
3) Your logic with descriptionmsg won't work if you move it outside the function, so I suggest dropping the "No work" version.
Comment 4 Brion Vibber 2008-07-28 23:53:11 UTC
It looks like what this does is add a tab to pass off a file to the 'Move to commons' toolserver utility.

I'd much rather see a "native" tool here which does the same job, but inside MediaWiki, making use of global accounts for seamless session transfer, and avoiding the hardcoded checks for the source project's site.
Comment 5 Siebrand Mazeland 2008-11-03 21:46:35 UTC
Removed keyword 'patch', as the solution was rejected. Please provide a patch taking comment 4 into account.
Comment 6 Guillaume Paumier 2009-12-29 20:59:08 UTC
Looks like there is no actual proposed extension; the larger issue (easily moving files to Commons) already has a dedicated feature request.

Closing accordingly as duplicate of bug 5283

*** This bug has been marked as a duplicate of bug 5283 ***

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