[Scummvm-git-logs] scummvm-tools master -> 80871e4587df31216a3fee1757e2ed51a518c7d2

sev- sev at scummvm.org
Fri May 18 18:52:58 CEST 2018


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:
80871e4587 TOOLS: PRINCE: Improved POT file output


Commit: 80871e4587df31216a3fee1757e2ed51a518c7d2
    https://github.com/scummvm/scummvm-tools/commit/80871e4587df31216a3fee1757e2ed51a518c7d2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2018-05-18T18:52:41+02:00

Commit Message:
TOOLS: PRINCE: Improved POT file output

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


diff --git a/engines/prince/gen-po.pl b/engines/prince/gen-po.pl
index a2df664..7fc747d 100644
--- a/engines/prince/gen-po.pl
+++ b/engines/prince/gen-po.pl
@@ -26,6 +26,17 @@ our %data_ids;
 our $lang = $ARGV[0];
 my $poldir = $ARGV[1];
 
+my $git = "<unknown>";
+
+open GIT, "git describe --tags |" or warn "Can't run git";
+
+$git = <GIT>;
+
+close GIT;
+
+chomp $git;
+
+
 print <<EOF;
 # The Prince and the Coward lanugage file
 # Copyright (C) 2018 ScummVM Team
@@ -45,7 +56,7 @@ msgstr ""
 "Content-Type: text/plain; charset=UTF8\\n"
 "Content-Transfer-Encoding: 8bit\\n"
 "Plural-Forms: nplurals=2; plural=n != 1;\\n"
-"X-Generator: Weblate 2.9\\n"
+"X-Generator: gen-po.pl $git\\n"
 EOF
 
 process_talk_ids $lang, "talktxt_ids.txt";
@@ -119,6 +130,7 @@ EOF
 	}
 }
 
+print "\n\n# Missing: $miss_tr  Extra: $extra_tr" if ($miss_tr || $extra_tr);
 warn "Missing: $miss_tr  Extra: $extra_tr" if ($miss_tr || $extra_tr);
 
 exit;





More information about the Scummvm-git-logs mailing list