+/* Checks if translated file is updated */
+if ($lang != 'en' && !isset($using_fallback)) {
+
+ if (preg_match('$Revision: 1.88 $', $file_revision, $matches)) {
$Revision 1.88 exactly?
+ $lang_rev = $matches[1];
+ } else {
+ $lang_rev = 0;
+ }
+
+ /* get english file revision */
+ $data = @file_get_contents(FALLBACK_BASE . $filename);
+ if (preg_match('/<!-- .Revision: \d+\.(\d+) . -->/', $data, $matches)) {
+ $en_rev = $matches[1];
+ } else {
+ $en_rev = 0;
+ }
The English file revision should be extracted from the $Revision value. The English revision corresponding to the translated file should be extracted from the EN-Revision header in the translated file. Your extractions are not really doing this.
Goba
