When clicking on a Drupal core translation file at http://localize.drupal.org/download the translation file is opened in the web browser (tested with Firefox, Safari and Chrome). This behavior is unexpected and not good, because the user expects a download to start. We actually force the user to save the file from a browser window, which might cause all kinds of further problems...
This problem was also mentioned in #882164: Adding a language help page during installation is incorrect comment #89.
I think the PHP header() function could make it work to force the downloading of .po files. But I am not sure...
Comments
Comment #1
Gábor HojtsyThis is in fact controlled in the HTTP server that is running on ftp.drupal.org. These files are not at all served from PHP. There is even no PHP running on that server that I know. Moving to the right queue.
Comment #2
nnewton CreditAttribution: nnewton commentedThis is a mime type issue. I'll have to open an issue with the OSL as its their FTP infrastructure.
-N
Comment #3
Gábor HojtsyThanks, perfect!
Comment #4
juan_g CreditAttribution: juan_g commentedA quick fix, maybe temporary, could be to add a brief note like "Right click and select Save link as... or Save target as..."
Comment #5
Gábor HojtsyI think this works well now for most languages, right?
Comment #6
juan_g CreditAttribution: juan_g commentedFor .po files, left-click download works on IE8, but we need right-click on Firefox 3.6.10 and Chrome.
Comment #7
Gábor HojtsyJust marked #1061336: Encoding of .po -files a duplicate of this issue which was highly related. Here is the text:
Comment #8
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedI've opened a ticked with OSL for this ([support.osuosl.org #18499] ).
Comment #9
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedOSL has modified this, seems to work for me.
Comment #10
reglogge CreditAttribution: reglogge commentedI'm still getting the mis-encoded file displayed in a browser window in Safari 5.0.3/Mac. In Firefox, Chrome and IE8 it works correctly now (I'm getting a prompt for downloading the file).
Comment #11
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedHmm, yeah, so we file a patch against Safari? :p
Comment #12
eliza411 CreditAttribution: eliza411 commentedVerified that the .po files are still opening in Safari. I'm going to unassign this from nnewton for now so that someone else might pick it up.
Comment #13
Mixologicbasic/nnewton both have reach into OSL to see about getting this fixed. - Assigning.
Comment #15
basic CreditAttribution: basic at Drupal Association commentedThis appears to have been resolved with the migration to Fastly and Nginx for ftp.drupal.org, hooray!