[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gettext] feature request: --use-first option for msgmerge
From: |
Benno Schulenberg |
Subject: |
[gettext] feature request: --use-first option for msgmerge |
Date: |
Wed, 05 Sep 2007 23:06:45 +0200 |
User-agent: |
KMail/1.9.7 |
Hi,
When updating an existing PO file and wishing to replace any
existing translations with ones from a compendium, one has to use
the roundabout way of 'msgcat'. To preserve everything else as is
and just change the msgstrs that are different in the compendium,
I'm using the following ugly script:
# Standardize the messages for the second argument, using the
# first argument as a compendium and the third argument as POT.
grep -m1 -B555 '^$' $2 >/tmp/po-header &&
msgcat --use-first --no-wrap /tmp/po-header \
$1 $2 >/tmp/po-catalog &&
msgmerge --no-wrap /tmp/po-catalog $3 >/tmp/po-new &&
grep -m1 -B22222 '^#~ msg' /tmp/po-new | sed '$d' | sed '$d'
Whereas I would like to simply do:
msgmerge --use-first --no-wrap -C $1 $2 $3
Is such a --use-first option to msgmerge feasible?
Benno
- [gettext] feature request: --use-first option for msgmerge,
Benno Schulenberg <=