Last modified: 2013-11-27 21:25:38 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 T59052, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57052 - Upload of Fundación Joaquín Díaz files
Upload of Fundación Joaquín Díaz files
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
wmf-deployment
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-14 12:35 UTC by Platonides
Modified: 2013-11-27 21:25 UTC (History)
6 users (show)

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


Attachments

Description Platonides 2013-11-14 12:35:25 UTC
Please mass upload to commons the files from Fundación Joaquín Díaz, freed through WM-ES.
User to perform the upload: [[User:Fundación Joaquín Díaz]]

Images and descriptions: http://archivos.wikimedia.org.es/wikimedia/es/iniciativas/fotos-fjd.zip

Note: the descriptions are in ISO-8859-1, not utf-8
Comment 1 Sam Reed (reedy) 2013-11-16 00:07:41 UTC
(In reply to comment #0)
> Note: the descriptions are in ISO-8859-1, not utf-8

Nothing like making life difficult when importImages.php doesn't offer differing encoding support

Having them in the same folder is preferred (though easily fixed), as is having the wikitext files to be the extension replaced with txt. Though, using "jpg.txt" is easily enough done too.

Found: 2764
Added: 2764


We now have numerous files with screwed up encoding in the descriptions...
Comment 2 Platonides 2013-11-27 21:25:38 UTC
> Nothing like making life difficult when importImages.php doesn't offer
> differing encoding support

I considered the addition of utf8_encode() to the script previous to running it to be trivial :(

--- a/maintenance/importImages.php
+++ b/maintenance/importImages.php
@@ -214,3 +214,3 @@
                                } else {
-                                       $commentText = file_get_contents( $f );
+                                       $commentText = utf8_encode( file_get_contents( $f ) );
                                        if ( !$commentText ) {


I converted the filenames to utf-8, though.



> Having them in the same folder is preferred (though easily fixed), as is
> having the wikitext files to be the extension replaced with txt. Though, using
> "jpg.txt" is easily enough done too.

Sorry. Although "jpg.txt" format is also supported
https://git.wikimedia.org/blob/mediawiki%2Fcore/b8a720c5e6322de4311024d0769be9996b699edb/maintenance%2FimportImages.inc#L77


> We now have numerous files with screwed up encoding in the descriptions...

Descriptions have been fixed. Closing bug.

Thanks for your work

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


Navigation
Links