/usr/share/doc/claws-mail/tools/update-po is in claws-mail-tools 3.9.3-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | #!/bin/sh
# * Copyright © 2002 Wilbert Berendsen <wilbert@oswf.org>
# *
# * This file is free software; you can redistribute it and/or modify it
# * under the terms of the GNU General Public License as published by
# * the Free Software Foundation; either version 3 of the License, or
# * (at your option) any later version.
# *
# * This program is distributed in the hope that it will be useful, but
# * WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# * General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with this program; if not, write to the Free Software
# * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# *
# update-po -- for Claws Mail
# 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=_ --keyword=Q_ --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
|