For example i have two language(english, german)

If i upload images to english page and after it i wanna translate this node the uploaded images wont be shown on german page.

Comments

mibfire’s picture

grandcat answer?

grandcat’s picture

Category: bug » support
Priority: Critical » Normal

Please check whether your CCK display options are correct.

mibfire’s picture

nooo!!! When i wanna translate the node and i am in the edit view!!! images that i uploaded wont be on translated page. The original imagefield perfectly works when i upload a image i can see this image the translated page without i would have had to upload the image.

grandcat’s picture

nooo!!!

Calm down.
Never tested it for multiple languages. If there's a bug, please provide a more detailed description.

mibfire’s picture

What more detailed information should i provide to u? I dont understand because if u set a multilanguage page u will see the problem.

jaspervp’s picture

To see the bug do the following:

1) create a nodetype with translation enabled and add imagefield with fupload
2) create a new node,select a language and upload a picture.
3) go to the new node and create translation

what you see : the fupload flash button
what you expected to see: an image field with the previous uploaded picture (which is the behavior if you use the default upload module)

I think the problem is that drupal sees a translated page as new node and therefore shows the fupload widget.

grandcat’s picture

I think the problem is that drupal sees a translated page as new node and therefore shows the fupload widget.

This is correct. This has to be the problem. I'm trying to check on this.

mibfire’s picture

Grandcat can u make a patch asap?, bacause i have a tone of images and i dont wanna upload these one by one. Thx!

grandcat’s picture

Not sure because I'm concentrating on development of D7 version. This is really a lot of work, so I can't promise.

moonray’s picture

Subscribing. Having the same issue. There's no way to circumvent the multiple file upload at present.

moonray’s picture

Status: Active » Needs review

There's a pretty simple fix (I'm just not sure it's the right way to do it, with translation stuff).
Basically add a check for the translation string in the url empty($_GET['translation']).

Change line 64:

<?php
// check whether image fupload widget is still chosen as widget and permission things
    if ($field['widget']['type'] == "image_fupload_imagefield_widget" && arg(3) != "noflash" && arg(3) != "list_imagefields" && user_access('mass upload images')) {
?>

to:

<?php
// check whether image fupload widget is still chosen as widget and permission things
    if ($field['widget']['type'] == "image_fupload_imagefield_widget" && arg(3) != "noflash" && arg(3) != "list_imagefields" && empty($_GET['translation']) && user_access('mass upload images')) {
?>
grandcat’s picture

I don't think this is a clean solution.

moonray’s picture

Status: Needs review » Needs work

Might using _locale_translate_seek_query() be the better way to go? It is a private function, though...

juves’s picture

Assigned: Unassigned » juves

May be it's easier to make FUpload compatible with "FileField Sources" Modul? So we can use existing Images for new translation.

i need a solution :(

same issues:

grandcat’s picture

Assigned: juves » Unassigned
divined’s picture

just change code on -
- image_fupload/image_fupload_imagefield/image_fupload_imagefield.module
on line 105 to:

if (!isset($form['#node']->nid) && !isset($form['#node']->translation_source)) {

brei9000’s picture

Divined, I get the following error:

Warning: Call-time pass-by-reference has been deprecated in /path.../node_import/node_import.inc on line 1971

vthirteen’s picture

ugly workaround, might apply to some production cases:
- enable i18n's sync translation submodule and check the desired cck field in multilanguage options in admin/content/node-type
- publish your node in language A without uploading any image
- translate node in language A to language B
- edit node in language A and upload images, node in language B will regularly update

apiko’s picture