The "Release version" field can produce error path for downloadable files in some cases

If I entered just a digital value, for example 1, the module generates the following:

domain.com/sites/default/files/l10n_packager/1.x/computed_field/computed_field-1.ru.po

but actually the file stored as

domain.com/sites/default/files/l10n_packager/1/computed_field/computed_field-1.ru.po

It causes 404 error. I think it should be at least noted in field description

Comments

gábor hojtsy’s picture

Interesting, these should actually use the same mechanism to compute the path, so they should not be different. I'll take a look (but unfortunately not right now).

volocuga’s picture

Gábor, since you are most experienced in drupal localization, let me ask you, how to force drupal to load translations automatically during installation for files within "includes" directory? I'm asking around, nobody knows that :(

Sorry for the audacity :(

gábor hojtsy’s picture

Not sure how is that related to this issue? (There should be no .po files in include directories)

good_man’s picture

Could it be l10n_packager_get_filepath() function in l10n_packager.module:

     $core = $major . '.x';
NBZ4live’s picture

Same problem in 7.x-1.x
I made a patch for 7.x in a separate issue: http://drupal.org/node/1896090

SebCorbin’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Closing this one as 6.x is discontinued