diff --git a/checkin_notes b/checkin_notes index b105fe8608..b1e6eaeb71 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4257,3 +4257,6 @@ Rom 30 Apr 2009 ViewStatistics.cpp ViewTransfers.cpp ViewWork.cpp + +David 1 May 2009 + - removed outdated translation files; updated template diff --git a/doc/build_po.php b/doc/build_po.php new file mode 100755 index 0000000000..406e5b9c5f --- /dev/null +++ b/doc/build_po.php @@ -0,0 +1,46 @@ +#!/usr/bin/php +\\n" +"POT-Creation-Date: $date\\n" +"Last-Translator: Generated automatically from source files\\n" +"MIME-Version: 1.0\\n" +"Content-Type: text/plain; charset=utf-8\\n" +"Content-Transfer-Encoding: 8bit\\n" +"X-Poedit-SourceCharset: utf-8\\n" + +HDR; + +$out = fopen("BOINC-Web.pot", "w"); +fwrite($out, $header); +$pipe = popen("xgettext --omit-header -o - --keyword=tra -L PHP --no-location $path/*.inc $path/*.php", "r"); +stream_copy_to_stream($pipe, $out); +fclose($pipe); +fclose($out); + +// msgen duplicates everything. +// Don't need this. Just rename to en.po + +//system("msgen -o $path/html/languages/translations/en.po $path/html/languages/translations/web.pot"); + +echo "Created BOINC-Web.pot. Move it to ../locale/templates\n"; +?> diff --git a/doc/index.php b/doc/index.php index 751cb9802f..4694c683c1 100644 --- a/doc/index.php +++ b/doc/index.php @@ -213,6 +213,7 @@ function language_form() {