Hi.
I was setting up a Ubercart multilingual website, and was astonished to see that the module does not work for translation forms.
Indeed, we have linte 66 :
// Don't change form when node is being prepared for translation
if (!empty($form["#node"]->translation_source)) {
return;
}
Which means PWT is skipped in this sort of forms.
Honestly I don't know why... For me we should only not auto generate the sku in these forms as it has been already generated (but I work with a synchronizing module, so it is a bit different).
Comments
Comment #1
millenniumtreeUm, why is it skipping PWT for translations?
I am auto generating the SKU (node ID only) and now my translations won't translate (it says SKU is a required field).
Comment #2
ermannob commentedI'm going to comment that out and report if any problems arise.
Comment #3
gigi_igig commentedI've same problem , have you solved commenting these lines?
Comment #4
Anonymous (not verified) commentedI have the same problem with the 7.x-dev version of Power Tools. Commenting out the portion of code does the trick. Is there any reason for this implementation? I don't understand why one would want to have auto generated SKU's for original language nodes and not for translated nodes.
Comment #7
stefan.r commentedCommented out in 6.x, 7.x