Bug 21395: Fix creation of PO file
authorJulian Maurice <julian.maurice@biblibre.com>
Mon, 29 Jun 2020 12:57:11 +0000 (16:57 +0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 29 Jun 2020 13:43:41 +0000 (15:43 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

misc/translator/tmpl_process3.pl

index 0f7b3a2..45a9b6e 100755 (executable)
@@ -379,7 +379,7 @@ if ($action eq 'create')  {
         open(my $infh, '<', $tmpfile2);
         open(my $outfh, '>', $str_file);
         while (<$infh>) {
-        print $outfh;
+        print $outfh $_;
         last if /^\n/s;
         }
         close $infh;