diff --git a/html/ops/build_po.php b/html/ops/build_po.php index d0e79736b4..4687cdc94d 100755 --- a/html/ops/build_po.php +++ b/html/ops/build_po.php @@ -31,10 +31,11 @@ $header = <<\\n" +"Report-Msgid-Bugs-To: BOINC translation team \\n" "POT-Creation-Date: $date\\n" "Last-Translator: Generated automatically from source files\\n" "MIME-Version: 1.0\\n" @@ -42,15 +43,19 @@ msgstr "" "Content-Transfer-Encoding: 8bit\\n" "X-Poedit-SourceCharset: utf-8\\n" + HDR; -$out = fopen("en.po", "w"); +$out = fopen("en.pot", "w"); + fwrite($out, $header); + $pipe = popen( - "xgettext --omit-header -o - --keyword=tra -L PHP --no-location $FILE_LIST", + "xgettext --omit-header -o - --keyword=tra -L PHP $FILE_LIST", "r" ); stream_copy_to_stream($pipe, $out); + fclose($pipe); fclose($out);