]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add binding for "gettext()" dc1d7880b4dc32a889e760aea2808bdf0c766899 85/head
authorMichael Gratton <mike@vee.net>
Tue, 8 Oct 2019 23:12:32 +0000 (10:12 +1100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 9 Oct 2019 05:33:43 +0000 (07:33 +0200)
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

index 7409a63335fca15e91c7553d106406e7c3a3d4b6..d5229327db12d136fb66e436fdaadf7b9d041d5b 100644 (file)
@@ -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")]