浏览代码

issue #2584 - added a counter

Tommaso Basilici 10 年之前
父节点
当前提交
38cfbe4897
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      dev/translation/sanity_check_en_langfiles.php

+ 5 - 2
dev/translation/sanity_check_en_langfiles.php

@@ -175,14 +175,17 @@ foreach ($langstrings_3d AS $filename => $file) {
 	}
 }
 
-echo "<h2>Duplicate strings in lang files in $workdir</h2>";
+echo "<h2>Duplicate strings in lang files in $workdir - ".count($dups)." found</h2>";
 echo "<pre>";
 
 echo "<table border_bottom=1> ";
-echo "<thead><tr><th>String</th><th>File and lines</th></thead>";
+echo "<thead><tr><th align=\"center\">#</th><th>String</th><th>File and lines</th></thead>";
 echo "<tbody>";
+$count = 0;
 foreach ($dups as $string => $pages) {
+	$count++;
 	echo "<tr>";
+	echo "<td align=\"center\">$count</td>";
 	echo "<td>$string</td>";
 	echo "<td>";
 	foreach ($pages AS $page => $lines ) {