Dear Maintainers,

The attachment is a patch that adds a few more gettext functions to the
glib-2.0.vapi.

Also in the patch I moved the gettext functions to Intl namespace, while
leaving the _ macros under the GLib namespace.

If it possible I would also suggest using the name I18N as the namespace
for i18n functions, instead of the current name 'Intl'. Because glib
abbrs internationalization to i18n(glib-i18n.h), not intl.


Yu
--- /usr/share/vala/vapi/glib-2.0.vapi	2009-08-14 15:46:01.000000000 -0400
+++ glib-2.0.vapi	2009-09-01 17:17:13.000000000 -0400
@@ -3414,8 +3414,8 @@
 	public static weak string Q_ (string str);
 	[CCode (cname = "N_", cheader_filename = "glib.h,glib/gi18n-lib.h")]
 	public static weak string N_ (string str);
-	[CCode (cname = "ngettext", cheader_filename = "glib.h,glib/gi18n-lib.h")]
-	public static weak string ngettext (string msgid, string msgid_plural, ulong n);
+	[CCode (cname = "NC_", cheader_filename = "glib.h,glib/gi18n-lib.h")]
+	public static weak string NC_ (string context, string str);
 	
 	[CCode (cname = "int", cprefix = "LC_", cheader_filename = "locale.h", has_type_id = false)]
 	public enum LocaleCategory {
@@ -3437,6 +3437,13 @@
 		public static weak string? textdomain (string? domainname);
 		[CCode (cname = "bind_textdomain_codeset", cheader_filename = "glib/gi18n-lib.h")]
 		public static weak string? bind_textdomain_codeset (string domainname, string? codeset);
+
+		[CCode (cname = "ngettext", cheader_filename = "glib.h,glib/gi18n-lib.h")]
+		public static weak string ngettext (string msgid, string msgid_plural, ulong n);
+		[CCode (cname = "g_dgettext", cheader_filename = "glib.h,glib/gi18n-lib.h")]
+		public static weak string dgettext (string domain, string msgid);
+		[CCode (cname = "g_dngettext", cheader_filename = "glib.h,glib/gi18n-lib.h")]
+		public static weak string dngettext (string domain, string msgid, string msgid_plural, ulong n);
 	}
 
 	[Compact]
_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to