+2002-06-24 [paul] 0.7.8claws20
+
+ * tools/Makefile.am
+ tools/README
+ tools/update-po ** NEW FILE **
+ add script that eases the creation of *.po files
+ Submitted by Wilbert Berendsen <wilbert@oswf.org>
+
2002-06-23 [alfons] 0.7.8claws19
* src/messageview.c
-----------------------------------------------------------------------
+* update-po
+
+ WHAT IT DOES
+
+ This script is a message catalog translator's tool, it updates the .po
+ files named on the command line.
+
+ HOW TO USE IT
+
+ This script needs to be copied to and run from the 'po' directory.
+
+ ./update-po lang.po lang2.po ...
+
+ to update one or more <yourlang>.po files from the sourcecode files
+ named in POTFILES.in. The old .po file is save in a .po.old file.
+
+ For example, when you want to update fr.po, run ./update-po fr.po,
+ then edit fr.po to update your translation.
+
+ Author: Wilbert Berendsen <wilbert@oswf.org>
+
+-----------------------------------------------------------------------
+
--- /dev/null
+#!/bin/sh
+
+# update-po -- for Sylpheed
+# by Wilbert Berendsen
+# This script updates the .po files named on the command line.
+# Run this script from within the po/ directory!
+
+if [ "$1" -a -f "$1" ] ; then
+
+
+ #
+ # Make a messages.pot file containing all the msgid's from
+ # the source
+
+ make -C .. -f - <<EOF
+
+sources = \$(shell cat po/POTFILES.in)
+po/messages.pot: \$(sources) po/POTFILES.in
+ xgettext --keyword=N_ --keyword=_ --file=po/POTFILES.in \
+ --output=po/messages.pot
+EOF
+
+ #
+ # Update all the xx.po files named on the commandline.
+
+ for po in $@ ; do
+
+ # Save xx.po in xx.po.old
+
+ cp $po $po.old
+ echo "Updating $po..."
+ msgmerge $po.old messages.pot > $po
+ done
+
+else
+
+ echo
+ echo "Usage:"
+ echo
+ echo " ./`basename $0` lang.po lang2.po ..."
+ echo
+ echo "to update one or more <yourlang>.po files from the sourcecode files"
+ echo "named in POTFILES.in. The old .po file is save in a .po.old file."
+ echo
+ echo "When you e.g. want to update fr.po, run ./`basename $0` fr.po, then"
+ echo "edit fr.po to update your translation."
+ echo
+
+fi