[vala] glib-2.0: add several additional gettext related bindings
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: add several additional gettext related bindings
- Date: Mon, 19 Apr 2010 16:55:13 +0000 (UTC)
commit a5e8b576543ccff2f66e0553d81c830abbb13d40
Author: Michal Hruby <michal mhr gmail com>
Date: Mon Apr 19 09:51:25 2010 -0700
glib-2.0: add several additional gettext related bindings
vapi/glib-2.0.vapi | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index bee2d1a..e8d6839 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3634,6 +3634,14 @@ namespace GLib {
public static unowned string N_ (string str);
[CCode (cname = "ngettext", cheader_filename = "glib.h,glib/gi18n-lib.h")]
public static unowned string ngettext (string msgid, string msgid_plural, ulong n);
+ [CCode (cname = "g_dgettext", cheader_filename = "glib/gi18n-lib.h")]
+ public static unowned string dgettext (string? domain, string msgid);
+ [CCode (cname = "g_dngettext", cheader_filename = "glib/gi18n-lib.h")]
+ public static unowned string dngettext (string? domain, string msgid, string msgid_plural, ulong n);
+ [CCode (cname = "g_dpgettext", cheader_filename = "glib/gi18n-lib.h")]
+ public static unowned string dpgettext (string? domain, string msgctxid, size_t msgidoffset);
+ [CCode (cname = "g_dpgettext2", cheader_filename = "glib/gi18n-lib.h")]
+ public static unowned string dpgettext2 (string? domain, string context, string msgid);
[CCode (cname = "int", cprefix = "LC_", cheader_filename = "locale.h", has_type_id = false)]
public enum LocaleCategory {
@@ -3657,6 +3665,8 @@ namespace GLib {
public static unowned string? bind_textdomain_codeset (string domainname, string? codeset);
[CCode (cname = "g_get_language_names", array_length = false, array_null_terminated = true)]
public static unowned string[] get_language_names ();
+ [CCode (cname = "g_strip_context", cheader_filename = "glib/gi18n-lib.h")]
+ public static unowned string strip_context (string msgid, string msgval);
}
[Compact]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]