Last modified: 2011-01-25 00:46:52 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 T16957, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


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

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

Hello,
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 "http://www.mediawiki.org/wiki/Extension:UploadToWikimediaCommonsTab".
Thanks,
Agbad
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 <https://secure.wikimedia.org>.
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.


Navigation
Links