bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext tools / squeezing whitespace


From: Karl Eichwalder
Subject: Re: gettext tools / squeezing whitespace
Date: Tue, 11 Feb 2003 21:18:23 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Bruno Haible <address@hidden> writes:

> 1) You are using only the msgid part, not really translations. So what
> you actually use are files containing lists of strings. Much more
> general tools should be available (databases etc.).

Yes, but for some reason I prefer to stay with the .po file format for
the moment.  But I'll check out available database solutions.

> 2) You can achieve what you want by abusing the gettext tools in the
> following way. You pipe every input file through 3 filters:
>    a. msgen,
>    b. msgfilter sed -e 's/  */ /g'
>    c. a simple script which converts
>
>           msgid "foo"
>           msgstr "bar"
>
>       into
>
>           msgid "bar"
>           msgstr ""

Yes, I use this approach for merging back the corrections.  But that's
not what is required to solve the special job I described.  For
step c. I'm using an awk script; the interesting part is dealing with
plural form messages ;-)

> 3) Paul Eggert and I are / will be working on a program 'msgdiff'
> which should make the proofreading task for translators easier. A kind
> of "ediff" between PO/POT files. This tool could also be abused for
> your case.

Yes, this could help, but for my special application it would be
overkill.  For sure, the diff'ing feature will help translators.

-- 
address@hidden (work) / address@hidden (home):              |
http://www.gnu.franken.de/ke/                            |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]