Jump to:
| Project: | Lightbox2 |
| Version: | 6.x-1.9 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi, when translating a node with a lightbox image, the correct download link is not generated.
Let's say I have a an image located here:
base_url/image_dir/image.jpg
When I view the node in a translation, this type of link is generated in the lightbox:
base_url/lang_code/image_dir/image.jpg
The languagecode should not be inserted, since it's the same image used for all translations.
I am using imagefield with imagecache. If in CCK "display fields" settings, I choose "[imagecache_preset] linked to image", the file path is generated correctly in all language versions, so I guess it is related to Lightbox code. I tried looking in the module code, but I am no PHP expert, so I don't understand what the possible cause might be.
Comments
#1
This has been fixed as part of another issue.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.
#3
I solved this by add t() function here:
file lightbox2.formatter.inc
line 195
- $node_link_text = variable_get('lightbox2_node_link_text', 'View Image Details');
+ $node_link_text = variable_get('lightbox2_node_link_text', t('View Image Details'));
line 199
- $download_link_text = check_plain(variable_get('lightbox2_download_link_text', 'Download Original'));
+ $download_link_text = check_plain(variable_get('lightbox2_download_link_text', t('Download Original')));