i18n support not working?
Elroy - January 9, 2008 - 11:08
| Project: | Brilliant Gallery |
| Version: | 5.x-2.7 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I have a problem setting up galleries on my site which uses Internationalization and Translation modules. When Internationalization is enabled the images can't be found, when I disable the i18n modules, the images are found.
I've noticed that the url for the images changes when the i81n is disabled from
http://xxxx/nl/files/album/DSC04394.jpg
to

#1
The problem is already kwon and a solution was proposed
http://drupal.org/node/183821?mode=2&sort=2
For the same reason you have to change in brilliant_gallery.module line 261
$path = url(file_directory_path() . '/' . $galleryfolder, NULL, NULL, TRUE);
with
$path = file_directory_path() . '/' . $galleryfolder;
#2
I have the same problem. The code in the brillian_gallery.module is as follows:
$path = url(file_directory_path() .'/'. $galleryfolder, array('absolute' => TRUE));# url() ads i18n codes to the URL ... we need to remove them here...
if ($langcode <> '') {
$path = str_replace('/'. $langcode .'/', '/', $path);
}
# Non-clean URLs need removing ?q=
But this code does not work with Internet Explorer. Works fine with Firefox and Chrome. But when I try to open it with IE it includes the language code just before the /module/ in the path.
I am using Drupal 6.3.