When translating audio node (with i18n) there is a request to upload a file
tzippy - June 23, 2009 - 21:36
| Project: | Audio |
| Version: | 6.x-1.0-unstable4 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi,
I'm using a multiligual site. When I'm trying to translate the audio nodes, I'm getting the message "A file must be provided. If you tried uploading a file, make sure it's less than the upload size limit." While it should be that the "new" traslated node will work with the file that already uploaded, like it is in other node types.

#1
After checking again - the synchronized translation isn't helping too, because the audio non - standard fields doesn't apear there at all.
#2
I checked more about it, what need to be done is to add the audio file field to the synchronized translation (via settings.php). What I need now is to know the name of the field, so I can do it.
#3
I have managed to solve this.
Changing settings.php never worked for me for some reason. I had to modify the i18nsync.module instead:
if (module_exists('upload')) {
$options['files'] = t('File attachments');
}
// after this upload module checking block (line # 431-433) I added the following:
if (module_exists('audio')) {
$options['audio'] = t('Audio attachments');
$options['audio_tags'] = t('Audio tags');
}
There may be some other more elegant way to solve this but this is what works for me.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.