If you change the path structure for generated packages, the packager will save the files not in the default location.
But the links on the download page will be generated with the default structure.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1896090-5-l10n_packager_download_url.patch | 3.55 KB | SebCorbin |
| #2 | l10n_server-fixed_download_links-1896090-2.patch | 2.92 KB | NBZ4live |
| #1 | l10n_server-fixed_download_links-1896090.patch | 1.75 KB | NBZ4live |
Comments
Comment #1
NBZ4live commentedHere is the patch. Now the File API is used to get the download url from the stream uri.
Comment #2
NBZ4live commentedHere new patch. Forgot about the download table on the language view pages.
Comment #3
SebCorbin commentedFor front-facing URI, we need to build the url according to the setting of "Root URL for translation downloads" in packaging settings.
This is used on localize.drupal.org to prefix urls with http://ftp.drupal.org/files/translations. I suggest we modify the behavior this way:
If root url is defined, build the url as before. If it's empty, use the file uri and file_create_url() function.
Comment #4
NBZ4live commentedI would suggest to move the uri generation to a separate function.
I will make a new patch.
Comment #5
SebCorbin commentedHere's a new patch (added hook_flush_caches so that cache can be unvalidated by admin)
Comment #6
SebCorbin commentedComment #7
SebCorbin commentedCommitted as tests are green and tested manually