Source: https://wiki.ubuntu.com/JoeyStanford/MyUbuntu/OpenOffice-EO-FAQs
msgcat `find . -name "*.po"` > allRosetta.po
Pay attention to the (`), it’s not a (’), though why?
po2oo -i <folder-with-po-files> -t en-US.sdf -o <name-of-GSI-format-file> -l <Locale-name>
in our case:
po2oo -i pot -t en-US.sdf -o 2.0.4-ku.sdf -l ku
$ msgcat `find . -name "*.po"` > allRosetta.po
#!/bin/bash
# =======================================
# first parameter: root of directory tree containing empty .pot files
# second parameter: giant .po file containing all translations from Rosetta
# =======================================
# This script was written to merge translation work done in Rosetta
# into the ~250 .po files required to commpile OpenOffice.org
# =======================================
for f in `find $1 -name "*.pot"`; do tempfile=`dirname $f`/temp.po; msgmerge -N $2 $f > $tempfile; awk '$1 !~ /^#~/ {print $0} $1 ~ /^#~/ {exit}' $tempfile > `dirname $f`/`basename $f pot`po; rm $tempfile; done
chmod +x rosetta2ooo to make executablerosetta2ooo ~/pot_root/ ./allRosetta.po where ~/pot_root/ is where you extracted the .pot files to, and ./allRosetta.po is the gigantic everything-from-Rosetta file. Example: ./rosetta2ooo ./pot/ ./allRosetta.po
This will create new po-files in ./pot, in the same directory as the pot-templates.
po2oo -i pot -t en-US.sdf -o 2.0.4-ku.sdf -l ku
oo2po --multifile=onefile -i GSI_ku.sdf -o ku_all.po -l ku
po2oo --multifile=onefile -i ku_all.po -t en-US.sdf -o GSI_ku_new.sdf -l ku