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

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

Re: Add gettext headers


From: Chusslove Illich
Subject: Re: Add gettext headers
Date: Fri, 14 Nov 2008 14:52:28 +0100
User-agent: KMail/1.9.5

>> [: Claude Paroz :]
>> "X-DamnedLies-Source: http://l10n.gnome.org/POT/eog.HEAD/eog.HEAD.pot";
>> [...]
>> Is this possible with a gettext tool, or do we have to manipulate the po
>> file programmatically ?
>
> [: Bruno Haible :]
> Not much is missing for 'msgfilter' to do it.

How about making it a standard header field (suitably named, of course),
which is set by xgettext in the template, and carried over by msgmerge?

A while back on Translation-i18n I proposed what could be termed a
complement to this:

http://sourceforge.net/mailarchive/forum.php?thread_name=200709102357.41427.caslav.ilic%40gmx.net&forum_name=translation-i18n

The, let's call it, Template-Source header field would then contain
information needed for updating the catalog, while Source-Root field would
contain information needed to lookup code context; this would fully define
the "support" of a PO file, e.g. allowing a clever PO editor to
automatically update catalog and show code context to the translator.
(Actually, to fully close this construct, source reference rewrite is needed
as well; that's the // xgettext-srcref: ... snippet from the above link.)

-- 
Chusslove Illich (Часлав Илић)

Attachment: pgpdG9b9OEjJa.pgp
Description: PGP signature


reply via email to

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