Issue/Motivation
For now we download files that contain unauthorized strings. It happens because of wrong condition in SmartlingTranslator::isReadyForDownload() method.

Possible solution
We should not download file if approvedStringCount equals 0. It means that there are no authorized strings and no translations available.

Comments

Loparev created an issue. See original summary.

soul88’s picture

I believe this still can be a single line of code, which would be better for clarity.

loparev’s picture

StatusFileSize
new959 bytes
new981 bytes
soul88’s picture

I would suggest:

return $request_result['approvedStringCount'] > 0 && $request_result['approvedStringCount'] === $request_result['completedStringCount'];
loparev’s picture

StatusFileSize
new950 bytes
new891 bytes
soul88’s picture

Status: Needs review » Reviewed & tested by the community

  • Loparev committed 49f589e on 8.x-1.x
    Issue #2885843 by Loparev: Wrong check status for files with...
loparev’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.