I am unable to download incomplete translations from the Lingotek TMS. When I attempt to download translations, I see the following notification message:
"0 translations downloaded."
There are no errors logged in the Watchdog log, but there are a couple of notices. Here is the first one:
[api]
getProgressReport
API URL: https://myaccount.lingotek.com/lingopoint/api/4/getProgressReport
Response Time: 2,703 ms
Request Params:
Array
(
[documentId] => Array
(
[0] => f437fe5f-13da-4476-a235-b8f530154921
)
[externalId] => [REDACTED]
)
Response:
stdClass Object
(
[workflowIncompletedByDocumentId] => stdClass Object
(
[f437fe5f-13da-4476-a235-b8f530154921] => stdClass Object
(
[status] => NOT_FOUND
)
)
[byTargetLocale] => stdClass Object
(
[it_IT] => 30
[es_ES] => 32
[fr_FR] => 28
[pt_PT] => 30
[de_DE] => 32
)
[workflowCompletedByDocumentIdAndTargetLocale] => stdClass Object
(
[f437fe5f-13da-4476-a235-b8f530154921] => stdClass Object
(
[it_IT] =>
[es_ES] =>
[fr_FR] =>
[pt_PT] =>
[de_DE] =>
)
)
[byDocumentIdAndTargetLocale] => stdClass Object
(
[f437fe5f-13da-4476-a235-b8f530154921] => stdClass Object
(
[it_IT] => 30
[es_ES] => 32
[fr_FR] => 28
[pt_PT] => 30
[de_DE] => 32
)
)
[results] => success
[errors] => stdClass Object
(
)
)
FUNCTION: request
ARGS: ["getProgressReport",{"documentId":["f437fe5f-13da-4476-a235-b8f530154921"],"externalId":"[REDACTED]"}]
FILE: /code/drupal/sites/all/modules/contrib/lingotek/lib/Drupal/lingotek/LingotekApi.php:1174
[api]
getDocumentProgress
API URL: https://myaccount.lingotek.com/lingopoint/api/4/getDocumentProgress
Response Time: 471 ms
Request Params:
Array
(
[documentId] => f437fe5f-13da-4476-a235-b8f530154921
[externalId] => [REDACTED]
)
Response:
stdClass Object
(
[documentUid] => f437fe5f-13da-4476-a235-b8f530154921
[name] => Italy Registration Phase Two.xml
[id] => 47887865
[percentComplete] => 30
[translationTargets] => Array
(
[0] => stdClass Object
(
[readyToDownload] =>
[matchSentences] => 0
[language] => de_DE
[id] => 91820747
[percentComplete] => 32
[targetStatus] => In Progress
[matchWords] => 0
[phases] => Array
(
[0] => stdClass Object
(
[isReady] => 1
[name] => Leverage TM
[isMarkedComplete] => 1
[id] => 120307688
[percentComplete] => 100
[type] => PREFILL
[order] => 1
)
[1] => stdClass Object
(
[isReady] => 1
[name] => Younique Translate
[isMarkedComplete] =>
[id] => 120307689
[percentComplete] => 65
[type] => TRANSLATION
[order] => 2
)
[2] => stdClass Object
(
[isReady] =>
[name] => Younique Review
[isMarkedComplete] =>
[id] => 120307690
[percentComplete] => 0
[type] => REVIEW
[order] => 3
)
)
)
[1] => stdClass Object
(
[readyToDownload] =>
[matchSentences] => 0
[language] => fr_FR
[id] => 91820746
[percentComplete] => 28
[targetStatus] => In Progress
[matchWords] => 0
[phases] => Array
(
[0] => stdClass Object
(
[isReady] => 1
[name] => Leverage TM
[isMarkedComplete] => 1
[id] => 120307685
[percentComplete] => 100
[type] => PREFILL
[order] => 1
)
[1] => stdClass Object
(
[isReady] => 1
[name] => Younique Translate
[isMarkedComplete] =>
[id] => 120307686
[percentComplete] => 57
[type] => TRANSLATION
[order] => 2
)
[2] => stdClass Object
(
[isReady] =>
[name] => Younique Review
[isMarkedComplete] =>
[id] => 120307687
[percentComplete] => 0
[type] => REVIEW
[order] => 3
)
)
)
[2] => stdClass Object
(
[readyToDownload] =>
[matchSentences] => 0
[language] => pt_PT
[id] => 91820745
[percentComplete] => 30
[targetStatus] => In Progress
[matchWords] => 0
[phases] => Array
(
[0] => stdClass Object
(
[isReady] => 1
[name] => Leverage TM
[isMarkedComplete] => 1
[id] => 120307682
[percentComplete] => 100
[type] => PREFILL
[order] => 1
)
[1] => stdClass Object
(
[isReady] => 1
[name] => Younique Translate
[isMarkedComplete] =>
[id] => 120307683
[percentComplete] => 61
[type] => TRANSLATION
[order] => 2
)
[2] => stdClass Object
(
[isReady] =>
[name] => Younique Review
[isMarkedComplete] =>
[id] => 120307684
[percentComplete] => 0
[type] => REVIEW
[order] => 3
)
)
)
[3] => stdClass Object
(
[readyToDownload] =>
[matchSentences] => 0
[language] => es_ES
[id] => 91820743
[percentComplete] => 32
[targetStatus] => In Progress
[matchWords] => 0
[phases] => Array
(
[0] => stdClass Object
(
[isReady] => 1
[name] => Leverage TM
[isMarkedComplete] => 1
[id] => 120307678
[percentComplete] => 100
[type] => PREFILL
[order] => 1
)
[1] => stdClass Object
(
[isReady] => 1
[name] => Younique Translate
[isMarkedComplete] =>
[id] => 120307679
[percentComplete] => 65
[type] => TRANSLATION
[order] => 2
)
[2] => stdClass Object
(
[isReady] =>
[name] => Younique Review
[isMarkedComplete] =>
[id] => 120307681
[percentComplete] => 0
[type] => REVIEW
[order] => 3
)
)
)
[4] => stdClass Object
(
[readyToDownload] =>
[matchSentences] => 0
[language] => it_IT
[id] => 91820742
[percentComplete] => 30
[targetStatus] => In Progress
[matchWords] => 0
[phases] => Array
(
[0] => stdClass Object
(
[isReady] => 1
[name] => Leverage TM
[isMarkedComplete] => 1
[id] => 120307675
[percentComplete] => 100
[type] => PREFILL
[order] => 1
)
[1] => stdClass Object
(
[isReady] => 1
[name] => Younique Translate
[isMarkedComplete] =>
[id] => 120307676
[percentComplete] => 61
[type] => TRANSLATION
[order] => 2
)
[2] => stdClass Object
(
[isReady] =>
[name] => Younique Review
[isMarkedComplete] =>
[id] => 120307677
[percentComplete] => 0
[type] => REVIEW
[order] => 3
)
)
)
)
[results] => success
[sourceLanguage] => en_US
)
1. Set up a content type to be translated with "Professional Translation" profile.
2. Set up auto-upload and auto-download.
3. Set up the callback URL.
4. Upload a node for translation.
5. Make sure the node is not "Marked Complete" in the TMS.
6. Attempt to download the node.
Expected: The node will download correctly.
Actual: The node does not download.
Either fix the bug preventing incomplete nodes from downloading, or re-add the ability (which previously existed prior to this version of the module) for users to download incomplete translations.
Closed: outdated
7.45
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.