Branch 'f11-tx' - 2 commits - README

Paul W. Frields pfrields at fedoraproject.org
Thu Apr 9 14:43:11 UTC 2009


 README |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

New commits:
commit 8279aa713d9d4a20d3a437df4f650165ff19a2dd
Author: Paul W. Frields <stickster at gmail.com>
Date:   Thu Apr 9 10:42:46 2009 -0400

    Fix file name problem in commands

diff --git a/README b/README
index 9c0e5e4..dd56e4d 100644
--- a/README
+++ b/README
@@ -29,7 +29,7 @@ single PO file, which is highly undesirable.)
 for LANG in `cat po/LINGUAS`; do
     for POTFILE in pot/*.pot; do
     	msgmerge po/${LANG}.po ${POTFILE} | msgattrib --no-obsolete \
-		 > ${LANG}/$(basename ${POTFILE})
+		 > ${LANG}/$(basename ${POTFILE} .pot).po
     done
 done
 


commit 664109c24d2a705b6e87119c7f527a7fbed4c410
Author: Paul W. Frields <stickster at gmail.com>
Date:   Thu Apr 9 10:41:53 2009 -0400

    Add instructions for rebuilding separate POT files

diff --git a/README b/README
new file mode 100644
index 0000000..9c0e5e4
--- /dev/null
+++ b/README
@@ -0,0 +1,36 @@
+README for f11-tx branch
+========================
+
+(This README may have information useful for the 'master' or other
+branches.  Merge if necessary.)
+
+
+Converting PO
+-------------
+
+Once the translation deadline is reached, the PO files must be
+converted into the multiple-PO format required by Publican.  The
+gettext library already has utilities to do this -- in particular,
+msgmerge and msgattrib.  The 'msgmerge' command will be used to
+extract the matching translations from the single, large PO file that
+apply to each separate, smaller PO file for Publican.  The 'msgattrib'
+utility will be used to strip out the many non-applicable
+translations, which otherwise would sit at the end of each separate PO
+file as "obsolete" messages.  (In other words, without 'msgattrib',
+the size of each separate PO file would be about the same as the
+single PO file, which is highly undesirable.)
+
+#!/bin/bash
+#
+# Turn all single PO into separate PO for Publican
+# * Relies on po/LINGUAS to be correct!
+# * Make sure you're in the top of the module with the 'po/' folder.
+
+for LANG in `cat po/LINGUAS`; do
+    for POTFILE in pot/*.pot; do
+    	msgmerge po/${LANG}.po ${POTFILE} | msgattrib --no-obsolete \
+		 > ${LANG}/$(basename ${POTFILE})
+    done
+done
+
+





More information about the Fedora-docs-commits mailing list