From 13cc42ad2e5bb5914bb8127d0834e846b5ede580 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 14 May 2009 21:03:21 +0000 Subject: [PATCH] make compatible with Pootle svn path=/trunk/boinc/; revision=18108 --- html/ops/build_po.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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);