[vala/mjog/864-gettext] glib-2.0: Add binding for "gettext()"
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/mjog/864-gettext] glib-2.0: Add binding for "gettext()"
- Date: Wed, 9 Oct 2019 05:34:54 +0000 (UTC)
commit dc1d7880b4dc32a889e760aea2808bdf0c766899
Author: Michael Gratton <mike vee net>
Date: Wed Oct 9 10:12:32 2019 +1100
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")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]