From dc1d7880b4dc32a889e760aea2808bdf0c766899 Mon Sep 17 00:00:00 2001 From: Michael Gratton Date: Wed, 9 Oct 2019 10:12:32 +1100 Subject: [PATCH] glib-2.0: Add binding for "gettext()" Despite this actually comes from "libintl.h" refer to "gi18n-lib.h" to trigger GETTEXT_PACKAGE error. Fixes https://gitlab.gnome.org/GNOME/vala/issues/864 --- vapi/glib-2.0.vapi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 7409a6333..d5229327d 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -5448,6 +5448,8 @@ namespace GLib { [Version (since = "2.18")] [CCode (cname = "NC_", cheader_filename = "glib.h,glib/gi18n-lib.h")] public static unowned string NC_ (string context, [FormatArg] string str); + [CCode (cname = "gettext", cheader_filename = "glib/gi18n-lib.h")] + public static unowned string gettext ([FormatArg] string str); [CCode (cname = "ngettext", cheader_filename = "glib.h,glib/gi18n-lib.h")] public static unowned string ngettext (string msgid, [FormatArg] string msgid_plural, ulong n); [Version (since = "2.18")] -- 2.47.2