Mercurial > bins
view intl/generate_mo.sh @ 10:f962189bab94
Added tag 1.1.29.e2 for changeset 0f248ad86f9f
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Thu, 16 Oct 2008 00:16:50 +0200 |
parents | a84c32f131df |
children |
line wrap: on
line source
#!/bin/sh set -o errexit if [ x$1 = x ] ; then LG=fr else LG=`basename $1 .po` fi cd `dirname $0` echo "generation of gui-$LG.mo from gui-$LG.po... " xgettext --keyword="_" --keyword="translate" --language=Perl \ --from-code=iso-8859-1 ../bins-edit-gui #xpot --keyword="_" --keyword="translate" ../bins >messages.po touch gui-$LG.po mv gui-$LG.po gui-$LG.po.old msgmerge gui-$LG.po.old messages.po >gui-$LG.po msgfmt -o gui-$LG.mo gui-$LG.po mv messages.po bins-edit-gui.pot echo "generation of $LG.mo from $LG.po... " xgettext --keyword="_" --keyword="translate" --language=Perl \ --from-code=iso-8859-1 ../bins #xpot --keyword="_" --keyword="translate" ../bins >messages.po touch $LG.po mv $LG.po $LG.po.old msgmerge $LG.po.old messages.po >$LG.po msgfmt -o $LG.mo $LG.po mv messages.po bins.pot echo echo "Now Copy the $LG.mo file to"\ "/usr/local/share/locale/$LG/LC_MESSAGES/bins.mo" echo echo "Now Copy the gui-$LG.mo file to"\ "/usr/local/share/locale/$LG/LC_MESSAGES/bins-edit-gui.mo"