From: Michael Gratton Date: Tue, 8 Oct 2019 23:12:32 +0000 (+1100) Subject: glib-2.0: Add binding for "gettext()" X-Git-Tag: 0.47.1~102 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fmerge-requests%2F85%2Fhead;p=thirdparty%2Fvala.git 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 --- 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")]