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

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

What about empty msgctxt?


From: Chusslove Illich
Subject: What about empty msgctxt?
Date: Fri, 28 Nov 2008 14:08:06 +0100
User-agent: KMail/1.9.5

As it is now, if the code contains pgettext call with empty context, the
resulting POT will contain empty msgctxt field. Of course, code should not
use empty contexts, but it may happen occasionally; this will then confuse
PO processing tools which make no difference between no context and empty
context (which I find to be natural assumption, and simplifying APIs) until
the offending empty-context is removed from the code. (Unfortunatelly, not
speaking hypothetically -- a problem of this kind iced two unrelated PO
processors, and made some people loop trying to figure out what's going
on...)

So I'm wondering if empty contexts should be, and to what extent, prevented
already on the level of Gettext's own tools. I'd personally crack on empty
contexts hard: xgettext to issue warnings and not extract such calls at all,
and msgfmt and msgmerge to consider empty msgctxt field a fatal error (in
case xgettext was not used to extract POT).

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

Attachment: pgpUOvgHSQ3ad.pgp
Description: PGP signature


reply via email to

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