[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: improvement feature for msgmerge
From: |
Karl Eichwalder |
Subject: |
Re: improvement feature for msgmerge |
Date: |
Tue, 28 Sep 2004 10:04:14 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
Pablo Saratxaga <address@hidden> writes:
> however, when doing "msgmerge -C big.po old.po template.pot > new.po"
> if "old.po" has some fuzzy entries, they will be kept, even if
> translated versions exist in big.po
Using msgattrib/msgcat you can work around this limitation.
1/ Save all fuzzies:
msgattrib --only-fuzzy --force-po -o fuzzies.po old.po
2/ Update fuzzies:
msgcat --use-frist -o unfuzzied.po big.po fuzzies.po
3/ Make the original file fuzzy free:
msgattrib --force-po --no-fuzzy -o fuzzy-free.po old.po
4/ Finally merge it using fuzzies.po as an additional catalog:
msgmerge -C big.po -C unfuzzied.po -o new.po fuzzy-free.po template.pot
Or something along these lines - untested thus far. Other scenarios are
also possible.
> it would be nice to have an --overwrite-fuzzy parameter so that
> if there is a translated entry in one of the -C files, it will
> overwrite a fuzzy entry in old.po, eg:
>
> msgmerge --overwrite-fuzzy -C big.po old.po template.pot > new.po
I admit such an option would be nice esp. when large files are involved.