Check if tasks were created for uploaded files
When uploading files in the project creation form we need to make sure to create tasks for the files even if memoq did not create them (or trados).
so after
callback im_project_after_file_upload -project_id $project_id -type_id $project_type_id -status_id [im_project_status_potential]
make sure to run through each uploadedFiles and check if we have a trans_task created for this file. If not, create the trans_task for it (without word counts). Alternatively you can also check for all files in the source folder and create the trans tasks for them.
Expected result:
- For each file uploaded we have trans tasks for each of the target languages
- If an analysis already exists from trados, memoq... use this analysis => do not overwrite the task or add the file twice.
Uploading the files (without successful callbacks or if none are enabled) should have the same effect as if you upload the file for all target languages under http://demo.fud.cognovis.de/intranet-translation/trans-tasks/task-list?project%5fid=2384127&view%5fname=trans%5ftasks - Action "New Source File"