]> git.ipfire.org Git - thirdparty/gettext.git/commit
libgettextpo: New function po_message_get_format.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Sep 2025 11:20:39 +0000 (13:20 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Sep 2025 11:20:39 +0000 (13:20 +0200)
commitf5fd381b40b8e5a0f93d6c69edb63a09f08b35d2
tree7953257d37e2e52660b01096905d43cff7adbfa6
parent1f89fa1de8a83084ca98ca3635e7d1fbb3795b6d
libgettextpo: New function po_message_get_format.

Reported by Alexander Potashev <aspotashev@gmail.com> in
<https://savannah.gnu.org/bugs/?67485>.

* gettext-tools/libgettextpo/gettext-po.in.h (po_message_get_format): New
declaration.
* gettext-tools/libgettextpo/gettext-po.c (po_message_get_format): New function.
* gettext-tools/tests/gettextpo-1-prg.c (main): Test the return value of
po_message_get_format. Add a test case of po_message_set_format with value -1.
* gettext-tools/doc/gettext.texi (po_message_t API): Document
po_message_get_format.
* NEWS: Mention the change.
NEWS
gettext-tools/doc/gettext.texi
gettext-tools/libgettextpo/gettext-po.c
gettext-tools/libgettextpo/gettext-po.in.h
gettext-tools/tests/gettextpo-1-prg.c