Skip to content
This repository was archived by the owner on Jul 27, 2024. It is now read-only.

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy