From: Paul Mangan Date: Mon, 24 Jun 2002 08:31:43 +0000 (+0000) Subject: add script that eases the creation of *.po files X-Git-Tag: new_cache_last_merge~21 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=8da57140b82c5f42878fb332f0edc61351279d2d;hp=f6ccc75a6eddbb23e0db3a3637268438e0fbb4f9 add script that eases the creation of *.po files --- diff --git a/ChangeLog.claws b/ChangeLog.claws index ef9391a0b..2bb967d27 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,11 @@ +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 + 2002-06-23 [alfons] 0.7.8claws19 * src/messageview.c diff --git a/configure.in b/configure.in index 233a8e0b8..ae37ade0b 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ MINOR_VERSION=7 MICRO_VERSION=8 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws19 +EXTRA_VERSION=claws20 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/tools/Makefile.am b/tools/Makefile.am index fb0f0fa5f..fc6394814 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -9,6 +9,7 @@ EXTRA_TOOLS = \ sylpheed-switcher \ sylprint.pl \ sylprint.rc \ + update-po \ uudec EXTRA_DIST = \ diff --git a/tools/README b/tools/README index 5bc397268..2e7460bdd 100644 --- a/tools/README +++ b/tools/README @@ -210,4 +210,27 @@ ----------------------------------------------------------------------- +* 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 .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 + +----------------------------------------------------------------------- + diff --git a/tools/update-po b/tools/update-po new file mode 100644 index 000000000..ee270be16 --- /dev/null +++ b/tools/update-po @@ -0,0 +1,49 @@ +#!/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 - < $po + done + +else + + echo + echo "Usage:" + echo + echo " ./`basename $0` lang.po lang2.po ..." + echo + echo "to update one or more .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