>From 41c60c23676b2ea1ce3d81e0701862d93906e7d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= Date: Tue, 7 May 2019 20:11:51 +0200 Subject: [PATCH 16/17] doc: Update po_message_t API (VI) * gettext-tools/doc/gettext.texi (po_message_t API): Add previous message contents accessors po_message_prev_msgctxt, po_message_set_prev_msgctxt, po_message_prev_msgid, po_message_set_prev_msgid, po_message_prev_msgid_plural, and po_message_set_prev_msgid_plural documentation. --- gettext-tools/doc/gettext.texi | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi index 48f84d2ac..e57c9939b 100644 --- a/gettext-tools/doc/gettext.texi +++ b/gettext-tools/doc/gettext.texi @@ -5625,6 +5625,50 @@ comments of @var{message} to the value @var{extracted_comments}, a multiline string, ending in a newline, or a address@hidden empty string. @end deftypefun address@hidden {const char *} po_message_prev_msgctxt (po_message_t @var{message}) +The @code{po_message_prev_msgctxt} function returns the previous address@hidden, the previous context of @var{message}. Return address@hidden for a message that does not have a previous context. address@hidden deftypefun + address@hidden {void} po_message_set_prev_msgctxt (po_message_t @var{message},@ + const char address@hidden) +The @code{po_message_set_prev_msgctxt} function changes the previous address@hidden, the context of the message, to the value provided +through @var{prev_msgctxt}. The value @code{NULL} removes the stored +previous msgctxt. address@hidden deftypefun + address@hidden {const char *} po_message_prev_msgid (po_message_t @var{message}) +The @code{po_message_prev_msgid} function returns the previous address@hidden (untranslated English string) of @var{message}, or address@hidden if there is no previous @code{msgid} stored. address@hidden deftypefun + address@hidden {void} po_message_set_prev_msgid (po_message_t @var{message},@ + const char address@hidden) +The @code{po_message_set_prev_msgid} function changes the previous address@hidden (untranslated English string) of @var{message} to the value +provided through @var{prev_msgid}, or removes the message when it is address@hidden address@hidden deftypefun + address@hidden {const char *} po_message_prev_msgid_plural (po_message_t @var{message}) +The @code{po_message_prev_msgid_plural} function returns the previous address@hidden (untranslated English plural string) of address@hidden, a message with plurals, or @code{NULL} for a message +without plural without any stored previous @code{msgid_plural}. address@hidden deftypefun + address@hidden {void} po_message_set_prev_msgid_plural (po_message_t @var{message},@ + const char address@hidden) +The @code{po_message_set_prev_msgid_plural} function changes the +previous @code{msgid_plural} (untranslated English plural string) of a +message to the value provided through @var{prev_msgid_plural}, or +removes the stored previous @code{msgid_plural} if @code{NULL} is +provided as @var{prev_msgid_plural}. address@hidden deftypefun + @deftypefun {int} po_message_is_obsolete (po_message_t @var{message}) The @code{po_message_is_obsolete} function returns true when @var{message} is marked as obsolete. -- 2.21.0