Skip to content

Commit 7422797

Browse files
committed
Updated translators update to only update if words contributed
Was getting entries for users with just single approvals within Crowdin
1 parent 7060495 commit 7422797

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

meta-scripts/bookstack-update-translators

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ function formatAndWriteOutput(string $reportLocation, array $reportMap, string $
4242

4343
function mergeCsvDataIntoReportMap(array &$reportMap, array $csvData, string $reportDelimiter) {
4444
foreach ($csvData as $csvLine) {
45+
if (intval($csvLine['Target Words']) == 0) {
46+
continue;
47+
}
4548
$name = $csvLine['Name'];
4649
$name = str_replace($reportDelimiter, '', $name);
4750
$languages = explode('; ', $csvLine['Languages']);

0 commit comments

Comments
 (0)