From 37d8c0b4e1240bfbe411de4f9dfb21c31bfdc0a9 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 24 Jun 2015 15:42:30 -0400 Subject: [PATCH] HTML: Make sure BOINC-Project-Generic.pot contains comments. --- doc/build_po.php | 2 +- html/ops/build_po_boinc.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/build_po.php b/doc/build_po.php index 44ca8177c8..cfa4452ce1 100755 --- a/doc/build_po.php +++ b/doc/build_po.php @@ -39,8 +39,8 @@ $out = fopen("BOINC-Web.pot", "w"); fwrite($out, $header); stream_copy_to_stream($pipe, $out); -fclose($pipe); +fclose($pipe); fclose($out); echo "Created BOINC-Web.pot. If it's OK, move it to ../locale/templates and commit\n"; diff --git a/html/ops/build_po_boinc.php b/html/ops/build_po_boinc.php index 25da5b5604..f6ec683be1 100755 --- a/html/ops/build_po_boinc.php +++ b/html/ops/build_po_boinc.php @@ -38,14 +38,14 @@ msgstr "" HDR; +$pipe = popen( + "xgettext --omit-header --add-comments -o - --keyword=tra -L PHP $FILE_LIST", + "r" +); + $out = fopen("BOINC-Project-Generic.pot", "w"); fwrite($out, $header); - -$pipe = popen( - "xgettext --omit-header -o - --keyword=tra -L PHP $FILE_LIST", - "r" -); stream_copy_to_stream($pipe, $out); fclose($pipe);