2000-01-04 04:23:22 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2002-02-27 01:37:22 +08:00
|
|
|
PACKAGE="gimp14-std-plug-ins"
|
|
|
|
PATH="$PATH:.."
|
2000-05-14 05:37:03 +08:00
|
|
|
|
|
|
|
if [ "x$1" = "x--help" ]; then
|
|
|
|
|
|
|
|
echo Usage: ./update.sh langcode
|
|
|
|
echo --help display this help and exit
|
|
|
|
echo
|
|
|
|
echo Examples of use:
|
|
|
|
echo ./update.sh ----- just creates a new pot file from the source
|
|
|
|
echo ./update.sh da -- created new pot file and updated the da.po file
|
|
|
|
|
|
|
|
elif [ "x$1" = "x" ]; then
|
|
|
|
|
|
|
|
echo "Building the $PACKAGE.pot ..."
|
2002-02-27 01:37:22 +08:00
|
|
|
intltool-update --gettext-package $PACKAGE --pot
|
2000-05-14 05:37:03 +08:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "Building the $PACKAGE.pot ..."
|
2002-02-27 01:37:22 +08:00
|
|
|
intltool-update --gettext-package $PACKAGE --pot
|
2000-05-14 05:37:03 +08:00
|
|
|
|
2002-02-27 01:37:22 +08:00
|
|
|
echo "Now merging $1.po with $PACKAGE.pot, and creating an updated $1.po ..."
|
|
|
|
mv $1.po $1.po.old && msgmerge $1.po.old $PACKAGE.pot -o $1.po && rm $1.po.old;
|
2000-05-14 05:37:03 +08:00
|
|
|
msgfmt --statistics $1.po
|
|
|
|
|
2002-02-27 01:37:22 +08:00
|
|
|
fi
|