Skip to content

Commit 03d0b03

Browse files
committed
[Tool] Don't count column comments as untranslated
1 parent dc93809 commit 03d0b03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/ReleaseTool/ReleaseTool/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ private static Results CleanTranslations(DirectoryInfo dir, DirectoryInfo rootDi
296296
// Don't count MTL
297297
if (file.Name != "zz_machineTranslation.txt")
298298
{
299-
folderPercentage.Total += lines.Count(x => x.Contains('='));
300-
folderPercentage.Translated += lines.Count(x => x.Contains('=') && !x.StartsWith("//"));
299+
folderPercentage.Total += lines.Count(x => x.Contains('=') && !x.EndsWith("=---"));
300+
folderPercentage.Translated += lines.Count(x => x.Contains('=') && !x.StartsWith("//") && !x.EndsWith("=---"));
301301
}
302302
}
303303

0 commit comments

Comments
 (0)