Scripts currently used by the Kurdish team

Source: https://wiki.ubuntu.com/JoeyStanford/MyUbuntu/OpenOffice-EO-FAQs

  • First, you have to save all the .po files from Rosetta into one directory and concatenate them all together:
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 

Tim's method for busting out the .po files from Rosetta back to normal

  1. Download the ~10 large .po files from Rosetta and put them in a directory together
  2. Join them together with:
     $ msgcat `find . -name "*.po"` > allRosetta.po 
  3. Extract the archive somewhere (pot and sdf!)
  4. Copy and paste the script below into a file and save it as rosetta2ooo
#!/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 
  1. chmod +x rosetta2ooo to make executable
  2. Run rosetta2ooo ~/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.

  3. po2oo -i pot -t en-US.sdf -o 2.0.4-ku.sdf -l ku 

sdf > po > sdf

  1.  oo2po --multifile=onefile -i GSI_ku.sdf -o ku_all.po -l ku
  2. rojanekirin/sererastkirina pela po
  3.  po2oo --multifile=onefile -i ku_all.po -t en-US.sdf -o GSI_ku_new.sdf -l ku 
 
wergerandin/tim_morley.txt · Guherandina dawî: 2006/10/22 12:31 by 80.135.90.253
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki