[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gettext: adding comments/keywords and grepping for those
From: |
Karl Eichwalder |
Subject: |
gettext: adding comments/keywords and grepping for those |
Date: |
Sat, 16 Feb 2002 08:07:37 +0100 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) |
Here's a feature request.
Maintaining compendium files it would be nice to have the possibility to
add user defined keywords as comments. 'msgattrib' looks like a
candidate for such an enhancement. Then 'msggrep' can learn to look
through comments, too.
OTOH, for adding comments 'sed' might be good enough:
sed -e '/^$/a\
# Date: 2002-02-16' de.po
But how to extract those marked messages? Using 'awk':
awk '/^# Date: 2002-02-16/ { p = 1 }
{ if (p == 1) print }
/^$/ { p = 0 } ' de.po
Perhaps a little bit fragile.
--
address@hidden (work) / address@hidden (home): |
http://www.suse.de/~ke/ | ,__o
Free Translation Project: | _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/ | (*)/'(*)
- gettext: adding comments/keywords and grepping for those,
Karl Eichwalder <=