GNU gettext utilities: Checking API
From Get docs
Gettext/docs/latest/Checking-API
Previous: Format Type API, Up: libgettextpo [Contents][Index]
9.13.8 Checking API
- Function
- void po_file_check_all (po_file_t file, po_xerror_handler_t handler)
- Tests whether the entire
fileis valid, likemsgfmtdoes it. If it is invalid, passes the reasons tohandler.
- Function
- void po_message_check_all (po_message_t message, po_message_iterator_t iterator, po_xerror_handler_t handler)
- Tests
message, to be inserted atiteratorin a PO file in memory, likemsgfmtdoes it. If it is invalid, passes the reasons tohandler.iteratoris not modified by this call; it only specifies the file and the domain.
- Function: void po_message_check_format (po_message_t message, po_xerror_handler_t handler)
Tests whether the message translation from
messageis a valid format string if the message is marked as being a format string. If it is invalid, passes the reasons tohandler.This function is exported as ‘
po_message_check_format_v2’ at ABI level, but is defined aspo_message_check_formatin C code after the inclusion of ‘<gettext-po.h>’.