[Scummvm-git-logs] scummvm-tools master -> 182323988609a7757faaf8b036e1e4173641f53a

sev- sev at scummvm.org
Mon Mar 9 18:12:08 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-tools' repo located at https://github.com/scummvm/scummvm-tools .

Summary:
1823239886 PRINCE: Added sanity check to translated postfixes


Commit: 182323988609a7757faaf8b036e1e4173641f53a
    https://github.com/scummvm/scummvm-tools/commit/182323988609a7757faaf8b036e1e4173641f53a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-03-09T19:11:44+01:00

Commit Message:
PRINCE: Added sanity check to translated postfixes

Changed paths:
    engines/prince/po-parse.pl


diff --git a/engines/prince/po-parse.pl b/engines/prince/po-parse.pl
index 14e4bc64b..ea215e2aa 100644
--- a/engines/prince/po-parse.pl
+++ b/engines/prince/po-parse.pl
@@ -95,12 +95,19 @@ for my $f (keys %data) {
 		} else {
 			my $pref1;
 			my $pref2;
-			($pref1) = ($data{$f}{$k} =~ /^([P#HEROT1234567890\$]+:)/);
-			($pref2) = ($data1{$f}{$k} =~ /^([P#HEROT1234567890\$]+:)/);
+			($pref1) = ($data{$f}{$k} =~ /^([P#HEROT0-9\$]+:)/);
+			($pref2) = ($data1{$f}{$k} =~ /^([P#HEROT0-9\$]+:)/);
 
 			if ($pref1 cmp $pref2) {
 				warn "Incorrect prefix in $f:$k: $pref1 != $pref2";
 			}
+
+			($pref1) = ($data{$f}{$k} =~ /([#EDBXF0-9]+)$/);
+			($pref2) = ($data1{$f}{$k} =~ /([#EDBXF0-9]+)$/);
+
+			if ($pref1 cmp $pref2) {
+				warn "Incorrect postfix in $f:$k: $pref1 != $pref2";
+			}
 		}
 	}
 }




More information about the Scummvm-git-logs mailing list