~ubuntu-branches/ubuntu/karmic/openoffice.org-l10n/karmic

« back to all changes in this revision

Viewing changes to debian/convert2po

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-04-27 19:29:22 UTC
  • Revision ID: james.westby@ubuntu.com-20060427192922-2dburxv3b63f8v0u
Tags: 2.0.2-2ubuntu5
* Copy of the openoffice.org source.
  - debian/control.in: Change source name.
  - debian/changelog: Change source name.
  - debian/control: Regenerate control file.
* Add kurdish translations exported from Rosetta (2006-04-18).
* Workaround bad message strings in recently included GSI files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
        d=${f%*.sdf}
16
16
        mkdir -p ../$d $d
17
17
        if [ "$lc" = en-US ]; then
18
 
            oo2po -P --multifile=onefile $f -o $d
19
 
            mv $d/$d.pot ../$d/$d.pot
 
18
            oo2po -P --progress=names --multifile=onefile -o ../$d/$d.pot $f
20
19
        else
21
 
            oo2po --multifile=onefile -l $lc $f -o $d
22
 
            mv $d/$d.po ../$d/$lc.po
 
20
            oo2po --progress=names --multifile=onefile -l $lc -o ../$d/$lc.po $f
23
21
        fi
24
22
        rmdir $d
25
23
    done
36
34
    $basedir/../splitgsi $basedir/export/GSI_$lc.sdf $basedir/$lc
37
35
    cd $basedir/$lc
38
36
    for f in *.sdf; do
39
 
        d=${f%*.sdf}
40
 
        echo $d
41
 
        rm -rf $d
42
 
        mkdir $d
43
 
        cp -l ../$d/$lc.po $d/$d.po
44
 
        po2oo --multifile=onefile -l $lc -i $d/ -o ${f}2 -t $f
45
 
        rm -rf $d
 
37
        d=${f%*.sdf}
 
38
        [ -f ../$d/$lc.po ] || continue
 
39
        echo $d
 
40
        cp -p $d.sdf $d.oo
 
41
        po2oo --multifile=onefile -l $lc -i ../$d/$lc.po -o ${f}2 -t $d.oo
 
42
        rm -f $d.oo
46
43
    done
47
44
    cd - >/dev/null
48
45
}