0
|
1 #!/bin/sh |
|
2 |
|
3 set -o errexit |
|
4 |
|
5 if [ x$1 = x ] ; then |
|
6 LG=fr |
|
7 else |
|
8 LG=`basename $1 .po` |
|
9 fi |
|
10 |
|
11 cd `dirname $0` |
|
12 |
|
13 echo "generation of gui-$LG.mo from gui-$LG.po... " |
|
14 xgettext --keyword="_" --keyword="translate" --language=Perl \ |
|
15 --from-code=iso-8859-1 ../bins-edit-gui |
|
16 #xpot --keyword="_" --keyword="translate" ../bins >messages.po |
|
17 touch gui-$LG.po |
|
18 mv gui-$LG.po gui-$LG.po.old |
|
19 msgmerge gui-$LG.po.old messages.po >gui-$LG.po |
|
20 msgfmt -o gui-$LG.mo gui-$LG.po |
|
21 mv messages.po bins-edit-gui.pot |
|
22 |
|
23 echo "generation of $LG.mo from $LG.po... " |
|
24 xgettext --keyword="_" --keyword="translate" --language=Perl \ |
|
25 --from-code=iso-8859-1 ../bins |
|
26 #xpot --keyword="_" --keyword="translate" ../bins >messages.po |
|
27 touch $LG.po |
|
28 mv $LG.po $LG.po.old |
|
29 msgmerge $LG.po.old messages.po >$LG.po |
|
30 msgfmt -o $LG.mo $LG.po |
|
31 mv messages.po bins.pot |
|
32 |
|
33 echo |
|
34 echo "Now Copy the $LG.mo file to"\ |
|
35 "/usr/local/share/locale/$LG/LC_MESSAGES/bins.mo" |
|
36 |
|
37 echo |
|
38 echo "Now Copy the gui-$LG.mo file to"\ |
|
39 "/usr/local/share/locale/$LG/LC_MESSAGES/bins-edit-gui.mo" |