diff --git a/build_pos b/build_pos new file mode 100755 index 0000000000..c54221f23e --- /dev/null +++ b/build_pos @@ -0,0 +1,30 @@ +#! /usr/bin/env php + diff --git a/clientgui/build_po b/clientgui/build_po index a7d213b79c..47362864aa 100755 --- a/clientgui/build_po +++ b/clientgui/build_po @@ -1,4 +1,5 @@ #! /bin/sh -xgettext --keyword=_ -C -o ../locale/templates/BOINC-Manager.pot *.cpp msw/*.cpp mac/*.cpp gtk/*.cpp - \ No newline at end of file +xgettext --from-code=UTF-8 --keyword=_ -C -o BOINC-Manager.pot *.cpp msw/*.cpp mac/*.cpp gtk/*.cpp + +../tools/compare_pot BOINC-Manager.pot ../locale/templates/BOINC-Manager.pot davea@ssl.berkeley.edu diff --git a/html/ops/build_po_boinc.php b/html/ops/build_po_boinc.php index e9ad2c870f..25da5b5604 100755 --- a/html/ops/build_po_boinc.php +++ b/html/ops/build_po_boinc.php @@ -38,7 +38,7 @@ msgstr "" HDR; -$out = fopen("en.po", "w"); +$out = fopen("BOINC-Project-Generic.pot", "w"); fwrite($out, $header); @@ -51,8 +51,6 @@ stream_copy_to_stream($pipe, $out); fclose($pipe); fclose($out); -system("mv en.po ../../locale/templates/BOINC-Project-Generic.pot\n"); - echo "Done\n"; ?> diff --git a/tools/compare_pot b/tools/compare_pot new file mode 100755 index 0000000000..2bd1c7006f --- /dev/null +++ b/tools/compare_pot @@ -0,0 +1,36 @@ +#! /usr/bin/env php +