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

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

feature request: expose message validation in libgettextpo


From: James Henstridge
Subject: feature request: expose message validation in libgettextpo
Date: Mon, 29 Aug 2005 17:30:38 +0800
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050727)

The libgettextpo library provides a po_message_check_format() function
for performing format string checking on a po_message_t.  However this
is not the only message validity check that the gettext tools perform.

The msgfmt program performs some other checks, such as consistent use of
newlines at the beginning and end of strings.

A po_message_validate() function that performed all these checks would
be useful to programs that use libgettextpo to generate or edit PO
files.  As it is now, such applications either need to reimplement the
checks or omit them and risk producing broken PO files (and
reimplementing the checks is not ideal -- if gettext gets new checks,
the application needs to be updated too).

James.




reply via email to

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