On a multilingual site image works quite nicely now. On default language image node, say image/title, is fine. I change to a non-default language, the link to thumbnail and preview is broken since language path is included, e.g for Swedish:
sv/site/path/to/file
while it should be
/site/path/to/file

It is not easy to say if this bug is already known. Most issues which I have found refer to similar, but not the same problem, such as the transation of the terms Preview and Thumbnail, e.g.
http://drupal.org/node/159423, http://drupal.org/node/70396

As a workaround I would just like to disable these links altogether.

Comments

mokko’s picture

PS: I don't translate my image nodes, i.e. they are not multilingual. When I switch the language, only the menus get translated.

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

The links are made the standard way:

            $links['image_size_'. $key] = array(
229	              'title' => t($size['label']),
230	              'href' => "image/view/{$node->nid}/$key",
231	              'attributes' => array('target' => '_blank'),
232	            );

There's nothing we can do differently here.

Does a multilingual site prefix *every* link it outputs with the language code? If so, this is a bug in core for not allowing modules to have absolute paths.

mokko’s picture

Well, I don't know. My problem certainly looks like it is every link.

I am not sure what I can do and if the error is specific to locale or to internationalization.

joachim’s picture

You should probably file a support request on those modules. If there are any changes to be made in image module, I will make them, but I will need more information from the developers of those modules.

joachim’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Image links work for me when viewing nodes in another language.