[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding an option to xgettext
From: |
Bruno Haible |
Subject: |
Re: Adding an option to xgettext |
Date: |
Wed, 31 Mar 2010 10:30:20 +0100 |
User-agent: |
KMail/1.9.9 |
Hi,
Harvey Chapman wrote:
> [Does this list address even work?]
Yes, and you find the archives at
<http://lists.gnu.org/archive/html/bug-gnu-utils/>.
> Would it be possible to add an option similar to --extract-all that would
> only extract the strings that normally would not match? I'd like to
> generate warnings for any strings found that are not wrapped in a
> gettext-related macro.
You don't need a new xgettext option for this:
1. Run xgettext once, without --extract-all, to get the normal POT file.
2. Run xgettext with --extract-all, to get all strings.
3. Run "msgcomm --less-than=2" on the two POT files, to get the difference,
and see whether the output is empty. You can use option --force-po
to force an empty POT file even if both inputs are the same.
Bruno