manpagez: man pages & more
info gettext
Home | html | info | man

File: gettext.info,  Node: Checking API,  Prev: po_flag_iterator_t API,  Up: libgettextpo

10.13.9 Checking API
--------------------

 -- Function: void po_file_check_all (po_file_t FILE,
          po_xerror_handler_t HANDLER)
     Tests whether the entire FILE is valid, like ‘msgfmt’ does it.  If
     it is invalid, passes the reasons to HANDLER.

 -- 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 at ITERATOR in a PO file in memory,
     like ‘msgfmt’ does it.  If it is invalid, passes the reasons to
     HANDLER.  ITERATOR is 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 MESSAGE is a valid
     format string if the message is marked as being a format string.
     If it is invalid, passes the reasons to HANDLER.

     This function is exported as ‘po_message_check_format_v2’ at ABI
     level, but is defined as ‘po_message_check_format’ in C code after
     the inclusion of ‘’.

© manpagez.com 2000-2026
Individual documents may contain additional copyright information.