update.php: Synchronize with latest updatelang output
diff --git a/update.php b/update.php
index e9b08c6..e4ce51d 100755
--- a/update.php
+++ b/update.php
@@ -87,24 +87,25 @@
list($lastrev, $lastupdate) = getlastupdated($lang);
$stat = array('name' => $lang, 'total' => 0, 'missing' => 0, 'desc' => 0, 'source' => 0, 'dest' => 0, 'destdup' => 0, 'voice' => 0, 'voicedup' => 0, 'last_update' => $lastupdate, 'last_update_rev' => $lastrev);
foreach(explode("\n", $output) as $line) {
- if (preg_match('/### This phrase below was not present/', $line) || // DELETEME
- preg_match('/### This phrase is missing entirely/', $line)) {
+ if (preg_match('/### This phrase is missing entirely/', $line)) {
$stat['missing']++;
- } elseif (preg_match('/### The <source> section differs/', $line) || // DELETEME
- preg_match("/### The <source> section for '.*' is missing/", $line) ||
+ } elseif (preg_match("/### The <source> section for '.*' is missing/", $line) ||
preg_match("/### The <source> section for '.*' differs/", $line)) {
$stat['source']++;
- } elseif (preg_match("/### The 'desc' field differs/", $line) || // DELETEME
- preg_match("/### The 'desc' field for '.*' differs/", $line) ||
+ } elseif (preg_match("/### The 'desc' field for '.*' differs/", $line) ||
preg_match("/### The 'user' field for '.*' differs/", $line)) {
$stat['desc']++;
} elseif (preg_match("/### The <dest> section for '.*' is missing/", $line) ||
- preg_match("/### The <dest> section for '.*' is blank/", $line)) {
+ preg_match("/### The <dest> section for '.*' is blank/", $line) ||
+ preg_match("/### The <dest> section for '.*' is not blank/", $line) ||
+ preg_match("/### The <dest> section for '.*' has incorrect/", $line)) {
$stat['dest']++;
} elseif (preg_match("/### The <dest> section for '.*' is identica/", $line)) {
$stat['destdup']++;
} elseif (preg_match("/### The <voice> section for '.*' is missing/", $line) ||
- preg_match("/### The <voice> section for '.*' is blank/", $line)) {
+ preg_match("/### The <voice> section for '.*' is blank/", $line) ||
+ preg_match("/### The <voice> section for '.*' is not blank/", $line) ||
+ preg_match("/### The <voice> section for '.*' has suspicious/", $line)) {
$stat['voice']++;
} elseif (preg_match("/### The <voice> section for '.*' is identical/", $line)) {
$stat['voicedup']++;